Skip to content
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

Annotation List: Fix panel not updating when variable is changed #65899

Merged
merged 1 commit into from
Apr 17, 2023

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 421bd0b
Author: Joao Silva <joao.silva@grafana.com>
Date:   Tue Apr 4 10:48:04 2023 +0100

    user essentials mob! :trident:

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

commit 862846a
Author: joshhunt <josh@trtr.co>
Date:   Tue Apr 4 10:35:35 2023 +0100

    user essentials mob! :trident:

commit 4ddc7fe
Author: Tobias Skarhed <tobias.skarhed@gmail.com>
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 <josh@trtr.co>
Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
@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 joshhunt and ashharrison90 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 421bd0b
Author: Joao Silva <joao.silva@grafana.com>
Date:   Tue Apr 4 10:48:04 2023 +0100

    user essentials mob! :trident:

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

commit 862846a
Author: joshhunt <josh@trtr.co>
Date:   Tue Apr 4 10:35:35 2023 +0100

    user essentials mob! :trident:

commit 4ddc7fe
Author: Tobias Skarhed <tobias.skarhed@gmail.com>
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 <josh@trtr.co>
Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
(cherry picked from commit 8ffd58a)
adela-almasan pushed a commit that referenced this pull request Apr 17, 2023
Squashed commit of the following:

commit 421bd0b
Author: Joao Silva <joao.silva@grafana.com>
Date:   Tue Apr 4 10:48:04 2023 +0100

    user essentials mob! :trident:

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

commit 862846a
Author: joshhunt <josh@trtr.co>
Date:   Tue Apr 4 10:35:35 2023 +0100

    user essentials mob! :trident:

commit 4ddc7fe
Author: Tobias Skarhed <tobias.skarhed@gmail.com>
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 <josh@trtr.co>
Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
@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