-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 new test for different articles from the same book in DuplicateCeckTest #9769
Conversation
Do I understand this right that booktitle, editor, publisher, isbn and year have to be similar to count as excluded from duplicate check? If one of those 5 differs, then the merge duplicates dialogue will trigger? If one of these 5 misses, the dialogue will also always be triggered? |
I think so, I do not know yet, I was too quick requesting the commit ^^ I will have to do some more work in order to make this work. |
I tested this PR. Following entries trigger duplicate merge dialogue upon copying / pasting them into the same library:
|
You did a pull request, which is fine! You are sharing information fast, which is also fine: "Move fast, break things" is the agile way of working. ^^ In the concrete case, the claim was that the issue #8885 was solved meanwhile. In general, all issue fixes should be covered by test cases - to have a machine-repeatable check. A machine-repeatable check frees us humas to click through JabRef. This pull request created a machine-repatable check for the issue. It turned out that the issue was NOT fixed. Thus, we need to really work on a fix. @Luggas4you You can create an additional test case based on the data provided by @ThiloteE. This way, we also cover his case. Depending on how we treat the difference between title1 and title2, this could also be treated as duplicate. Reason: If a title differs only in one letter, I would bet, it is a duplicate. Thus, maybe the test by @ThiloteE will really lead to a duplicate. @Luggas4you used More test cases:
|
Coming from #8885 (comment) Entries may have the same isbn number, but not be the same entries. Reason: A book has an ISBN number, but a book may contain multiple chapters by different authors. Each chapter can be an entry. This entry is not a duplicate. |
I think the original reason was: If two entries have the same identifier they are most likely duplicates. e..g two articles with the same doi means you already imported that article. |
Yes.
This was overlooked at the implementation. One can even have two
Yes! We currently lack of good support for |
What is the status here? I like the idea of having extra tests, but I think the Duplicate manager does not yet take this into account. I think we can annotate the test with @ignore in the meantime and a description why it's disabled |
879a96b
to
03b3f25
Compare
I added the description now using the |
The GitHub workflows just seem to hang. At another occation, this was because the Workflow file was invalid. This is not the case here. (Screenshot for archiving reasons) Maybe, GitHub has issues, because the PR was opened before the merge queue was activated? Therefore, I try to close and reopen the PR. |
Temporarily removed "Create installer for X" to required checks. They will be checked by the merge queue nevertheless. Trying now. |
Mabye because it was a fork of jabref and therefore the build installer does not work/is skipped? |
(For the interested readers)
I thought so too. I wondered, why it worked before the merge. I tried to re-create protection rules. Did not work. Then I came to the idea of triggers. See #10319 for the fix and the linked discussion for an explanation. |
Adds a new test for #8885 to
org.jabref.logic.database.DuplicateCheckTest
which checks if different articles from the same book are duplicates.Compulsory checks