-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PanelPlugin: Allow hiding standard field config from defaults #70303
Conversation
Hello @dprokop!
Please, if the current pull request addresses a bug fix, label it with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome, works as advertised
thanks!
Ref #70202
This PR allows standard field config configuration for the panel plugin to only be available as an override. It builds on top of standard options configuration API by extending it with
hideFromDefaults
property that's equivalent to the custom field config configuration [1]Usage:
@leeoniya let me know if this will be sufficient for your needs.
[1]. Custom field config existing API, example in the wild: https://github.com/grafana/grafana/blob/field-config-hide-from-defaults/public/app/plugins/panel/heatmap/module.tsx#L38