Loading
Remove unused glFeatureFlagsMixin registrations in CE
What does this MR do and why?
Removes the glFeatureFlagsMixin import and the mixins entry from CE components (app/) that never read glFeatures. The EE half, !256677 (merged), is merged.
Removing an unused registration does not change behaviour. A mixin whose members are never read only adds an inject or a method nobody calls.
Enables the unused half of the rule for this mixin:
eslint.config.mjs- drops
reportUnused: falsefrom thegl_feature_flags_mixinentry
- drops
Left as is on purpose:
ee/spec/frontend/boards/components/issue_board_filtered_search_spec.jskeepsglFeatures: { workItemTasksOnBoards }. It tests the EE component, which still reads that flag.- Specs of parent components that mount the touched components as children. Their
glFeaturessetup drives the parent, not the child.
How to set up and validate locally
-
Run ESLint over both trees. No
local-rules/vue-mixin-pairingerror is reported:./node_modules/.bin/eslint app/assets/javascripts ee/app/assets/javascripts
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.
References
- Related to #629073 (closed), which asks for the pairing rules and for existing violations to be fixed in separate MRs
- Rule MR whose autofix produced the first pass: !256664 (merged)
- EE half, merged, same process: !256677 (merged)
- Review suggestion on the EE half that prompted the spec cleanup: !256677 (comment 3882984375)
- Motivating bug for the rules: !255388 (merged)
Edited by Miguel Rincon