Skip to content

[BUG] Plugin feature flags failing after refactor in core #17940

@harshavamsi

Description

@harshavamsi

Describe the bug

With #17611, we refactored the way feature flags work. I'm trying to onboard the neural search plugin to use the new feature flag constructs but it does not work today because we check against all registered feature flags in core before we set the value. Since plugins do not register their feature flags to core this breaks while checking

        void set(String featureFlagName, Boolean value) {
            for(Setting<Boolean> ff : this.featureFlags.keySet()) {
                if (ff.getKey().equals(featureFlagName)) {
                    this.featureFlags.put(ff, value);
                }
            }

        }

Related component

Plugins

To Reproduce

Trying to run tests in neural search

Expected behavior

Tests should pass

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PluginsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions