Menu

Toggles for features you don't have: hiding unlicensed fields in work item display settings
📰

Toggles for features you don't have: hiding unlicensed fields in work item display settings

DEV Community: vue·Priyanshu Jha·3 days ago
#uVheIwia
#devtovue#devto#dev#gitlab#toggle
Long article (817 words) — no AI summary yet.
Reading 0:00
15s threshold

A GitLab Premium instance should not offer a Health toggle. Health status is an Ultimate feature. On Free, a Status toggle should not appear either: the list only renders a status badge when the item actually has status data, so the toggle does nothing.

The Table view already hid those columns. The Display options drawer did not. This is the story of gitlab-org/gitlab!275608 , a small frontend fix that reused a pattern the Table view already had, and a review that stopped the first version from listing every license flag by hand.

The issue: a drawer that ignored the plan

The issue was gitlab-org/gitlab#579810 , opened by Andy Bonta. The Fields section of the issues list Display options drawer offered a toggle for every metadata field, including Status, Health, Iteration, and Weight, even when the namespace did not have those licensed features.

The Table view already gated the matching columns with a licensedFeature on each field and an isColumnLicensed lookup in table_view.vue .…

Continue reading — create a free account

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