Skip to content

Conversation

@InAnYan
Copy link
Member

@InAnYan InAnYan commented Nov 2, 2025

Closes https://github.com/JabRef/jabref-issue-melting-pot/issues/1063

Tried to run a duplicate check after SLR.

Remarks:

  • In general, this should not happen and internally SLR must remove (move, merge, treat) duplicate papers.
  • I'm not sure that the chosen approach of AutomaticDuplicateRemover is right.

Steps to test

  1. Checkout to the latest main branch
  2. Run SLR with any query (I used for testing: greek, greeks, ancient greeks)
  3. I got around 458 entries

After I run a duplicate finder with clicking "Keep merged", I got 449 entries.

Then:

  1. Checkout to this PR
  2. Run the same SLR
  3. See that you got 449 entries

Mandatory checks

  • I own the copyright of the code submitted and I license it under the MIT license
  • I manually tested my changes in running JabRef (always required)
  • [/] I added JUnit tests for changes (if applicable)
  • [/] I added screenshots in the PR description (if change is visible to the user)
  • [/] I described the change in CHANGELOG.md in a way that is understandable for the average user (if change is visible to the user)
  • I checked the user documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request updating file(s) in https://github.com/JabRef/user-documentation/tree/main/en.

BibDatabase database = databaseContext.getDatabase();
List<BibEntry> entries = database.getEntries();
List<BibEntry> entriesToRemove = new ArrayList<>();
Set<BibEntry> handledEntries = new HashSet<>();
Copy link
Member

Choose a reason for hiding this comment

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

The way the looping is done now, it is guaranteed that you won't "handle" the same pair of entries twice, so the handledEntries set and the conditions are redundant.

@jabref-machine
Copy link
Collaborator

You ticked that you modified CHANGELOG.md, but no new entry was found there.

If you made changes that are visible to the user, please add a brief description along with the issue number to the CHANGELOG.md file. If you did not, please replace the cross ([x]) by a slash ([/]) to indicate that no CHANGELOG.md entry is necessary. More details can be found in our Developer Documentation about the changelog.

@InAnYan InAnYan added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Nov 6, 2025
@InAnYan
Copy link
Member Author

InAnYan commented Nov 6, 2025

  1. There is a changelog entry
  2. I ran "reformat code" and "organize imports" on touched Java files, but nothing new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants