Repository navigation
feat: images shown in texts, for the orphans, the deletions and a broken images list - #2734
Merged
Merged
Conversation
- GET /images/orphans tells which documents show each orphan in their texts ([img=ID]): such an image is used, to link again, not to delete - GET /images/broken-embeds (moderator): the images shown in texts that do not show (missing id, deleted, not an image), those that can still be restored first with their deleted entry - deleting a document no longer deletes a personal image shown in the text of another document: it stays, orphan Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up of #2671 (orphan images) and of the
[img=ID]tracking (guidebook.image_embeds, v6.46.0): an image without association can still be shown in a text.GET /images/orphans: each orphan getsembedded_in, the documents whose text shows it (merged documents and the image itself left out).GET /images/broken-embeds(moderators): the[img=ID]in texts that show nothing, with a reason:deleted: the image is in the trash and can still be restored (deletedgives the trash entry, who, when, expiry); these come first;missing: no such document;not_image: the id of another type of document (image_document_type,image_document_title).PostgreSQL 9.6 compatible (
jsonb_array_elementsover the trash snapshots). No migration.On prod today: 18 orphans shown in a text; 74 broken embeds (10 deleted, 52 missing, 12 not an image).
UI: c2corg/c2c_ui#5251. The API must be released first.
🤖 Generated with Claude Code