You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the modal form for editing a radiocarbon date, I am unable to save the date unless I provide an arbitrary context name. I am not sure if this is a bug or intended behavior, but given that most of our current data has blank contexts, we should consider allowing empty contexts.
Proposed Solutions
Allow blank contexts in the form by removing the validation requirement.
If we decide that context names should remain mandatory, we should revisit whether this aligns with our dataset and workflow.
Relevant Code
Currently, the context model enforces:
validates:name,presence: true
If we want to allow blank contexts, we should remove or modify this validation.
Next Steps @joeroe, what do you think? Should we enable blank contexts or enforce names consistently?
Side note
This is only relevant currently for Radiocarbon dates, since due to the importer the test data for dendro all come with a specified context.
The text was updated successfully, but these errors were encountered:
MartinHinz
changed the title
Allow Blank Contexts in (Radiocarbon/Dendro) Date Form
Allow Blank Contexts in (Radiocarbon/Dendro) Date Form?
Feb 4, 2025
In the modal form for editing a radiocarbon date, I am unable to save the date unless I provide an arbitrary context name. I am not sure if this is a bug or intended behavior, but given that most of our current data has blank contexts, we should consider allowing empty contexts.
Proposed Solutions
Relevant Code
Currently, the context model enforces:
If we want to allow blank contexts, we should remove or modify this validation.
Next Steps
@joeroe, what do you think? Should we enable blank contexts or enforce names consistently?
Side note
This is only relevant currently for Radiocarbon dates, since due to the importer the test data for dendro all come with a specified context.
The text was updated successfully, but these errors were encountered: