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

Tags Attack! Tag Uniqueness is not enforced, resulting in multiples in select list and assigned in db. #5002

Closed
kcondon opened this issue Aug 27, 2018 · 4 comments

Comments

@kcondon
Copy link
Contributor

kcondon commented Aug 27, 2018

Reported by our internal data curation team:

On Friday, I was meeting with Danny when he noticed that there continues to be duplicate tags listed when applying tags to files on Dataverse. He thought this bug was fixed in the latest release to the issue persists. I was working on a MRA study (https://hdl.handle.net/1902.1/00640) when he noticed the duplicates.

It turns out it is not uncommon to copy and paste an existing tag into the create custom tag edit field rather than selecting the already created tag of the same name from the tag list box. Since we do not enforce tag uniqueness for a dataset, this results in multiple tags of the same name both in the db and in the tag select list, causing confusion.

This ticket is about enforcing unique tags for a dataset and also cleaning up existing records that may have used these multiple tags.

A power user (Dawyne) requested to have a future solution detect a duplicate if entered and rather than fail, just use the existing tag.

@mheppler
Copy link
Contributor

Highly related to Edit File Tags: Duplicate Custom Tags #2991.

@mheppler
Copy link
Contributor

mheppler commented Aug 5, 2019

Moving comment from #2991 here and closing that as a duplicate.

Attempted to replicate the "minor" bugs reported above, but they seemed to have been resolved. Could be fix by a commit from @sekmiller on Mar 18, 2016 6f02f7e that was part of the PR for said #2391 linked in the comment above.

One new bug for the Edit Tags popup that I discovered in demo (v. 4.14 build 1326-57a392d), on both the dataset and edit files pgs, is that when you create a custom file tag for one file, and then add it to a second in the same edit file metadata workflow, it results in two custom tags being generated and displayed in the dropdown going forward.

Screen Shot 2019-06-18 at 11 00 44 AM

Also, to simplify this issue, I have removed the "consolidate two popups" suggestion from the title, as that is a far more involved code refactoring.

Highly related to Tags Attack! Tag Uniqueness is not enforced, resulting in multiples in select list and assigned in db. #5002. Maybe related to Save on Upload error: Upload 3 files at once with descriptions and custom tags results in exception. #4918

@djbrooke
Copy link
Contributor

djbrooke commented Aug 19, 2020

  • Instead of creating a second tag when a custom tag already exists, just assign the existing tag
  • What do with existing duplicate tags? Add a Flyway migration script to consolidate what's there
  • Define validation rules (consider case sensitivity)

@pdurbin pdurbin added the Type: Bug a defect label Nov 16, 2023
@cmbz
Copy link

cmbz commented Aug 20, 2024

To focus on the most important features and bugs, we are closing issues created before 2020 (version 5.0) that are not new feature requests with the label 'Type: Feature'.

If you created this issue and you feel the team should revisit this decision, please reopen the issue and leave a comment.

@cmbz cmbz closed this as completed Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants