-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
@@ -1,5 +1,5 @@ | |||
[build-system] | |||
build-backend = "poetry.masonry.api" | |||
build-backend = "poetry.core.masonry.api" |
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 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
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.
Yeah, I looked this up and saw that it changed between 1.3 and 1.4. 🤷🏽♂️
@tdilauro FYI if your reviewing this, I just noticed I updated the wrong test description. Just pushed a commit to fix that. |
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.
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", |
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.
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"
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.