Skip to content

Conversation

@priya-ni
Copy link
Contributor

@priya-ni priya-ni commented Sep 26, 2025

Pull Request

🤨 Rationale

Innovation idea:
Idea 3260573: Grafana | Feature flag infra exploration for datasources

Description: Explore and come up with a proper feature flag infra implementation for Grafana, similar to that we have in SLE Angular Apps

Whenever a developer or tester wants to test a feature under development, the only way to do so is either from local development or they have to update the featureToggle from the helm file of GrafanaAddons. So, this idea is to use local storage for the developers to toggle the feature.

This PR introduces a feature flag infrastructure to the SystemLink Grafana plugins, inspired by the SLE Angular Apps implementation.
I also experimented with the infrastructure with the Asset data source.

👩‍💻 Implementation

feature-toggle.ts

  • Feature toggles are defined in the FeatureToggleNames enum, and FeatureTogglesDefaults are defined
  • Created getFeatureFlagValue method to get the boolean value for a feature

Utilized the infrastructure in the Assets data source.
Updated README for more details.

🧪 Testing

✅ Checklist


config: &config
access: proxy
editable: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this configuration to enable the Save & test option for local development purposes.
image

@priya-ni priya-ni marked this pull request as ready for review September 29, 2025 11:30
@priya-ni
Copy link
Contributor Author

@rajsite @m-akinc @cameronwaterman I have worked on this idea as part of innovation week. Please share your suggestions and thoughts on this pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants