File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed
pages/api/job_utilization/[workflowId]/[jobId] Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,12 @@ const JobButton = styled(Button)({
4848} ) ;
4949function WorkflowJobSummary ( {
5050 job,
51- utilMetadata,
5251 artifacts,
5352 artifactsToShow,
5453 setArtifactsToShow,
5554 unstableIssues,
5655} : {
5756 job : JobData ;
58- utilMetadata ?: UtilizationMetadataInfo [ ] ;
5957 artifacts ?: Artifact [ ] ;
6058 artifactsToShow : Set < string > ;
6159 setArtifactsToShow : any ;
@@ -183,10 +181,6 @@ export default function WorkflowBox({
183181 : styles . workflowBoxSuccess ;
184182
185183 const anchorName = encodeURIComponent ( workflowName . toLowerCase ( ) ) ;
186-
187- const { utilMetadataList } = useUtilMetadata ( workflowId ?. toString ( ) ) ;
188- const groupUtilMetadataList = groupMetadataByJobId ( utilMetadataList ) ;
189-
190184 const { artifacts, error } = useArtifacts ( jobs . map ( ( job ) => job . workflowId ) ) ;
191185 const [ artifactsToShow , setArtifactsToShow ] = useState ( new Set < string > ( ) ) ;
192186 const groupedArtifacts = groupArtifacts ( jobs , artifacts ) ;
@@ -304,11 +298,6 @@ export default function WorkflowBox({
304298 < div key = { job . id } id = { `${ job . id } -box` } >
305299 < WorkflowJobSummary
306300 job = { job }
307- utilMetadata = {
308- job . id
309- ? groupUtilMetadataList . get ( job . id . toString ( ) )
310- : undefined
311- }
312301 artifacts = { groupedArtifacts ?. get ( job . id ?. toString ( ) ) }
313302 artifactsToShow = { artifactsToShow }
314303 setArtifactsToShow = { setArtifactsToShow }
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ export default async function handler(
1414 // @ts -ignore
1515 const session = await getServerSession ( req , res , authOptions ) ;
1616 if ( ! session ?. user || ! session ?. accessToken ) {
17- return res
18- . status ( 401 )
19- . json ( { error : "Authentication required to require utilization data" } ) ;
17+ return res . status ( 401 ) . json ( {
18+ error :
19+ "Authentication required to require utilization data, please login in the main hud page" ,
20+ } ) ;
2021 }
2122
2223 if ( ! workflowId || ! jobId || ! attempt ) {
You can’t perform that action at this time.
0 commit comments