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

Handle existing URLs in citations #91

Open
wants to merge 67 commits into
base: master
Choose a base branch
from
Open

Conversation

nemobis
Copy link
Member

@nemobis nemobis commented Dec 6, 2023

Bug: T196255

The Meta-Wiki page is out of step with recent legislation.
LIBER has helpfully provided new informational pages.
* Introduce a timeout for the first Unpaywall phase.
* Throw away old suggestions to avoid wasting resources on stale data.
* Run the Dissemin prefill with its own Python script as the import
  takes most of the time when issued once per title.
* Keep URL if it already offers a PDF. Useful for example when another
  repository link is present, or a resolver which goes to the same place.
* Add url-access for existing links which we can't override because there
  is no open access copy.
Otherwise we may be stuck forever.
Avoids

  TypeError: argument of type 'NoneType' is not iterable
ImportError: attempted relative import with no known parent package
https://docs.sqlalchemy.org/en/20/core/defaults.html#associating-a-sequence-as-the-server-side-default

Trying to avoid, during testing,

sqlalchemy.exc.StatementError: (sqlalchemy.exc.OperationalError) (pymysql.err.OperationalError) (4091, "Unknown SEQUENCE: 'userstats_id_seq'")
We want to convert all hdl URLs and to rank all hdl, citeseerx URLs even
if they are not in the best_oa_location object.
Didn't help with avoiding hanging, probably caused by insufficient
CPU resources.

This reverts commit 8b0776f.
Partially reverts ddab25a

Bug: T354471
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.

1 participant