Move delayed deletion filters to CE in groups API
What does this MR do and why?
Due to a recent data-loss incident, the decision was made to down-tier delayed deletion. This MR moves delayed deletion API filters to CE for GraphQL and REST.
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
-
Run GDK in FOSS mode by setting
FOSS_ONLY=1or deleting theeedirectory. -
Enable the
downtier_delayed_deletionfeature flag.Feature.enable(:downtier_delayed_deletion) -
Delete a group. This will cause it to be marked for deletion.
-
Retrieve the groupss that were marked for deletion on a specific date. You should use the current date to return the group you just deleted.
curl --header 'PRIVATE-TOKEN: TOKEN 'http://127.0.0.1:3000/api/v4/groups?marked_for_deletion_on=2025-04-15' -
Ensure GraphQL filters work
query GroupsMarkedForDeletion { groups(markedForDeletionOn: "2025-04-15") { nodes { id name fullPath markedForDeletionOn } } }
Edited by Ayush Billore