Bug: Version is created despite max file size error
Follow-up from !154728 (comment 1940443517).
@mgandres: It seems to me that the version is still being created even though we're persisting the error. It shows up when I refresh the page. However, I think this might be more of a backend issue than a frontend one.
How to reproduce the bug:
Modify model_registry_helper.rb
to reduce the max allowed file size to 100 bytes
def max_allowed_file_size(project)
100#project.actual_limits.ml_model_max_file_size
end
- Go to Deploy > Model Registry
- Click Create model version button (top-right of the page).
- Upload a file that exceeds the max file size limit. The modal will show an error. It is expected that the version should not be created.
- Refresh the page. Notice that the version has been created.
Edited by Mireya Andres