Archive Labels: Change feature flag actor to group
What does this MR do and why?
This MR changes the feature flag actor to group instead of :instance for the labels_archive feature flag
For the rollout, we prefer the actor to be on group level, as discussed.
References
Screenshots or screen recordings
When the actor is enabled and some labels are archived, the labels are now filtered:
Archived and unarchived labels in auto-complete
Archived and unarchived labels in issue dropdown
How to set up and validate locally
- Enable feature flag via
rails cfor a specific group:
Feature.enable(:labels_archive, group)
Archive / Unarchive labels
- Archive a label: Go to
Any project > Manage > Labelsand archive a label in thethree dot dropdown. It should now show up in theArchived tab. - Go to the
Editview of the archived label. Now, you should see the box on the top and should be able to unarchive it.
Auto-complete / issus dropdown
- After archiving a label, you should no longer see it when using
/label ~...or in thelabel dropdownin an issue. Auto-completions are cached for three minutes - you can reduce the cache to a second by editingapp/controllers/concerns/autocomplete_sources/expires_in.rband settingAUTOCOMPLETE_EXPIRES_IN = 1.secondor by clearing the cache.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #4233
Edited by Nicholas Wittstruck



