-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
…roject contributor we only want id on project contributors that are verified in cristin to make it easier for frontend
private URI convertId(String cristinPersonId) { | ||
return getNvaApiId(cristinPersonId, PERSON_PATH_NVA); | ||
private URI convertId(Boolean identified, String cristinPersonId) { | ||
return identifiedFieldNotPresent(identified) || identified |
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, if we don't have the data, or the person is identifier…we keep the URI?
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.
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
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.
this is a no comments, comment
cristin-commons/src/main/java/no/unit/nva/cristin/model/CristinPerson.java
Show resolved
Hide resolved
.../src/main/java/no/unit/nva/cristin/projects/model/cristin/adapter/CristinPersonToPerson.java
Outdated
Show resolved
Hide resolved
20a2d08
…roject contributor
we only want id on project contributors that are verified in cristin to make it easier for frontend