Conditionally Required Entries in Custom Metadata Blocks
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
Background
To ensure data quality and completeness, we need the ability to make certain fields in custom metadata blocks conditionally required based on user responses.
Issue
In the custom metadata blocks "Metadata about Data Sources" and "Metadata about Geospatial Files", we would like fields to appear as required only if "yes" is selected for the first question.
Feature Request
- Implement logic to conditionally require fields in custom metadata blocks based on previous field responses.
- Ensure that the fields are only marked as required if the condition is met.
Justification
This feature will help maintain metadata standards by ensuring that users provide all necessary information when certain conditions are met, thereby improving data quality and consistency.
Implementation Considerations
- Review the current implementation of metadata blocks and identify where conditional logic can be applied.
- Analyze the feasibility of implementing this feature and confirm with the team.
- Develop and test the necessary changes to the system to support conditionally required fields.
- Ensure that the changes are backward compatible and do not affect existing metadata entries.
Additional Context
This feature request is based on recurring issues where users do not provide additional metadata unless it is explicitly required. By making fields conditionally required, we can ensure that all relevant information is captured during the dataset creation process. Given that the viability of implementing this new feature is not yet confirmed, an initial analysis will be necessary to determine if it can be achieved and to plan the implementation accordingly.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the current implementation of the custom metadata blocks “Metadata about Data Sources” and “Metadata about Geospatial Files,” including how field responses and required-state validation are handled. Confirm with the team whether conditional requirements are feasible and backward compatible; done should include an agreed implementation plan and tests for both condition states.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100