-
Notifications
You must be signed in to change notification settings - Fork 0
Add comprehensive conflict policy #92
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
base: master
Are you sure you want to change the base?
Conversation
|
Thank you, can you increase the package.json version so we can release a new version? |
| for (const publication of (profile.content?.publications || [])) { | ||
| let year = -1; | ||
| if (publication.content?.year) { | ||
| const convertedYear = parseInt(publication.content.year, 10); |
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.
how about v2 note
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.
How can you tell it's v1 vs v2?
| if (nYears) { | ||
| const cutoffDate = new Date(); | ||
| cutoffDate.setFullYear(cutoffDate.getFullYear() - nYears); | ||
| cutOffYear = cutoffDate.getFullYear(); |
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.
the year is set in cutoffDate but only the year is used
so i think this logic is equivalent to
current year - nYears
|
i think getComprehensiveProfileInfo method itself requires unit tests |
This PR adds the comprehensive conflict policy to the JS client. The only difference between this and the NeurIPS policy is that this takes internships into account for conflict detection.