Invalidate groups binding after import#14944
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
koppor
left a comment
There was a problem hiding this comment.
CHANGELOG.md entry - see content of CHANGELOG.md how to add
| - We fixed an issue where JaRef would not correctly remember the opened side panels in the preferences [#14818](https://github.com/JabRef/jabref/issues/14818) | ||
| - Updates of the pre-selected fetchers are now followed at the Web fetchers. [#14768](https://github.com/JabRef/jabref/pull/14768) | ||
| - Restart search button in citation-relation panel now refreshes using external services. [#14757](https://github.com/JabRef/jabref/issues/14757) | ||
| - Fixed groups sidebar not refreshing after importing a library. [#13684] |
There was a problem hiding this comment.
I've updated the CHANGELOG entry and added the proper link to the issue #13684
User description
Closes #13684
When importing a
.bibfile into an existing library, group metadata was mergedcorrectly but the Groups sidebar was not updated.
This fix explicitly invalidates the groups binding after merging groups,
ensuring the Groups sidebar refreshes immediately after import.
Steps to test
A.bibwith one entry belonging to groupAB.bibwith one entry belonging to groupBB.bibin JabRef → verify GroupBis visibleA.bibAappears alongside GroupBMandatory checks
PR Type
Bug fix
Description
Invalidate groups binding after merging groups during import
Ensures Groups sidebar refreshes immediately after importing entries
Fixes issue where group metadata was merged but UI not updated
Diagram Walkthrough
File Walkthrough
DatabaseMerger.java
Add groups binding invalidation after mergejablib/src/main/java/org/jabref/logic/database/DatabaseMerger.java
target.groupsBinding().invalidate()aftermerging groups