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

DOI manuscript retrieval service returns not useful entries #1053

Closed
markpatton opened this issue Sep 26, 2024 · 4 comments
Closed

DOI manuscript retrieval service returns not useful entries #1053

markpatton opened this issue Sep 26, 2024 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@markpatton
Copy link
Contributor

What?

The /doi/manuscript endpint sometimes returns entries with empty values that can't be used.

For example:

curl -u backend:backend  -H "X-XSRF-TOKEN:moo" -H "Cookie:XSRF-TOKEN=moo" localhost:8080/doi/manuscript?doi=10.3352/jeehp.2013.10.3
{
  "manuscripts": [
    {
      "url": null,
      "repositoryLabel": null,
      "type": "application/pdf",
      "source": "Unpaywall",
      "name": null,
      "isBest": true
    },
    {
      "url": null,
      "repositoryLabel": "PubMed Central - Europe PMC",
      "type": "application/pdf",
      "source": "Unpaywall",
      "name": null,
      "isBest": false
    },
    {
      "url": null,
      "repositoryLabel": null,
      "type": "application/pdf",
      "source": "Unpaywall",
      "name": null,
      "isBest": false
    },
    {
      "url": "http://pdfs.semanticscholar.org/f594/5cc11565b2389ab95ff9f97baf3a87967d00.pdf",
      "repositoryLabel": null,
      "type": "application/pdf",
      "source": "Unpaywall",
      "name": "5cc11565b2389ab95ff9f97baf3a87967d00.pdf",
      "isBest": false
    }
  ]
}

Note all these entries with null values that cannot be used.

Why?

The service should only return entries which could be used.

How?

Acceptance Criteria

Related Issues

@markpatton markpatton added the bug Something isn't working label Sep 26, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Eclipse PASS Sep 26, 2024
@dkriethof dkriethof added this to the 1.12.0 milestone Sep 26, 2024
@dkriethof
Copy link
Contributor

@markpatton is this a user-facing issue? (i.e., should we prioritize or can it wait?)

@markpatton
Copy link
Contributor Author

@dkriethof It looks like the UI is good about ignoring empty entries and does not show them, but this is important to take a look at it becuase it might indicate a worse problem.

@markpatton markpatton self-assigned this Oct 14, 2024
@markpatton
Copy link
Contributor Author

markpatton commented Oct 14, 2024

Also noticing that params are added to the filename of the manuscript, which they should not be.

@markpatton
Copy link
Contributor Author

See eclipse-pass/pass-core#94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants