-
Notifications
You must be signed in to change notification settings - Fork 88
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
[Utilization] Setup API and UI Inital page #6240
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
torchci/pages/utilization/[workflowId]/[jobId]/[attempt]/[[...page]].tsx
Fixed
Show fixed
Hide fixed
torchci/pages/utilization/[workflowId]/[jobId]/[attempt]/[[...page]].tsx
Outdated
Show resolved
Hide resolved
if (checkType(obj) == "array") { | ||
for (let idx = 0; idx < obj.length; idx++) { | ||
const nextObj = obj[idx]; | ||
let next_path = formPath(path, `{idx}`); |
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.
I think
let next_path = formPath(path, `{idx}`); | |
let next_path = formPath(path, `${idx}`); |
} | ||
|
||
if (!data) { | ||
return <div>loading...</div>; |
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.
iirc you made a loading component, do you want to use that here?
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.
yah this just a place holder will update later!
created_at: string; | ||
workflow_name: string; | ||
job_name: string; | ||
segments: any[]; |
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.
Is this supposed to be Segments[]?
Description
Setup API and UI for utilization time series.
Currently hooked with clickhouse fortesting tables to unblock UI development while waiting for the datapipline code merged.
working api: https://torchci-git-utiltest-fbopensource.vercel.app/api/utilization/12937937547/36088234580/1
working UI rendering: https://torchci-git-utiltest-fbopensource.vercel.app/utilization/12937937547/36088234580/1
##Details