Feature/find orphan app#11088
Open
Shanon Place (shanonplace) wants to merge 8 commits into
Open
Conversation
…draft entries as test cases
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.
Purpose
Orphan Finder scans an environment for orphaned draft content — drafts with an empty title (typically created by accident from a reference field's "Add new content" and abandoned) and drafts no entry links to — and lets editors review, export, and bulk-archive them from one place. It solves CCS-1082 ("ability to search/filter showing all content where the specified field is empty"): the web app's field filters only work one content type at a time and cannot match empty display fields, so this cleanup is effectively impossible with built-in search; the app automates it across the whole content model and the media library.
Approach
Two scan criteria in separate tabs — untitled drafts (confident junk) and unreferenced drafts (review leads) — each covering entries and/or media assets, with a "never edited" filter (sys.version === 1), creator/created-date attribution, paginated results, CSV export with editor deep links for offline review, and reversible bulk archiving behind an itemized confirmation. Scans are rate-limit-friendly (batched, capped via installation parameters). Locations used: Page (LOCATION_PAGE) for the scan/results UI and App Config (LOCATION_APP_CONFIG) for the two installation parameters.
Testing steps
There is a script bundled in that can create orphans or simply add some "new" entries and abandon them
Breaking Changes
No
Dependencies and/or References
Deployment
No