Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old taxa entry automatically populated in new metadata record in editor #2196

Closed
robyngit opened this issue Sep 20, 2023 · 3 comments · Fixed by #2210
Closed

Old taxa entry automatically populated in new metadata record in editor #2196

robyngit opened this issue Sep 20, 2023 · 3 comments · Fixed by #2210
Assignees
Labels
bug editor SCTLD taxa editor Issues related to improving or fixing the taxonomic classifications section of the Editor
Milestone

Comments

@robyngit
Copy link
Member

SCTLD reported that new metadata records are being automatically populated with taxa information from previous records. Their team indicated that this issue is new, so seems to be due to a recent change.

Steps to Reproduce

  1. Add or edit the taxa in another dataset.
  2. Click on to the submit data button.
  3. Open the Taxa entry form for a new metadata record.

Expected Behavior

The Taxa entry form for a new metadata record should be blank.

Actual Behavior

The Taxa entry form is already populated with taxa from a previous record. For example, Lisa saw that "Montastraea cavernosa" was preloaded in a new, blank form, which was the species loaded for her previous project.

Workaround

For now, users can manually delete the preloaded species that are not relevant to the new record.

Additional Information

  • Lisa tried logging out and back in to reset the issue but found no change.
  • SCTLD is using the "quick taxa entry" feature
@robyngit robyngit added bug editor taxa editor Issues related to improving or fixing the taxonomic classifications section of the Editor SCTLD labels Sep 20, 2023
@robyngit robyngit added this to the 2.27.0 milestone Sep 20, 2023
@robyngit robyngit self-assigned this Sep 20, 2023
@robyngit
Copy link
Member Author

Somewhat similar caching issue: #948

@robyngit
Copy link
Member Author

robyngit commented Oct 2, 2023

I've found that the key to reproducing this issue is that you must click the "submit" button to create a new dataset without saving the current dataset that has some taxa entered

@robyngit
Copy link
Member Author

robyngit commented Oct 2, 2023

The problem happens specifically when adding taxa with the quick add feature. When the current coverages are retrieved in the getTaxonQuickAddOptions method, the EML model already has taxa set from records previously edited in the Editor.

The branch with work on this issue is bugfix-2196-persistent-taxa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug editor SCTLD taxa editor Issues related to improving or fixing the taxonomic classifications section of the Editor
Projects
None yet
1 participant