-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Resolve File Creation Issue With Medline/PubMed #8552
Conversation
@Siedlerchr A better fix would be to change the name in MedlineFetcher from "Medline/PubMed" to some other appropriate one imho.
|
The fetcher has been named like that for ages. And there can always be a fetcher with a weird name, so this should be fine, |
@Siedlerchr Please review! |
Assertions.assertEquals(result.get(0).getName(), "Springer"); | ||
Assertions.assertEquals(result.get(1).getName(), "ArXiv"); | ||
Assertions.assertEquals(result.get(2).getName(), "Medline/PubMed"); |
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.
In general, it is better you compare two collections directly, this makes it easier to spot differences in case of failure.
e.g. you have on the one hand:
expectedFetcherNames = LIst.of(.......)
actualFetcherNames = result.stream.map(Fetcher::getName).toCollection...
assertEquals(expectedFetcherNames,
@@ -60,6 +60,9 @@ public void testWhetherAllFilesAreCreated() throws Exception { | |||
|
|||
assertTrue(Files.exists(Path.of(tempRepositoryDirectory.toString(), hashCodeQuantum + " - Quantum", "result.bib"))); | |||
assertTrue(Files.exists(Path.of(tempRepositoryDirectory.toString(), hashCodeCloudComputing + " - Cloud Computing", "result.bib"))); | |||
|
|||
assertTrue(Files.exists(Path.of(tempRepositoryDirectory.toString(), hashCodeQuantum + " - Quantum", "Medline_PubMed.bib"))); |
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.
I wonder if it makes sense to convert this test to a parameterized unit test.
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.
We would need multiple "study.yml" files, so... yeah, let me know what you think would be better
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.
overall lgtm, just some ideas for improvement.
CHANGELOG.md
Outdated
@@ -65,6 +65,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve | |||
- We fixed an issue where someone could add a duplicate field in the customize entry type dialog. [#8194](https://github.com/JabRef/jabref/issues/8194) | |||
- We fixed a typo in the library properties tab: "String constants". There, one can configure [BibTeX string constants](https://docs.jabref.org/advanced/strings). | |||
- We fixed an issue when writing a non-UTF-8 encoded file: The header is written again. [#8417](https://github.com/JabRef/jabref/issues/8417) | |||
- We fixed an issue where folder creation during systemic review failed due illegal fetcher name. [#8552](https://github.com/JabRef/jabref/pull/8552) |
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.
- We fixed an issue where folder creation during systemic review failed due illegal fetcher name. [#8552](https://github.com/JabRef/jabref/pull/8552) | |
- We fixed an issue where folder creation during systemic literature review failed due to an illegal fetcher name. [#8552](https://github.com/JabRef/jabref/pull/8552) |
Hi
|
@addak The whitepsace was tricky, it was the last element int the list. |
Issue : Due to the Fetcher Name being "Medline/PubMed", File creation fails as Medline is treated as a Directory and since It isn't created, the issue is observable.
Fixes #8455
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)