-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update budget based on gpu type and memory #3731
Conversation
I'm putting this up for review, but it's not complete yet. I'm running into the issue that the (Will fix the failing tests regarding credits as well.) |
Sounds like an HTMX issue / bug to me where empty values are not sent along with POST requests, or did you already find the reason / a fix for it? |
Feels like it indeed. Haven't found a fix yet. |
It indeed appears to be an issue with HTMX. Specifically, it appears HTMX is excluding the empty string checkbox value when other values in the same group exist, treating it as redundant. |
Is there a reason that the |
That would involve a data migration to many fields, and is not how Django represents a blank choice everywhere else. It was chosen to be |
This doesn't implement the setting of these values when phases are converted to Algorithm phases, I think? Is that intentional and coming in another PR? |
That was intended for another PR indeed. But it's a very small thing. I could add it here if you don't mind. |
Completely up to you. |
Ok, I've included setting the values on the phases when they are converted. |
Great, can be merge once the tests are fixed. |
These had been [pre-checked on the form](https://github.com/comic/grand-challenge.org/pull/3731/files#diff-f578f140394fbfc242dcbbcb8e8af31bcd700285b32677b6e65f3543e01b0c0bL407-L408) so the correct default was used in #3731 in order to preserve behaviour, but I'm not sure they should be pre-checked.
GPU type choices and maximum memory for algorithm inference jobs are now included in challenge requests. This information is used in the budget calculation and also passed down to the challenge phases when they are converted to Algorithm submission phases.
Related to https://github.com/DIAGNijmegen/rse-roadmap/issues/346