Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions torchci/components/commit/WorkflowBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,12 @@ const JobButton = styled(Button)({
});
function WorkflowJobSummary({
job,
utilMetadata,
artifacts,
artifactsToShow,
setArtifactsToShow,
unstableIssues,
}: {
job: JobData;
utilMetadata?: UtilizationMetadataInfo[];
artifacts?: Artifact[];
artifactsToShow: Set<string>;
setArtifactsToShow: any;
Expand Down Expand Up @@ -183,10 +181,6 @@ export default function WorkflowBox({
: styles.workflowBoxSuccess;

const anchorName = encodeURIComponent(workflowName.toLowerCase());

const { utilMetadataList } = useUtilMetadata(workflowId?.toString());
const groupUtilMetadataList = groupMetadataByJobId(utilMetadataList);

const { artifacts, error } = useArtifacts(jobs.map((job) => job.workflowId));
const [artifactsToShow, setArtifactsToShow] = useState(new Set<string>());
const groupedArtifacts = groupArtifacts(jobs, artifacts);
Expand Down Expand Up @@ -304,11 +298,6 @@ export default function WorkflowBox({
<div key={job.id} id={`${job.id}-box`}>
<WorkflowJobSummary
job={job}
utilMetadata={
job.id
? groupUtilMetadataList.get(job.id.toString())
: undefined
}
artifacts={groupedArtifacts?.get(job.id?.toString())}
artifactsToShow={artifactsToShow}
setArtifactsToShow={setArtifactsToShow}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ export default async function handler(
// @ts-ignore
const session = await getServerSession(req, res, authOptions);
if (!session?.user || !session?.accessToken) {
return res
.status(401)
.json({ error: "Authentication required to require utilization data" });
return res.status(401).json({
error:
"Authentication required to require utilization data, please login in the main hud page",
});
}

if (!workflowId || !jobId || !attempt) {
Expand Down