Bug description
Context: This issue is related to #11900 and concerns Scenario 2 identified during testing.
When a controlledVocabulary metadata field becomes required after a dataset has been created (for example, following a metadata block modification via TSV file), Dataverse does not correctly detect this missing metadata.
Issue: The dataset that was previously valid with optional metadata allows form validation even though the newly required field is not filled in.
Steps to reproduce
- Create a dataset with a set of required metadata
- Modify the metadata block to make a previously optional field required (e.g.,
publicationRelationType)
- Open the existing dataset's edit form
- Notice that the newly required field is not marked as invalid and the form can be validated without filling in this field
Expected behavior
- The edit form should clearly indicate newly required but unfilled fields
- DRAFT form validation should be blocked until all required fields are filled in
Affected version
Dataverse v6.9
Are you thinking about creating a pull request for this issue?
No fix is currently planned by the team.