Merge pull request #3851 from penpot/niwinz-develop-thumbnails-storage-deduplicate

 Add file object thumbnail deduplication mechanism
This commit is contained in:
Aitor Moreno 2023-11-28 17:49:37 +01:00 committed by GitHub
commit dde27eb736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 292 additions and 113 deletions

View file

@ -164,7 +164,7 @@
:object-id object-id
:media blob
:tag (or tag "frame")}]
(rp/cmd! :upsert-file-object-thumbnail params))))
(rp/cmd! :create-file-object-thumbnail params))))
(rx/catch rx/empty)
(rx/ignore)))))
(rx/catch (fn [cause]

View file

@ -47,10 +47,10 @@
(def default-options
{:update-file {:query-params [:id]}
:get-raw-file {:rename-to :get-file :raw-transit? true}
:upsert-file-object-thumbnail {:query-params [:file-id :object-id :tag]
:form-data? true}
:create-file-object-thumbnail {:query-params [:file-id :object-id :tag]
:form-data? true}
:create-file-object-thumbnail
{:query-params [:file-id :object-id :tag]
:form-data? true}
:create-file-thumbnail
{:query-params [:file-id :revn]