mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
Deleting a shared library removes its links to the files using it at once, so they stop listing it, and queues the delete-object job, which absorbs the library into the files it finds through those links. By then there were none, so nothing was absorbed: the files lost the library and their copies kept pointing at the deleted file (PENPOT-1092). Unpublishing absorbs before it unlinks, so it was not affected. The delete reads the files using the library before unlinking them and gives them to the job (:absorb-file-ids), which absorbs into them; without them, as from the project and team deletions, the job still finds them through the links. rpc-file-test/delete-shared-library-absorbs-it-into-the-files-using-it deletes the library through the RPC and runs the job it queued. AI-assisted-by: claude-opus-5-5