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

[Utilization] Setup API and UI Inital page #6240

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

[Utilization] Setup API and UI Inital page #6240

wants to merge 22 commits into from

Conversation

yangw-dev
Copy link
Contributor

@yangw-dev yangw-dev commented Jan 31, 2025

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

  • set up sql, methods and API to fetch data from clickhouse
  • Add unittest for complicated logics
  • set up Page for utilization

Copy link

vercel bot commented Jan 31, 2025

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

Name Status Preview Updated (UTC)
torchci ✅ Ready (Inspect) Visit Preview Jan 31, 2025 8:59pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 31, 2025
if (checkType(obj) == "array") {
for (let idx = 0; idx < obj.length; idx++) {
const nextObj = obj[idx];
let next_path = formPath(path, `{idx}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think

Suggested change
let next_path = formPath(path, `{idx}`);
let next_path = formPath(path, `${idx}`);

}

if (!data) {
return <div>loading...</div>;
Copy link
Contributor

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?

Copy link
Contributor Author

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[];
Copy link
Contributor

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[]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants