From 59fe93cb450c9818217760c113c8b2e71758fa04 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 10 Nov 2023 11:39:49 +0100 Subject: [PATCH] :bug: Fix minor issue with pointer-map feature interaction with team features --- common/src/app/common/features.cljc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/common/src/app/common/features.cljc b/common/src/app/common/features.cljc index 310f7eef79..0e3e652d01 100644 --- a/common/src/app/common/features.cljc +++ b/common/src/app/common/features.cljc @@ -190,10 +190,16 @@ (check-supported-features! file-features) - (let [not-supported (-> file-features - (set/difference enabled-features) - (set/difference client-features) - (set/difference frontend-only-features))] + (let [;; We should ignore all features that does not match with + ;; the `no-migration-features` set because we can't enable + ;; them as-is, because they probably need migrations + client-features (set/intersection client-features no-migration-features) + not-supported (-> file-features + (set/difference enabled-features) + (set/difference client-features) + (set/difference backend-only-features) + (set/difference frontend-only-features))] + (when (seq not-supported) (ex/raise :type :restriction :code :feature-mismatch