-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
add Finna API connector #3498
base: main
Are you sure you want to change the base?
add Finna API connector #3498
Conversation
bc4a0a2
to
9f1b59f
Compare
430e56e
to
980dd4c
Compare
Fixed editions loading and picking edition from work so it prefers books over audiobook/ebook and finnish/swedish language ones if any found. |
c52c38f
to
1b4c4fe
Compare
Fixed the issues that pylint/mypy/black complained, seems that I needed to add finna_key, so added it as separated first commit. |
1b4c4fe
to
3cdf225
Compare
Cleaned out locale changes that jumped in by accident in some rebase |
7feca28
to
7fa08a0
Compare
7fa08a0
to
e1c00f5
Compare
"""doesn't need to do anything""" | ||
db_alias = schema_editor.connection.alias | ||
model = app_registry.get_model("bookwyrm", "Connector") | ||
model.objects.using(db_alias).create( |
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 seems to break lot of connector tests, indicating that it is not actually the preferred flow to add new connector. So should I add it back to initdb with different limit or some other way what is intended flow?
Description
Finna connector
Finna is finnish open API that contains among other things books released in finland
terms of use this API is located in https://www.kiwi.fi/display/Finna/Finna+API+Terms+of+Use and is CC0
more info https://www.finna.fi/Content/about_finnafi
Connector is heavily borrowed from openlibrary and inventaire codebase, this is my first PR toward bookwyrm codebase, so there might be somethings that I have fully missed.
Original thread where the idea started and people pitched ideas and approaches https://mementomori.social/@anotherdream/113881912359314786
What type of Pull Request is this?
Does this PR change settings or dependencies, or break something?
Details of breaking or configuration changes (if any of above checked)
Enables Finna connector
Documentation
Tests