-
Notifications
You must be signed in to change notification settings - Fork 49
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
Rename duplicated terms in tcontact.obo #1907
Rename duplicated terms in tcontact.obo #1907
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would also be good to also change/add a definition to make it clear that these are specifically related to the contact (i.e. properties). The other terms with the same name are intended to be the type of contact.
Affiliated Department: The department of the institution or organization that the contact is affiliated with.
Affiliated Institution: The employer (e.g. company, university, corporation) that the contact is affiliated with.
Affiliated Organization: The formal group of people the contact is affiliated with. Organizations differ from institutions by being more focused on people coming together for a specific purpose; where as, institutions usually refer to physical locations of a particular corporation.
Have we always been able to use the |
That's a very good question @spficklin that I had not thought about. The good news is that the database abstraction layer will handle sanitization for a Our code, where $name comes from the autocomplete input, is
|
I think based on the code that it is safe to continue allowing this for the autocompletes :-) The updated definitions look perfect @dsenalik <3 |
I did not think we would need an update hook, because if we do the Chado prepare step when migrating, it will change these terms. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😮 So you are right -no need for an update hook for this one.
I finally found the time to test this. I created a docker on the 4.x branch and queried to confirm that I had the old version of the department term:
2956 tripal_contact Department
2963 tripal_contact Department(TCONTACT:0000016)
Then I switched to this branch and ran the prepare again. The prepare ran again without an error. Then I queried the terms again.
2956 tripal_contact Department
2963 tripal_contact Affiliated Department
Bug Fix
Closes #1906
Tripal Version: 4.x
Description
This renames the two duplicated terms to be unique, and renames a third term for consistency. See more details in linked issue #1906
Also, this file had DOS style line endings, so converted this. See commit eb58f33 to more clearly see the actual changes.
Testing?
Build a docker
![2024-06-19_newDepartment](https://private-user-images.githubusercontent.com/8419404/341066811-19cafaab-73f9-4c3a-9b87-13d670d25626.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4NjE5NzMsIm5iZiI6MTcxOTg2MTY3MywicGF0aCI6Ii84NDE5NDA0LzM0MTA2NjgxMS0xOWNhZmFhYi03M2Y5LTRjM2EtOWI4Ny0xM2Q2NzBkMjU2MjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDFUMTkyMTEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTkzN2I4OTcyNTdiY2NlNDhiYjAzZjE3NWFkMTM2NDQzYzc4NDY2ODcwMmQwN2VhYTE3N2Y3ZTIyYzMwNDQwMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.LVn50UpjGwb-vzLq-sZICApCbs79Qzmnn_1DBd7hm1c)
Add a new contact
Enter "%Departmen" for the type, the autocomplete should offer
Change to "%Organizatio"
![2024-06-19_newOrganization](https://private-user-images.githubusercontent.com/8419404/341066909-bfff451d-47bc-4a33-b652-68c696b07dbd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4NjE5NzMsIm5iZiI6MTcxOTg2MTY3MywicGF0aCI6Ii84NDE5NDA0LzM0MTA2NjkwOS1iZmZmNDUxZC00N2JjLTRhMzMtYjY1Mi02OGM2OTZiMDdkYmQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDFUMTkyMTEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTY0NTRjYmQ5YmJhOGMzMjQzNmFhMjA0ODFhMjAyMjk5MjgwNTk5YzExMDljZmNkYjBlOTNlZjVmZjhhNmNiMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.JjH7XjnQ3hPjVCScvpEi1r-mG_rAwP6PVxQ3Z8C7JA8)