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

Fix bug where open access titles in ODL feeds would fail to import (PP-847) #147

Merged
merged 3 commits into from
Jan 17, 2024

Conversation

jonathangreen
Copy link
Member

We should be supporting this case, but there was a bug in the parser preventing it. The fix is one line, but I also added a test to make sure we are handling this case.

@jonathangreen jonathangreen requested a review from a team January 17, 2024 14:42
@@ -1,5 +1,5 @@
[build-system]
build-backend = "poetry.masonry.api"
build-backend = "poetry.core.masonry.api"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like its been incorrect for some time, and its not usually a problem, since its not normally used. But I was installing the package in development mode for testing, which was failing because this was not correctly set.

Poetry documentation about what the value should be:
https://python-poetry.org/docs/pyproject/#poetry-and-pep-517

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I looked this up and saw that it changed between 1.3 and 1.4. 🤷🏽‍♂️

@jonathangreen
Copy link
Member Author

@tdilauro FYI if your reviewing this, I just noticed I updated the wrong test description. Just pushed a commit to fix that.

Copy link

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🚀

One minor comment about a label name.

@@ -186,6 +186,38 @@ class ODLSemanticAnalyzerTest(AnalyzerTest):
)
],
),
(
"when_publication_does_not_contain_neither_licenses_nor_oa_link",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: We might be a double negative in this label, which is confusing:
"when_publication_does_not_contain_neither_licenses_nor_oa_link" ->
"when_publication_contains_neither_licenses_nor_oa_link"
or
"when_publication_has_no_licenses_or_oa_links"

@jonathangreen jonathangreen merged commit 42af1cb into main Jan 17, 2024
9 checks passed
@jonathangreen jonathangreen deleted the bugfix/odl-feed-with-open-access branch January 17, 2024 18:36
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.

2 participants