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

Browse Dashboards: Imported dashboards now display immediately in the dashboard list #81819

Merged
merged 5 commits into from Feb 6, 2024

Conversation

ashharrison90
Copy link
Contributor

What is this feature?

  • creates an importDashboard method in rtk query
    • this correctly causes the parent folder to refetch it's children on fulfilment of the import
  • updates the import action to call the importDashboard method in rtk query

Why do we need this feature?

  • so the cache is correctly invalidated when importing dashboards

Who is this feature for?

  • everyone!

Which issue(s) does this PR fix?:

Fixes https://github.com/grafana/support-escalations/issues/9238

Special notes for your reviewer:

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.

@ashharrison90 ashharrison90 added this to the 10.4.x milestone Feb 2, 2024
@ashharrison90 ashharrison90 self-assigned this Feb 2, 2024
@ashharrison90 ashharrison90 requested review from grafanabot and a team as code owners February 2, 2024 17:11
@ashharrison90 ashharrison90 requested review from joshhunt, eledobleefe, oscarkilhed and ivanortegaalba and removed request for a team February 2, 2024 17:11
Copy link
Contributor

@eledobleefe eledobleefe left a comment

Choose a reason for hiding this comment

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

Tested it on local and works as expected. Good job 👌

@ashharrison90 ashharrison90 merged commit e2c2704 into main Feb 6, 2024
14 checks passed
@ashharrison90 ashharrison90 deleted the ash/import-rtk-query branch February 6, 2024 10:46
Ukochka pushed a commit that referenced this pull request Feb 14, 2024
… dashboard list (#81819)

* create importDashboard method in rtk query

* fix unit tests

* Revert "fix unit tests"

This reverts commit 72cd81c.

* fix unit test
@aangelisc aangelisc modified the milestones: 10.4.x, 10.4.0 Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants