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

np-47689: Use field verified to know if we should keep id or not on p… #410

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

torarnet
Copy link
Contributor

…roject contributor

we only want id on project contributors that are verified in cristin to make it easier for frontend

…roject contributor

we only want id on project contributors that are verified in cristin to make it easier for frontend
brinxmat
brinxmat previously approved these changes Sep 27, 2024
private URI convertId(String cristinPersonId) {
return getNvaApiId(cristinPersonId, PERSON_PATH_NVA);
private URI convertId(Boolean identified, String cristinPersonId) {
return identifiedFieldNotPresent(identified) || identified
Copy link
Contributor

Choose a reason for hiding this comment

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

So, if we don't have the data, or the person is identifier…we keep the URI?

Copy link
Contributor Author

@torarnet torarnet Sep 27, 2024

Choose a reason for hiding this comment

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

Exactly. We dont want to remove the id if the field identified cristin person is missing. This makes it backwards compatible and if we want to enforce the field later it is a simple change in proxy

StigNorland
StigNorland previously approved these changes Sep 30, 2024
Copy link
Contributor

@StigNorland StigNorland left a comment

Choose a reason for hiding this comment

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

this is a no comments, comment

torbjokv
torbjokv previously approved these changes Sep 30, 2024
@torarnet torarnet dismissed stale reviews from torbjokv, StigNorland, and brinxmat via 20a2d08 October 1, 2024 08:00
@torarnet torarnet merged commit 29c7e8d into main Oct 4, 2024
8 checks passed
@torarnet torarnet deleted the np-47689-remove-id-when-not-verified branch October 4, 2024 14:15
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.

5 participants