clowder-framework / clowder2

Clowder v2 (in development)
Apache License 2.0
12 stars 5 forks source link

Checking whether required metadata is filled in not working properly. #1130

Open ddey2 opened 1 month ago

ddey2 commented 1 month ago
  1. Make sure there is a metadata definition for file with required field, and not required field
  2. Try to upload a file
  3. Just enter the optional field => It enables the Next button (Indeally it shouldn't)
  4. Restart and try to fill in required field. => It enables the Next button (Indeally it should, so it works in that case)
  5. Remove the required metadata => The next button remains enabled
  6. Try to click on Next => It allows to upload file (Indeally it shouldn't unless you add the reuqired field for the metadata)
Screenshot 2024-06-27 at 4 07 36 PM Screenshot 2024-06-27 at 4 07 45 PM Screenshot 2024-06-27 at 4 07 56 PM Screenshot 2024-06-27 at 4 08 04 PM
tcnichol commented 2 weeks ago

Something odd.

When I created a metadata definition that was not required for files, I would see 'update' and if I did not fill in the required field (just the optional one) I got an error.

Looking into this, figuring out what is different for this case.