Skip to content

Conversation

@ianmcorvidae
Copy link
Member

Putting this up now. I need to test it a bit more and of course there's the user-facing side to do as well, but it's the last day before break anyway, so I may as well put what I have up.

Copy link
Member

@slr71 slr71 left a comment

Choose a reason for hiding this comment

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

I didn't catch any issues. 👍

maxDiskSpace={maxDiskSpace}
maxCPUCore={maxCPUCore}
maxMemory={maxMemory}
maxGPU={maxGPU}
Copy link
Member

Choose a reason for hiding this comment

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

This still needs to be destructred from props at the top of this EditToolForm component.

If this were a Typescript file, it probably would have been caught at compile-time 😖


const gpu_limit = getIn(values, "container.max_gpus");
if (gpu_limit > 0 && value > gpu_limit) {
return t("validationErrMinGpusGreaterThanMax");
Copy link
Member

Choose a reason for hiding this comment

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

This i18n message needs to be added to public/static/locales/en/tools.json.


const min_gpu_limit = getIn(values, "container.min_gpus");
if (0 < value && value < min_gpu_limit) {
return t("validationErrMaxGpusLessThanMin");
Copy link
Member

Choose a reason for hiding this comment

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

This i18n message needs to be added to public/static/locales/en/tools.json.

{isAdmin && (
<Field
name="container.min_gpus"
label={t("minGpus")}
Copy link
Member

Choose a reason for hiding this comment

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

This i18n message needs to be added to public/static/locales/en/tools.json.

)}
<Field
name="container.max_gpus"
label={t("gpuLimit")}
Copy link
Member

Choose a reason for hiding this comment

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

This i18n message needs to be added to public/static/locales/en/tools.json.

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