🐛 Properly handle storage features on binfile import

This commit is contained in:
Andrey Antukh 2023-01-16 14:08:58 +01:00
parent 3280a6853e
commit 523539e403
2 changed files with 55 additions and 26 deletions

View file

@ -15,6 +15,7 @@
[app.common.spec :as us]
[app.common.types.file :as ctf]
[app.common.types.shape-tree :as ctt]
[app.config :as cf]
[app.db :as db]
[app.db.sql :as sql]
[app.loggers.audit :as-alias audit]
@ -43,7 +44,13 @@
"storage/pointer-map"
"components/v2"})
(def default-features #{})
(def default-features
(cond-> #{}
(contains? cf/flags :fdata-storage-pointer-map)
(conj "storage/pointer-map")
(contains? cf/flags :fdata-storage-objects-map)
(conj "storage/objects-map")))
;; --- SPECS