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

Author claiming checks for whether to create a ticket are wrong #467

Closed
michamos opened this issue May 16, 2024 · 5 comments
Closed

Author claiming checks for whether to create a ticket are wrong #467

michamos opened this issue May 16, 2024 · 5 comments
Assignees
Labels
type: bug Something isn't working

Comments

@michamos
Copy link
Collaborator

michamos commented May 16, 2024

inspirehep/inspirehep#2403 outlines the approach to claiming papers from a different profile. There is an important distinction of whether users are allowed to claim the papers, or a ticket for a curator should be created instead.

The checks that are implemented are not in line with the requirements however:

Examples:

Author name in paper (authors.full_name) Author name in profile (name.value OR name.name_variants) can_claim
Smith, John Smith, J.
Smith, J. Smith, John
Smith Davis, J. Smith, Robert
Davis, J. Smith Davis, P.
Smith, J. Davis, Smith
Smïth, J. Smith, J.
Smith Davis Smith, J.
Smith, J. Smith
@michamos michamos added the type: bug Something isn't working label May 16, 2024
@drjova drjova self-assigned this Jun 4, 2024
@drjova
Copy link
Contributor

drjova commented Jun 13, 2024

@michamos it's not clear for me, for example if I have {Smith, Davis} and {Smith} should we allow claim or not?

@michamos
Copy link
Collaborator Author

michamos commented Jun 13, 2024 via email

@drjova
Copy link
Contributor

drjova commented Jun 13, 2024

The issue is the ParsedName when we have just Smith it parsed like a first name, is it a bug or should we make a special case for that?

name = "Smith"
ParsedName.loads(name)

<HumanName : [
        title: '' 
        first: 'Smith' 
        middle: '' 
        last: '' 
        suffix: ''
        nickname: ''
]>

@michamos
Copy link
Collaborator Author

michamos commented Jun 13, 2024 via email

@drjova
Copy link
Contributor

drjova commented Jun 13, 2024

Yeah right, I forgot the Pink case 😅

We have also this Smith Davis & Smith, J.

Our parser returns:

<HumanName : [
        title: '' 
        first: 'J.' 
        middle: '' 
        last: 'Smith' 
        suffix: ''
        nickname: ''
]>

and

<HumanName : [
        title: '' 
        first: 'Smith' 
        middle: '' 
        last: 'Davis' 
        suffix: ''
        nickname: ''
]>

Which are incompatible, should we handle this case as well? Or it's a mistake in the requirements?

drjova added a commit to drjova/inspirehep that referenced this issue Jun 13, 2024
drjova added a commit to drjova/inspirehep that referenced this issue Jun 14, 2024
drjova added a commit to drjova/inspirehep that referenced this issue Jun 14, 2024
drjova added a commit to drjova/inspirehep that referenced this issue Jun 14, 2024
drjova added a commit to inspirehep/inspirehep that referenced this issue Jun 15, 2024
@drjova drjova closed this as completed Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants