Skip to content

Allow validation of Openshift allocations when changing quotas#139

Open
QuanMPhm wants to merge 1 commit intonerc-project:mainfrom
QuanMPhm:138/request_redirect
Open

Allow validation of Openshift allocations when changing quotas#139
QuanMPhm wants to merge 1 commit intonerc-project:mainfrom
QuanMPhm:138/request_redirect

Conversation

@QuanMPhm
Copy link
Contributor

Closes #138 when nerc-project/coldfront-plugin-cloud#208 is also merged. More info in the commit message.

In combination with changes to `coldfront-plugin-cloud` [1],
a Coldfront patch is added to allow validation of
Openshift allocation change requests (arc).

Currently only one scenario is tested:
If the acr requests for quotas below the current usage of
the project, the user will be sent back to the change
request form with an informative error message.

This feature is possible by leveraging Django formsets
and their built-in custom validation feature [2]

[1] nerc-project/coldfront-plugin-cloud#208
[2] https://docs.djangoproject.com/en/5.1/topics/forms/formsets/#custom-formset-validation
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.

Implement the possibility of introducing validation to new allocation requests and new change requests

1 participant