Skip to content

Conversation

AmirAllayarovSofteq
Copy link
Contributor

No description provided.

@AmirAllayarovSofteq AmirAllayarovSofteq self-assigned this Jun 21, 2024
import { first, isArray, get } from 'lodash'
import { AddRedisDatabaseStatus, EnhancedAxiosError, IBulkOperationResult } from 'uiSrc/slices/interfaces'
import {AxiosError, AxiosResponse} from 'axios'
import {first, isArray, get, set} from 'lodash'
Copy link
Contributor

Choose a reason for hiding this comment

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

please, add spaces

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks

if (e instanceof YAMLException) {
errors.push({ filename: 'config', msg: e.reason })
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

could you please use here yamlToJson function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Thank you.

},
})
dispatch(rdiDryRunJob(rdiInstanceId, JSON.parse(input), yaml.load(job)))
dispatch(rdiDryRunJob(rdiInstanceId, JSON.parse(input), job))
Copy link
Contributor

Choose a reason for hiding this comment

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

can we fail here with JSON.parse?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, we validate submit button. If JSON.parse failed - the button will be disabled

@mariasergeenko mariasergeenko merged commit a4353a6 into release/2.52.0 Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants