Cancel in duplicate resolver incorrectly keeps the left entry - #16234
Conversation
|
Hey @geritwagner! 👋 Thank you for contributing to JabRef! We have automated checks in place, based on which you will soon get feedback if any of them are failing. We also use Qodo for review assistance. It will update your pull request description with a review help and offer suggestions to improve the pull request. After all automated checks pass, a maintainer will also review your contribution. Once that happens, you can go through their comments in the "Files changed" tab and act on them, or reply to the conversation if you have further inputs. You can read about the whole pull request process in our contribution guide. Please ensure that your pull request is in line with our AI Usage Policy and make necessary disclosures. |
PR Summary by QodoFix Cancel action in duplicate resolver to stop resolution (BREAK)
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1.
|
|
@geritwagner Looks good to me overall, can you comment on the qodo comment? Is that a valid concern? |
* upstream/main: (29 commits) fix cooldown zero not supported Fix PDF title extraction misreading kerns as word boundaries (#16246) Set cooldown days to 1 (#16257) Chore(deps): Bump com.dlsc.gemsfx:gemsfx in /versions (#16263) Chore(deps): Bump org.cyclonedx.bom from 3.2.4 to 3.3.0 (#16262) Chore(deps): Bump jablib/src/main/resources/csl-styles (#16261) fix: NPE in zbMATH fetcher and mock network requests (#16106) Chore(deps): Bump org.jabref:latex-conv from 0.1.0-SNAPSHOT to 0.1.0 in /versions (#16254) Move linked-files editor buttons into trailing row (#16243) Chore(deps): Bump org.jetbrains.kotlin:kotlin-stdlib-jdk8 in /versions (#16253) Chore(deps): Bump org.openrewrite.rewrite from 7.36.0 to 7.37.0 (#16252) Chore(deps): Bump org.openrewrite.recipe:rewrite-recipe-bom (#16251) Prevent stale search results from outdated queries (#16212) Fix DateFormatter to use explicit Locale.US instead of system default (#16225) New translations jabref_en.properties (Italian) (#16244) Replace latex2unicode with the latex-conv library (#16242) Fix Postgres binary packaging (#16156) Fix IllegalArgumentException when relativizing paths with different roots (#16200) fixes the SpringerNatureWebFetcherTest (#16216) New Crowdin updates (#16214) ...
* upstream/main: Fix verbatim BibTeX import from PDFs when text precedes the entry (#16245)
I believe runtime is a valid concern in the deduplication procedure. In my view, fully separating duplicate search from duplicate resolution should be preferred (see #15190). Once this is implemented, the cancel option in duplicate resolution should no longer affect the runtime of duplicate search. More broadly, a practical solution to the O(n²) runtime issue would be to introduce a blocking stage (see 1). |
|
@geritwagner That is indeed a point I have thought about as well in trying to optimize the runtime of the duplicate search. I now implemented at least the task cancelling here a well. I created an internal issue for tackling the runtime problem |
…-textflow * upstream/main: Fix exit of LspClientHandler (#16268) Cancel in duplicate resolver incorrectly keeps the left entry (#16234) fix: jabkit pdf update not writing XMP metadata to existing PDFs (#16117) Fix inspire texkey arxiv import (#16235) Fix verbatim BibTeX import from PDFs when text precedes the entry (#16245) fix cooldown zero not supported Fix PDF title extraction misreading kerns as word boundaries (#16246) Set cooldown days to 1 (#16257) Chore(deps): Bump com.dlsc.gemsfx:gemsfx in /versions (#16263) Chore(deps): Bump org.cyclonedx.bom from 3.2.4 to 3.3.0 (#16262) Chore(deps): Bump jablib/src/main/resources/csl-styles (#16261)
PR Description
Fixes the duplicate resolver so that clicking Cancel returns
BREAKinstead ofKEEP_LEFT. This stops duplicate resolution without removing either entry from the current pair.Steps to test
AI usage
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)