Add File -> Merge action for library comparison#15427
Add File -> Merge action for library comparison#15427prasanthcp wants to merge 9 commits intoJabRef:mainfrom
Conversation
|
Hey @prasanthcp! 👋 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. |
Review Summary by QodoAdd File → Merge action for library comparison
WalkthroughsDescription• Add File → Merge action for library comparison • Allow users to merge external BibTeX files with current library • Display differences in External Changes Resolver dialog • Handle empty change lists gracefully in resolver Diagramflowchart LR
User["User opens File menu"]
Merge["Selects Merge option"]
Dialog["File dialog opens"]
Select["Selects BibTeX file"]
Scan["Scans for changes"]
Resolver["External Changes Resolver dialog"]
Accept["User accepts/denies changes"]
Apply["Changes applied to library"]
User --> Merge
Merge --> Dialog
Dialog --> Select
Select --> Scan
Scan --> Resolver
Resolver --> Accept
Accept --> Apply
File Changes1. jabgui/src/main/java/org/jabref/gui/actions/StandardActions.java
|
Code Review by Qodo
1.
|
jabgui/src/main/java/org/jabref/gui/collab/MergeLibraryAction.java
Outdated
Show resolved
Hide resolved
jabgui/src/main/java/org/jabref/gui/collab/MergeLibraryAction.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
|
/assign-me |
This is a Pull Request. |
Yes i want to work on this |
|
You have to assign yourself to an issue, not to a Pull Request. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Using the recommended method name “getDatabaseChanges” instead of “scanForChanges”
This comment has been minimized.
This comment has been minimized.
Refactored method name has been updated
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hi Team, Please let me know if anything more has to be done to resolve this issue. |
✅ All tests passed ✅🏷️ Commit: 75ee850 Learn more about TestLens at testlens.app. |
Related issues and pull requests
Closes #15401
PR Description
This adds a new Merge action under File, so users can compare the currently open library with a selected Bib file. It reviews changes in the existing external changes dialog. With this it is easier to review and apply differences from other bib files without leaving JabRef application.
Steps to test
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)Test Executed: ./gradlew :jabgui:test --tests org.jabref.gui.collab.ExternalChangesResolverViewModelTest
Output: BUILD SUCCESSFUL in 2m 13s ; 31 actionable tasks: 15 executed, 16 up-to-date
Documentation PR - JabRef/user-documentation#620