0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00
penpot/backend/test/backend_tests
Andrey Antukh addb392ecc Add safety mechanism for direct object deletion
The main objective is prevent deletion of objects that can leave
unreachable orphan objects which we are unable to correctly track.

Additionally, this commit includes:

1. Properly implement safe cascade deletion of all participating
   tables on soft deletion in the objects-gc task;

2. Make the file thumbnail related tables also participate in the
   touch/refcount mechanism applyign to the same safety checks;

3. Add helper for db query lazy iteration using PostgreSQL support
   for server side cursors;

4. Fix efficiency issues on gc related task using server side
   cursors instead of custom chunked iteration for processing data.

   The problem resided when a large chunk of rows that has identical
   value on the deleted_at column and the chunk size is small (the
   default); when the custom chunked iteration only reads a first N
   items and skip the rest of the set to the next run.

   This has caused many objects to remain pending to be eliminated,
   taking up space for longer than expected. The server side cursor
   based iteration does not has this problem and iterates correctly
   over all objects.

5. Fix refcount issues on font variant deletion RPC methods
2024-01-03 10:56:57 +01:00
..
test_files 🎉 Add support for multipart upload of thumbnails 2023-05-05 17:00:35 +02:00
bounce_handling_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
email_sending_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
helpers.clj Add safety mechanism for direct object deletion 2024-01-03 10:56:57 +01:00
http_middleware_access_token_test.clj Update yetti and adapt for ring-2.0 2023-11-27 14:25:12 +01:00
loggers_webhooks_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
rpc_access_tokens_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
rpc_audit_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
rpc_comment_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
rpc_cond_middleware_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
rpc_file_test.clj Add safety mechanism for direct object deletion 2024-01-03 10:56:57 +01:00
rpc_file_thumbnails_test.clj Add safety mechanism for direct object deletion 2024-01-03 10:56:57 +01:00
rpc_font_test.clj Add safety mechanism for direct object deletion 2024-01-03 10:56:57 +01:00
rpc_management_test.clj 🐛 Fix incorrect feature checking on move project 2023-12-14 10:35:24 +01:00
rpc_media_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
rpc_profile_test.clj Add safety mechanism for direct object deletion 2024-01-03 10:56:57 +01:00
rpc_project_test.clj Add safety mechanism for direct object deletion 2024-01-03 10:56:57 +01:00
rpc_quotes_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
rpc_team_test.clj Add safety mechanism for direct object deletion 2024-01-03 10:56:57 +01:00
rpc_viewer_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
rpc_webhooks_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
storage_test.clj Add safety mechanism for direct object deletion 2024-01-03 10:56:57 +01:00
tasks_telemetry_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
util_objects_map_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00
util_pointer_map_test.clj 💄 Fix format issues on backend module 2023-11-29 12:55:58 +01:00