Skip to content

Make OxQL instance metrics work for non-fleet viewer users #2773

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

Merged
merged 2 commits into from
Apr 1, 2025

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Apr 1, 2025

We missed this in #2654. We didn't notice it on dogfood because we don't test the console regularly enough with non-fleet viewer users.

Closes #2774

Copy link

vercel bot commented Apr 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Apr 1, 2025 5:59pm

@david-crespo david-crespo requested a review from charliepark April 1, 2025 17:59
@@ -53,10 +53,10 @@ export type OxqlMetricProps = OxqlQuery & {
export function OxqlMetric({ title, description, unit, ...queryObj }: OxqlMetricProps) {
// only start reloading data once an intial dataset has been loaded
const { setIsIntervalPickerEnabled } = useMetricsContext()
const { project } = useProjectSelector()
Copy link
Collaborator Author

@david-crespo david-crespo Apr 1, 2025

Choose a reason for hiding this comment

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

This will blow up when we try to use this outside of a project, but that's fine — we will figure it out at that time.

Copy link
Contributor

@charliepark charliepark left a comment

Choose a reason for hiding this comment

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

Thank you for catching this!

@david-crespo david-crespo merged commit d099966 into main Apr 1, 2025
7 checks passed
@david-crespo david-crespo deleted the timeseries-endpoint branch April 1, 2025 18:40
david-crespo added a commit to oxidecomputer/omicron that referenced this pull request Apr 1, 2025
oxidecomputer/console@72e2f0c...f52f50c

* [f52f50c7](oxidecomputer/console@f52f50c7) react 19.1
* [d0999667](oxidecomputer/console@d0999667) oxidecomputer/console#2773
* [e7bfb236](oxidecomputer/console@e7bfb236) oxidecomputer/console#2767
* [59e69764](oxidecomputer/console@59e69764) oxidecomputer/console#2768
* [44157459](oxidecomputer/console@44157459) oxidecomputer/console#2770
* [5a90b430](oxidecomputer/console@5a90b430) oxidecomputer/console#2769
* [c12696c0](oxidecomputer/console@c12696c0) make api-diff use latest generator
* [5538906c](oxidecomputer/console@5538906c) oxidecomputer/console#2760
* [653ba4cb](oxidecomputer/console@653ba4cb) bump omicron for instance affinity groups list
* [179f347f](oxidecomputer/console@179f347f) oxidecomputer/console#2766
* [dbaeb3d3](oxidecomputer/console@dbaeb3d3) oxidecomputer/console#2765
* [549c266e](oxidecomputer/console@549c266e) oxidecomputer/console#2762
* [d41ef17f](oxidecomputer/console@d41ef17f) oxidecomputer/console#2763
* [a5804f8f](oxidecomputer/console@a5804f8f) oxidecomputer/console#2761
* [fb2fdbec](oxidecomputer/console@fb2fdbec) oxidecomputer/console#2759
* [9de391c8](oxidecomputer/console@9de391c8) chore: playwright 1.51.1 came out like an hour later
* [b49f70c0](oxidecomputer/console@b49f70c0) oxidecomputer/console#2757
* [3eb24d2d](oxidecomputer/console@3eb24d2d) chore: bump playwright to 1.51
* [f29e4ea9](oxidecomputer/console@f29e4ea9) chore: bump vite + plugins, vitest, msw
* [0f3408d0](oxidecomputer/console@0f3408d0) chore: bump oxlint to 0.16
* [f9931e03](oxidecomputer/console@f9931e03) tools: probably fix ff test flake
* [1015a805](oxidecomputer/console@1015a805) tools: bump client generator, turn on noUnusedParameters in tsconfig
david-crespo added a commit to oxidecomputer/omicron that referenced this pull request Apr 1, 2025
oxidecomputer/console@72e2f0c...f52f50c

* [f52f50c7](oxidecomputer/console@f52f50c7)
react 19.1
* [d0999667](oxidecomputer/console@d0999667)
oxidecomputer/console#2773
* [e7bfb236](oxidecomputer/console@e7bfb236)
oxidecomputer/console#2767
* [59e69764](oxidecomputer/console@59e69764)
oxidecomputer/console#2768
* [44157459](oxidecomputer/console@44157459)
oxidecomputer/console#2770
* [5a90b430](oxidecomputer/console@5a90b430)
oxidecomputer/console#2769
* [c12696c0](oxidecomputer/console@c12696c0)
make api-diff use latest generator
* [5538906c](oxidecomputer/console@5538906c)
oxidecomputer/console#2760
* [653ba4cb](oxidecomputer/console@653ba4cb)
bump omicron for instance affinity groups list
* [179f347f](oxidecomputer/console@179f347f)
oxidecomputer/console#2766
* [dbaeb3d3](oxidecomputer/console@dbaeb3d3)
oxidecomputer/console#2765
* [549c266e](oxidecomputer/console@549c266e)
oxidecomputer/console#2762
* [d41ef17f](oxidecomputer/console@d41ef17f)
oxidecomputer/console#2763
* [a5804f8f](oxidecomputer/console@a5804f8f)
oxidecomputer/console#2761
* [fb2fdbec](oxidecomputer/console@fb2fdbec)
oxidecomputer/console#2759
* [9de391c8](oxidecomputer/console@9de391c8)
chore: playwright 1.51.1 came out like an hour later
* [b49f70c0](oxidecomputer/console@b49f70c0)
oxidecomputer/console#2757
* [3eb24d2d](oxidecomputer/console@3eb24d2d)
chore: bump playwright to 1.51
* [f29e4ea9](oxidecomputer/console@f29e4ea9)
chore: bump vite + plugins, vitest, msw
* [0f3408d0](oxidecomputer/console@0f3408d0)
chore: bump oxlint to 0.16
* [f9931e03](oxidecomputer/console@f9931e03)
tools: probably fix ff test flake
* [1015a805](oxidecomputer/console@1015a805)
tools: bump client generator, turn on noUnusedParameters in tsconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instance metrics: Users without fleet roles get "something went wrong" errors
2 participants