analysispreservation.cern.ch
analysispreservation.cern.ch copied to clipboard
ui: publishing an unmodified draft skips validations
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]