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

IQSS/9185-improve parsing for given/family name #9643

Merged

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Jun 15, 2023

What this PR does / why we need it:
The current algorithm only parses the given and family name if the given name is in the list of known names. Otherwise, even if the algorithm identifies the name as belonging to a person, it will leave the given and family names null. This PR adds a check and if the name belongs to a person and there's a single comma in the string, it will parse familyname, givenname from the string.

Which issue(s) this PR closes:

Closes #9185

Special notes for your reviewer:

Suggestions on how to test this:
An example from QDR is "Kirilova, Dessi". With this PR, sending a contact email for a dataset with this contact name, the greeting will be "Hello Dessi Kirilova," rather than "Hello Kirilova, Dessi,"

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@qqmyers qqmyers added the Size: 3 A percentage of a sprint. 2.1 hours. label Jul 5, 2023
@coveralls
Copy link

Coverage Status

coverage: 20.377% (+0.005%) from 20.372% when pulling f392122 on QualitativeDataRepository:IQSS/9185-contact_email_updates into f98636d on IQSS:develop.

@qqmyers qqmyers added the GDCC: QDR of interest to QDR label Jul 5, 2023
@cmbz cmbz added this to the 5.14 milestone Jul 10, 2023
@cmbz cmbz added this to Ready for Review ⏩ in IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) via automation Jul 10, 2023
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from Ready for Review ⏩ to Ready for QA ⏩ Jul 10, 2023
@kcondon kcondon self-assigned this Jul 12, 2023
@kcondon kcondon merged commit dae1484 into IQSS:develop Jul 12, 2023
8 of 9 checks passed
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA ✅ to Done 🚀 Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GDCC: QDR of interest to QDR Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Feature Request/Idea: Improve Contact Form Email
5 participants