gristlabs_grist-core/test
Alex Hall 64369df4c3 (core) Add /attachments/updateUsed DocApi endpoint to soft delete all unused attachments in document
Summary:
Builds on https://phab.getgrist.com/D3352

Add DocStorage.scanAttachmentsForUsageChanges to do fancy JSON query to find all attachment metadata rows whose soft deletion status needs updating.

Add ActiveDoc.updateUsedAttachments which uses the above and then applies the appropriate user action if needed to soft delete/undelete metadata rows.

Add endpoint in DocApi calling ActiveDoc method.

Test Plan: Added DocApi test

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3357
2022-04-07 15:08:22 +02:00
..
fixtures (core) Migrate Attachments columns from marshalled blobs to JSON 2022-04-06 13:28:47 +02:00
gen-server (core) Add new Grist login page 2022-04-01 15:24:19 -07:00
nbrowser (core) configure typedoc for generating plugin api documentation 2022-04-04 18:11:33 -04:00
server (core) Add /attachments/updateUsed DocApi endpoint to soft delete all unused attachments in document 2022-04-07 15:08:22 +02:00
init-mocha-webdriver.js Correct spelling mistakes 2022-02-19 09:46:49 +00:00
mocha.opts (core) Move report-why-tests-hang helper to core 2021-04-26 23:52:16 -04:00
report-why-tests-hang.js (core) Move report-why-tests-hang helper to core 2021-04-26 23:52:16 -04:00
test_under_docker.sh (core) run test:docker target prior to pushing grist-core image 2021-12-14 14:22:02 -05:00
tsconfig.json (core) disentangle some server tests, release to core, add GRIST_PROXY_AUTH_HEADER test 2022-03-24 15:11:32 -04:00
xunit-file.js (core) freshen grist-core build 2021-04-03 09:41:06 -04:00