Skip to content

Commit

Permalink
Fix [Artifacts] for workflow steps are missing in UI 1.6.x (#2530)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taras-Hlukhovetskyi authored Jun 15, 2024
1 parent 7377b93 commit d9284e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/api/jobs-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ illegal under applicable law, and the grant of the foregoing license
under the Apache 2.0 license is conditioned upon your compliance with
such restriction.
*/
import { isNil } from 'lodash'

import { mainBaseUrl, mainHttpClient } from '../httpClient'
import { STATE_FILTER_ALL_ITEMS } from '../constants'

Expand Down Expand Up @@ -115,7 +117,7 @@ const jobsApi = {
getJob: (project, jobId, iter) => {
const params = {}

if (!isNaN(iter)) {
if (!isNil(iter)) {
params.iter = iter
}

Expand Down
3 changes: 2 additions & 1 deletion src/components/DetailsArtifacts/detailsArtifacts.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ import Download from '../../common/Download/Download'
import { DATASETS, MODELS_TAB, TAG_FILTER_LATEST } from '../../constants'
import { RoundedIcon, TextTooltipTemplate, Tooltip } from 'igz-controls/components'
import { formatDatetime, parseKeyValues } from '../../utils'
import { parseArtifacts } from '../../utils/parseArtifacts'

import { ReactComponent as DetailsIcon } from 'igz-controls/images/view-details.svg'

export const getJobAccordingIteration = selectedJob => {
return {
artifacts: selectedJob.status?.artifacts || [],
artifacts: parseArtifacts(selectedJob.status?.artifacts || []),
startTime: new Date(selectedJob.status?.start_time),
labels: parseKeyValues(selectedJob.metadata?.labels || {})
}
Expand Down

0 comments on commit d9284e2

Please sign in to comment.