analysispreservation.cern.ch icon indicating copy to clipboard operation
analysispreservation.cern.ch copied to clipboard

ui: publishing an unmodified draft skips validations

Open miguelgrc opened this issue 1 year ago • 1 comments

It is possible to, for example, publish draft with an unfilled required field if it has not been modified. This should not be allowed.

To replicate:

  • Create a cms_analysis draft > publish it > it should publish without issues [WRONG BEHAVIOR]
  • Edit any field in the draft (other than the required cadi_id) > save the draft > publish it > it should throw an error [DESIRED BEHAVIOR]

miguelgrc avatar Jul 18 '24 14:07 miguelgrc