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

PanelContext: Eventbus should not filter out local events #445

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

torkelo
Copy link
Member

@torkelo torkelo commented Nov 7, 2023

The pie chart legend hover events are not working. They highlight slices on the same panel and using the standard DataHoverEvent. The panel relies on being able to subscribe to local events. But the scenes PanelContextEventBus filters out any local events.

Removing this filtering, panels filter out local events they don't care about using:

 if (eventBus === evt.origin) {
   return;
  }

Trying to make the needed changes to get that to work. But when testing the cursor sync demo I am unable to get it to work (with or without these changes). All cursors show on all panels. Think uPlot cursor sync scope key has broken.

We could also try to revive grafana/grafana#71866

@torkelo
Copy link
Member Author

torkelo commented Nov 7, 2023

ah, the first demo scene has global scope, got confused when panel titles said Panel 1 - syncs tooltip with Panel 2'

Copy link
Member

@dprokop dprokop left a comment

Choose a reason for hiding this comment

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

Works good against core dashboards as well. Think we can land this, and work on grafana/grafana#71866 some time in the next few week.s

@torkelo torkelo added the release Create a release when this pr is merged label Nov 8, 2023
@torkelo torkelo merged commit 3891bb3 into main Nov 8, 2023
3 checks passed
@torkelo torkelo deleted the fix-events-pie-chart branch November 8, 2023 13:50
@grafanabot
Copy link
Contributor

🚀 PR was released in v1.21.1 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Create a release when this pr is merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants