Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@JoaoSilvaGrafana
Copy link
Contributor

@JoaoSilvaGrafana JoaoSilvaGrafana commented Apr 4, 2023

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:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

commit 421bd0bb7e6220f1c0a65b60696e258003ebf91d
Author: Joao Silva <[email protected]>
Date:   Tue Apr 4 10:48:04 2023 +0100

    user essentials mob! :trident:

    lastFile:public/app/plugins/panel/annolist/AnnoListPanel.tsx

commit 862846a39d774ba78861d567b6fd42fe7e4793ad
Author: joshhunt <[email protected]>
Date:   Tue Apr 4 10:35:35 2023 +0100

    user essentials mob! :trident:

commit 4ddc7febbb790ba4ff65e2739246c951a4ddbe34
Author: Tobias Skarhed <[email protected]>
Date:   Tue Apr 4 11:20:08 2023 +0200

    mob next [ci-skip] [ci skip] [skip ci]

    lastFile:public/app/plugins/panel/annolist/AnnoListPanel.tsx

Co-authored-by: joshhunt <[email protected]>
Co-authored-by: Tobias Skarhed <[email protected]>
@JoaoSilvaGrafana JoaoSilvaGrafana added this to the 9.5.x milestone Apr 4, 2023
@JoaoSilvaGrafana JoaoSilvaGrafana requested a review from a team April 4, 2023 10:17
@JoaoSilvaGrafana JoaoSilvaGrafana requested a review from a team as a code owner April 4, 2023 10:17
@JoaoSilvaGrafana JoaoSilvaGrafana requested review from ashharrison90 and joshhunt and removed request for a team April 4, 2023 10:17
@tskarhed tskarhed merged commit 8ffd58a into main Apr 17, 2023
@tskarhed tskarhed deleted the ue-annotation-list branch April 17, 2023 15:20
grafanabot pushed a commit that referenced this pull request Apr 17, 2023
Squashed commit of the following:

commit 421bd0bb7e6220f1c0a65b60696e258003ebf91d
Author: Joao Silva <[email protected]>
Date:   Tue Apr 4 10:48:04 2023 +0100

    user essentials mob! :trident:

    lastFile:public/app/plugins/panel/annolist/AnnoListPanel.tsx

commit 862846a39d774ba78861d567b6fd42fe7e4793ad
Author: joshhunt <[email protected]>
Date:   Tue Apr 4 10:35:35 2023 +0100

    user essentials mob! :trident:

commit 4ddc7febbb790ba4ff65e2739246c951a4ddbe34
Author: Tobias Skarhed <[email protected]>
Date:   Tue Apr 4 11:20:08 2023 +0200

    mob next [ci-skip] [ci skip] [skip ci]

    lastFile:public/app/plugins/panel/annolist/AnnoListPanel.tsx

Co-authored-by: joshhunt <[email protected]>
Co-authored-by: Tobias Skarhed <[email protected]>
(cherry picked from commit 8ffd58a)
adela-almasan pushed a commit that referenced this pull request Apr 17, 2023
Squashed commit of the following:

commit 421bd0bb7e6220f1c0a65b60696e258003ebf91d
Author: Joao Silva <[email protected]>
Date:   Tue Apr 4 10:48:04 2023 +0100

    user essentials mob! :trident:

    lastFile:public/app/plugins/panel/annolist/AnnoListPanel.tsx

commit 862846a39d774ba78861d567b6fd42fe7e4793ad
Author: joshhunt <[email protected]>
Date:   Tue Apr 4 10:35:35 2023 +0100

    user essentials mob! :trident:

commit 4ddc7febbb790ba4ff65e2739246c951a4ddbe34
Author: Tobias Skarhed <[email protected]>
Date:   Tue Apr 4 11:20:08 2023 +0200

    mob next [ci-skip] [ci skip] [skip ci]

    lastFile:public/app/plugins/panel/annolist/AnnoListPanel.tsx

Co-authored-by: joshhunt <[email protected]>
Co-authored-by: Tobias Skarhed <[email protected]>
@guicaulada guicaulada modified the milestones: 9.5.x, 9.5.0 Apr 24, 2023
@zerok zerok modified the milestones: 9.5.0, 10.0.0 May 3, 2023
@zerok zerok modified the milestones: 10.0.0, 10.0.0-preview May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Annotation List panel is not automatically refreshed when a variable's value changes

6 participants