-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Dashboards: Change the way dashboard not found error is handled #98950
base: main
Are you sure you want to change the base?
Conversation
@dprokop nice! I remember spending half a day or something on thing a few months ago, gave up when fixing all the tests looked to take me another day or so, hope you have better luck because this is a really good change! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
TODO - Remove left behind comments
Tested with various cases:
- load non-existent dashboard/snapshot
- navigate to non-existent dashboard
- adjust dashboard/panel share link to non-existent dashboard
- use dashboard link to navigate to non-existent dashboard
Could not test:
- embeded dashboard/panel
Issues encountered:
- when you navigate to non-existent panel via dashboard/panel link the top actions bar remains
- probably not related to this but lacks clean up from scenes dashboard
Screen.Recording.2025-01-15.at.16.50.38.mov
/deploy-to-hg |
|
|
This changes the way how dashboard/public dash/snapshots/solo view 404 issue is handled. Before this PR, such a view would be rendered as a "regular" dashboard, would require fake 404 dashboard modelcreation etc. With this PR:
DashboardScenePageStateManager
and rendered accordinglydashboardNotFound
metadata is removedAnnoKeyDashboardNotFound
k8s client annotation is removedTODO: