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: false from the gl_feature_flags_mixin entry

Left as is on purpose:

  • ee/spec/frontend/boards/components/issue_board_filtered_search_spec.js keeps glFeatures: { workItemTasksOnBoards }. It tests the EE component, which still reads that flag.
  • Specs of parent components that mount the touched components as children. Their glFeatures setup drives the parent, not the child.

How to set up and validate locally

  1. Run ESLint over both trees. No local-rules/vue-mixin-pairing error 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

Edited by Miguel Rincon

Merge request reports

Loading
Loading