-
-
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
Fix import entry by id does not generate citation key #8361
Conversation
Would also fix #8354 |
Can we reuse the import handler here so that other features (like automatically generating timestamps etc) are also working as expected? |
Good idea, but the import handler does not check for duplicates. That only happens in the New Entry dialog |
I guess it make sense to extract the duplication check also to the import handler. Then one would get also a duplication warning if one say uses copy&paste of an id to create an entry. That's a nice enhancement in my opinion. (The only situation where you don't need this check is after the import dialog, which already handles this.) |
Related: #8406 |
* upstream/main: (50 commits) New Crowdin updates (#8451) Fix library tab exception when saving prefs (#8450) Rename Groups interface into Groups (#8449) New Crowdin updates (#8445) update snap url Update bug_report.yml for 5.5 Show development information\n\n+semver: minor Release v5.5 Update journal abbrev list New Crowdin updates (#8439) Refresh example styles Squashed 'buildres/csl/csl-styles/' changes from 5563ccc..0237ae7 Fixed add group button changing color after adding 10 groups (#8392) Bump slf4j-api from 2.0.0-alpha5 to 2.0.0-alpha6 in /buildSrc (#8438) Bump libreoffice from 7.2.3 to 7.2.5 (#8436) Bump org.openjfx.javafxplugin from 0.0.10 to 0.0.11 (#8437) Fix file directory preferences not respected (#8429) Refresh example styles Squashed 'buildres/csl/csl-locales/' changes from c38205618f..4a551a87c3 Refresh example styles ...
* upstream/main: (104 commits) update test getPart (#8610) Add ControlHelper truncateString tests comments (#8612) Allow using custom SSL certificates (#8583) Fix protectedTerms not stored due to weaklistener (#8609) Fix changelog and version parsing (#8578) Creating more unit tests for NumericFieldComparatorTest (#8604) Fix merge entries dialog exceeding screen size (#8599) StringUtilTest new test for method GetPart (#8594) Use unkown entry type Add semantic scholar (#8575) Add research gate (#8580) fix import of unlinked files (#8444) (#8582) Missed l10n for fetcher fix (#8597) Fix some fetcher test (#8595) Bump slf4j-api from 2.0.0-alpha6 to 2.0.0-alpha7 in /buildSrc (#8589) Bump ikonli-materialdesign2-pack from 12.3.0 to 12.3.1 (#8591) Bump gittools/actions from 0.9.11 to 0.9.13 (#8587) Bump mockito-core from 4.3.1 to 4.4.0 (#8588) Bump flowless from 0.6.8 to 0.6.9 (#8590) Bump ikonli-javafx from 12.3.0 to 12.3.1 (#8592) ... # Conflicts: # src/main/java/org/jabref/gui/EntryTypeViewModel.java
Also add to group
* upstream/main: fix unit test Add check for developer's documentation Merge GitBook view Fix zbMath fetcher (#8623) GitBook: [#56] No subject Add an extra dialog to ask the user whether they want to open the saved file folder when the export the entries (#8567) Bump checkstyle from 10.0 to 10.1 (#8620) Bump peter-evans/create-pull-request from 3 to 4 (#8619) Bump pascalgn/automerge-action from 0.14.3 to 0.15.2 (#8618) Bump flexmark from 0.62.2 to 0.64.0 (#8621) Bump classgraph from 4.8.141 to 4.8.143 (#8622)
When an entry is pasted or imported by id and already exists, the duplicate resolver dialogs opens. And also the keys are generated |
Found a bug:
Expected outcome: This entry2 SHOULD NOT get imported. Expected outcome: The entry should NOT get imported. |
Sorry. 😅 |
Solving the first bug might also solve #5858? Just maybe? |
Thanks for testing, will check this again wth the right/left thing |
@ThiloteE I fixed the cancellation and the order in the dialog. Can you please test again? |
1a54d5b
to
71d6c7c
Compare
I reverted the changes to the citation key method as this would break more tests and is an unusual edge case. |
I can confirm it fixes koppor#553. It does NOT fix #8406. See https://www.loom.com/share/0c29cb50e91c431488a54c3c5266379d, in case of huge diffs @Article{Kopp2015,
author = {Kopp, Oliver and Martin, Daniel and Wutke, Daniel and Leyman, Frank},
journal = {Enterprise Modelling and Information Systems Architectures},
title = {The Difference Between Graph-Based and Block-Structured Business Process Modelling Languages},
year = {2015},
pages = {No 1 (2009)},
volume = {Vol 4},
doi = {10.18417/EMISA.4.1.1},
language = {en},
publisher = {Gesellschaft für Informatik e.V. (The German Informatics Society)},
} @Article{Kopp2015,
author = {Kopp},
year = {2015},
} --> Future work |
* upstream/main: Remove obsolete comments Improve key generation (#8641) Refine search code (#8636) Fix import entry by id does not generate citation key (#8361) Update Gradle Wrapper from 7.4.1 to 7.4.2. (#8637) Bump hmarr/auto-approve-action from 2.1.0 to 2.2.0 (#8638) GitBook: [#57] test Citation keygen: Return vonPart if lastName is empty (#8634) Ensure SSL truststore is present at startup (#8631) Squashed 'buildres/csl/csl-styles/' changes from 6a7b708..21e2177 (#8632) Add more tests for FieldChange Class (#8614)
…om.github.tomtung-latex2unicode_2.12-0.3.0 * upstream/main: Remove obsolete comments Improve key generation (#8641) Refine search code (#8636) Fix import entry by id does not generate citation key (#8361) Update Gradle Wrapper from 7.4.1 to 7.4.2. (#8637) Bump hmarr/auto-approve-action from 2.1.0 to 2.2.0 (#8638)
Fixes koppor#553
Fixes #8406
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)