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
Query Browser: Simplify Query Browser link URL logic #3678
Query Browser: Simplify Query Browser link URL logic #3678
Conversation
/assign @spadgett |
dd4adf3
to
e8077e4
Compare
Don't automatically switch to the Dev perspective when the user can't access the Monitoring UI. Instead, navigate to the Dev perspective version of the page, but leave the perspective set to Administrator (so the page still loads, but the sidebar entry is not highlighted). For the Dev perspective, stop getting the namespace from `getActiveNamespace` because we can just link to `/metrics` and it will automatically redirect to add the active namespace to the URL (or to `/metrics/all-namespaces` if there is no active namespace).
e8077e4
to
3b29b72
Compare
/retest |
We could add a |
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.
/approve
/lgtm
Thanks, this looks simpler and is more in line with how we handle perspectives elsewhere. 👍
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kyoto, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
Don't automatically switch to the Dev perspective when the user can't
access the Monitoring UI. Instead, navigate to the Dev perspective
version of the page, but leave the perspective set to Administrator (so
the page still loads, but the sidebar entry is not highlighted).
For the Dev perspective, stop getting the namespace from
getActiveNamespace
because we can just link to/metrics
and it willautomatically redirect to add the active namespace to the URL (or to
/metrics/all-namespaces
if there is no active namespace).Addressed feedback on #3541. WDYT @spadgett, @rawagner?