🐛 Fix incompatibility of binfile exportation with offload feature

This commit is contained in:
Andrey Antukh 2025-01-14 12:37:39 +01:00 committed by Andrés Moya
parent 5793c526c0
commit f62aecb383
3 changed files with 44 additions and 13 deletions

View file

@ -52,6 +52,15 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(def file-attrs
#{:id
:name
:features
:project-id
:is-shared
:version
:data})
(def xf-map-id
(map :id))
@ -129,10 +138,11 @@
(binding [pmap/*load-fn* (partial feat.fdata/load-pointer cfg file-id)]
(when-let [file (db/get* conn :file {:id file-id}
{::db/remove-deleted false})]
(-> file
(decode-row)
(update :data feat.fdata/process-pointers deref)
(update :data feat.fdata/process-objects (partial into {}))))))))
(let [file (feat.fdata/resolve-file-data cfg file)]
(-> file
(decode-row)
(update :data feat.fdata/process-pointers deref)
(update :data feat.fdata/process-objects (partial into {})))))))))
(defn clean-file-features
[file]