Skip to content

Commit

Permalink
Fix [Jobs] Run status contains full artifacts in response for api/v1/…
Browse files Browse the repository at this point in the history
…run/{project}/{uid} `1.6.x` (#2458)
  • Loading branch information
mariana-furyk committed May 20, 2024
1 parent 078793c commit 8573fa5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/JobWizard/JobWizard.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
set,
some
} from 'lodash'

import {
ADVANCED_STEP,
CONFIG_MAP_VOLUME_TYPE,
Expand All @@ -44,6 +45,7 @@ import {
LIST_TUNING_STRATEGY,
MAX_SELECTOR_CRITERIA,
PANEL_DEFAULT_ACCESS_KEY,
PANEL_RERUN_MODE,
PARAMETERS_FROM_FILE_VALUE,
PARAMETERS_FROM_UI_VALUE,
PARAMETERS_STEP,
Expand Down Expand Up @@ -1033,13 +1035,18 @@ export const generateJobRequestData = (
formData[RUN_DETAILS_STEP].version
)
const [volume_mounts, volumes] = generateVolumes(formData[RESOURCES_STEP].volumesTable)
let labels = [...formData[RUN_DETAILS_STEP].labels]

if (mode === PANEL_RERUN_MODE) {
labels = labels.filter(label => label.key !== 'workflow')
}

const postData = {
task: {
metadata: {
project: params.projectName,
name: formData[RUN_DETAILS_STEP].runName,
labels: convertChipsData(formData[RUN_DETAILS_STEP].labels)
labels: convertChipsData(labels)
},
spec: {
inputs: generateDataInputs(formData[DATA_INPUTS_STEP].dataInputsTable),
Expand Down

0 comments on commit 8573fa5

Please sign in to comment.