Repository navigation
Fix subgroups disappearing when added from the All entries context menu - #17803
Conversation
PR Summary by QodoPreserve subgroups added from the All entries context menu
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. Subgroups added under a stale parent vanish from the tree
|
|
Have you found a way how to reproduce the original issue? All the steps explained in #17803 (comment) and in #17764 (comment) work for me on main, but I know that the bug is real. Siedlerchr showed it to me in a videoconference real quick. Sometimes it was working, sometimes not and he failed to identify the exact steps. |
|
I did make it disappear... On main JabRef said it had added Probe but the sidebar only showed Imported. The import had rebuilt the group tree and the dialog added Probe to the old tree. With this PR both groups appeared @ThiloteE but I also found a separate case that still happens with this PR. When I opened two empty libraries and added a subgroup in the second, JabRef put it in the first. I only noticed after switching tabs. @Siedlerchr, do you remember if another empty library was open during the screen share? In my test the subgroup appeared when I clicked OK but after switching tabs I found it in the other library |
|
What is a "direct import"? For me, opening the "add group" window locks the rest of the UI. |
|
Hm, I don't know how or why it was that weird. It seems to no longer occur. but I now can reproduce the issue that he group is landing in the wrong library as you wrote |
|
@Siedlerchr yuss , the second case can happen through ordinary JabRef GUI use....
|
|
@ThiloteE te as above I type Probe in Add subgroup, left the dialog open and used Postman to import an entry into the same library. That created its first group... Imported. At that point we expect to see only Imported, since I hadnt clicked OK yet. The issue shows up when I clicked OK. JabRef said it added Probe but the sidebar still showed only Imported. With this PR both groups appears , can review from your end , thanks |
|
The requested changes were not addressed for 3 days. Please follow-up in the next 7 days or your PR will be automatically closed. You can check the contributing guidelines for hints on the pull request process. |
Siedlerchr
left a comment
There was a problem hiding this comment.
I think this is better than nothing so good to go
|
Successfully created backport PR for |
* main: Re-architect OpenOffice backend (#17673) Fix subgroups disappearing when added from the All entries context menu (#17803) Fix page ranges in HTML table journal and proceedings cells (#17893) Update dependency org.postgresql:postgresql to v42.7.15 (#17915) Update dependency org.hibernate.validator:hibernate-validator to v9.2.0.Final (#17914) Chore(deps): Bump com.dlsc.gemsfx:gemsfx from 4.16.0 to 4.17.0 in /versions (#17913) Chore(deps): Bump io.zonky.test.postgres:embedded-postgres-binaries-bom from 18.7.0 to 19.0.0 in /versions (#17910) Chore(deps): Bump io.zonky.test:embedded-postgres from 2.2.2 to 2.2.3 in /versions (#17909) Chore(deps): Bump org.hibernate.validator:hibernate-validator from 9.1.6.Final to 9.2.0.Final in /versions (#17912) Chore(deps): Bump com.konghq:unirest-java-bom from 4.11.10 to 4.11.11 in /versions (#17911) Chore(deps): Bump io.github.kusoroadeolu:veneer from 1.3.2 to 1.3.3 in /versions (#17908) Chore(deps): Bump gradle-wrapper from 9.9.1 to 9.9.2 (#17907) Update dependency textlint to v16.1.3 (#17905) Fix rule-based citation parser for Springer-style author-year references (#17901) New Crowdin updates (#17904) Fix RIS import overwriting journal issue number with accession number (#17838) Add 'Get more Jstyles' hyperlink to StyleSelectDialog (#17886)






Summary
In a new library, right-clicking All entries and choosing Add subgroup could show a success message even though the subgroup was missing from the tree and the saved library. The action now adds the subgroup to the current All entries node after the dialog closes.
Steps to test
Create a new library, add the example entry, and select it.
Right-click All entries and choose Add subgroup. Enter
aand leave Include selected entries in created group checked.Click OK. The subgroup should appear under All entries with one entry.
Save the library, close the tab, and reopen the file. The subgroup should still contain one entry.
Verified on macOS. The group tree regression test and GUI Checkstyle checks passed. The test passes the old root to the action after rebuilding the tree and checks the children of the current root.
Related issues and pull requests
Closes #17764.
AI usage
OpenAI GPT-6 assisted with the implementation, regression test under my direction. I ran local verification. I manually reviewed and verified the code
Checklist
CHANGELOG.mddescribing the change from the user's point of view (if the change is visible to the user)