Menu

A delete error that did not say why: clarifying a feature flag user list message
📰

A delete error that did not say why: clarifying a feature flag user list message

DEV Community: ruby·Priyanshu Jha·about 11 hours ago
#XNXGYsMi
Long article (684 words) — no AI summary yet.
Reading 0:00
15s threshold

User list is associated with a strategy is a true sentence, and a nearly useless one. If you try to delete a feature flag user list that is still attached to a strategy, that was the entire error. It did not say you had to remove the list from those strategies first, or even that this was why the delete was refused.

This is the story of gitlab-org/gitlab!275295 , a backend copy change with no frontend work, a constant that kept four specs in sync, and a technical writing review that dropped one word and changed another.

The issue: a message that stopped halfway

The issue was gitlab-org/gitlab#223769 , opened by Andrew Fontaine. Deleting a user list that is still used by one or more feature flag strategies failed in Operations::FeatureFlags::UserList#ensure_no_associated_strategies , which runs before_destroy . The API returned HTTP 409 with that terse string.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.