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

remove parentheses from dataset contact affiliation #6570 #6619

Merged
merged 2 commits into from
Feb 6, 2020

Conversation

pdurbin
Copy link
Member

@pdurbin pdurbin commented Feb 6, 2020

What this PR does / why we need it:

Which issue(s) this PR closes:

Closes #6570

Special notes for your reviewer:

I copied and pasted a similar method above. Here's where the similar method is now used (one fewer place in this pull request since the Search API uses the new method):

Screen Shot 2020-02-06 at 10 54 23 AM

Suggestions on how to test this:

Add an affiliation to the contact of a dataset and inspect the JSON output from the Search API when finding that dataset. The value should not be wrapped in parentheses, like it is in 4.19.

Does this PR introduce a user interface change?:

No.

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

Yes, added. Technically this is a backward incompatible change but it's a small one and I don't think it's worth adding a configuration option for it. Sorry, API users. You no longer need to strip parentheses from affiliation if you were before.

Additional documentation:

None.

@coveralls
Copy link

coveralls commented Feb 6, 2020

Coverage Status

Coverage decreased (-0.0006%) to 19.47% when pulling e3a25fa on 6570-search-api into 78fbb09 on develop.

Copy link
Contributor

@sekmiller sekmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest using one method for getDatasetContacts with a parameter to proscribe whether parens are added to the affiliation field

@pdurbin pdurbin assigned pdurbin and unassigned sekmiller Feb 6, 2020
@pdurbin pdurbin removed their assignment Feb 6, 2020
@pdurbin pdurbin requested a review from sekmiller February 6, 2020 19:23
@pdurbin
Copy link
Member Author

pdurbin commented Feb 6, 2020

@sekmiller I just reduced code duplication in e3a25fa

Copy link
Contributor

@sekmiller sekmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@kcondon kcondon self-assigned this Feb 6, 2020
@kcondon kcondon merged commit c4e6065 into develop Feb 6, 2020
@kcondon kcondon deleted the 6570-search-api branch February 6, 2020 20:31
@djbrooke djbrooke added this to the 4.20 milestone Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New contact affiliation metadata in Search API includes parentheses
5 participants