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

Prevent codes with the same name and path but different authors #172

Closed
tanius opened this issue Aug 6, 2020 · 4 comments
Closed

Prevent codes with the same name and path but different authors #172

tanius opened this issue Aug 6, 2020 · 4 comments
Assignees
Milestone

Comments

@tanius
Copy link
Member

tanius commented Aug 6, 2020

These codes should probably not exist, but the database still has some (such as "tourism" ID 3131 and "tourism" ID 5520).

Existing codes that only differ by author should also be renamed by moving them below some parent code.

@tanius
Copy link
Member Author

tanius commented Aug 6, 2020

For @miahass to comment since I don't remember what the last desired kind of behaviour was for this matter. Should it be possible to have codes with the same name and path, differing only by author? If so, which code should be selected when entering the corresponding path for coding in the frontend?

@miahass
Copy link
Collaborator

miahass commented Aug 25, 2020

Sorry for the delay here @tanius . It should not be possible (and in fact, I just came here to request that duplicates be automatically merged).

The only metric I can think of for deciding is either a) the code that has a definition/description filled out; b) the code with the higher number of annotations or c) the code that was created first. But it really doesn't matter that much --- all that matters is that the duplicates are automatically merged together and the annotations from both are preserved.

@tanius
Copy link
Member Author

tanius commented Aug 25, 2020

It should not be possible

It's not possible to create such duplicate codes from within Open Ethnographer. I checked that a few days ago.

So what's left to do here is to merge existing codes that differ only by author, using options a) and then c) from what @miahass recommended above.

@tanius tanius added this to the UX Initiative milestone Aug 25, 2020
@damingo
Copy link
Member

damingo commented Aug 26, 2020

Done. In total 684 codes were merged into other codes.

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

3 participants