Annotation List: Fix panel not updating when variable is changed #65899
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is this feature?
Currently if you have an annotation list panel that uses a variable to query for tags, updating the variable does not refresh the panel, this fixes that. (see issue #65349 for more detail)
Why do we need this feature?
To allow users to use variables to search for annotations with certain tags
Who is this feature for?
Users of annotation list panel
Which issue(s) does this PR fix?:
Fixes #65349
Special notes for your reviewer:
This solution does not seem ideal, to update on every
renderCounter
change (the same as the Dashboard List panel does), we did try to look to subscribe to some type of "variable changed" event, but could not get to work properly. @grafana/dashboards-squad if you have any hints for that let us know.Please check that: