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.

@ianmcorvidae
Copy link
Member Author

Appreciate the reviews, I definitely put this up hastily and didn't check on it well enough. I'll work on getting those strings in and the destructuring issue fixed.

@ianmcorvidae ianmcorvidae changed the title Add min/max GPUs to edit tool dialog CORE-2103: Add min/max GPUs to edit tool dialog Jan 9, 2026
@ianmcorvidae ianmcorvidae requested a review from psarando January 9, 2026 21:16
Copy link
Member

@psarando psarando left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@ianmcorvidae
Copy link
Member Author

thanks for the re-review! I think I'll go ahead and merge this and get it deployed in QA to make sure regular job launches still work, then get working more deeply on the user-facing bits

@ianmcorvidae ianmcorvidae merged commit 95f44d4 into cyverse-de:main Jan 12, 2026
6 checks passed
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