[UX] Health toggle switch widget is visible and enabled in issues filter, despite the licensing rights
Summary
With the GitLab Premium, the use of the health feature is not allowed (health-status doc) even if the issues filter is enabled via the toggle switch widget
Steps to reproduce
- Open project issues
- Open toolbar filter
The health switch is enabled and you can enable or disable search with this filter.
Behaviour
- Subscription: GitLab Premium
- Product: self-managed
- Version: Enterprise Edition v18.7.1-ee, v18.10.4-ee, v19.0.1-ee, v19.5.3-ee
Expected behavior
Display options shows a field toggle only when the feature is available for the namespace. This applies to Health, Iteration and Weight.
Implementation plan
applicableMetadataFieldsinapp/assets/javascripts/work_items/list/display_settings_preferences.jshas no license check.- Leave out Health when
hasIssuableHealthStatusFeatureis false, Iteration whenhasIterationsFeatureis false, and Weight whenhasIssueWeightsFeatureis false. - The Table view already hides columns this way. See
licensedFeatureinapp/assets/javascripts/work_items/table/constants.js. - Add specs for each case.
Edited by 🤖 GitLab Bot 🤖
