Repository navigation
Fix group color updates not notifying descendants - #17797
Siedlerchr merged 10 commits into
Conversation
|
Hey @gourprince222! 👋 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 QodoNotify group ancestors when a group's color changes
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Entries keep their old group colors
|
|
Hi, @gourprince222, I think the PR description could be shorter and closer to the Jabref's The additional sections ( Also, Keeping it simple and focused would make the PR easier for maintainers to review |
|
Noted your point and made some changes in PR description. Please review and provide feedback. |
|
@gourprince222 https://github.com/JabRef/jabref/blob/main/.github/PULL_REQUEST_TEMPLATE.md Use this template or we can't review it |
|
changes are done. Now you can proceed for the review. |
|
@gourprince222 |
|
Could you please proceed with the review of my PR at your convenience? I would appreciate your feedback. Thank you! |
faneeshh
left a comment
There was a problem hiding this comment.
Add a changelog entry as well
| List<BibEntry> entriesInDatabase) { | ||
| AbstractGroup oldGroup = getGroup(); | ||
| groupProperty.set(newGroup); | ||
| notifyAboutDescendantChange(this); |
There was a problem hiding this comment.
Move this notification to just before return changes
There was a problem hiding this comment.
Requested changes have been done.
| AtomicInteger descendantChanges = new AtomicInteger(); | ||
| root.subscribeToDescendantChanged(_ -> descendantChanges.incrementAndGet()); | ||
|
|
||
| child.setGroup( |
There was a problem hiding this comment.
I'm unsure about this test
There was a problem hiding this comment.
Use the 1-arg child.setGroup(newGroup)
There was a problem hiding this comment.
Requested changes have been done.
|
Hi @faneeshh , I've implemented all the requested changes. Could you please proceed with reviewing the PR? |
|
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. |
* main: (58 commits) Keep organization authors containing "and" intact in RIS export. (JabRef#17876) Fix author and editor name export in MODS format (JabRef#17936) Fix LaTeX conversion in exported PDF metadata (JabRef#17810) Fix preferences menu text (JabRef#17966) Skip forced full-text index merges on shutdown (JabRef#17961) Fix wrong bibo namespace in RDF export (JabRef#17842) New Crowdin updates (JabRef#17956) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.4 (JabRef#17955) Let Renovate update JavaFX in the jabsrv launcher (JabRef#17954) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.3 (JabRef#17953) Import the RIS serial number of books and chapters as ISBN (JabRef#17891) Share nested LaTeX conversion with Writer (JabRef#17921) Render BST preview italics and bold as text, not math letters (JabRef#17902) Chore(deps): Bump com.konghq:unirest-java-bom from 4.11.11 to 4.12.0 in /versions (JabRef#17951) Inject NativeDesktop into its callers and remove the deprecated static helpers (JabRef#17947) New Crowdin updates (JabRef#17945) Chore(deps): Bump org.graalvm.sdk:nativeimage from 25.5.5.0.3 to 25.6.5.1 in /versions (JabRef#17944) Chore(deps): Bump com.googlecode.plist:dd-plist from 1.30 to 1.31 in /versions (JabRef#17943) Chore(deps): Bump JetBrains/junie-github-action from 1.10.1 to 1.10.2 (JabRef#17942) Chore(deps): Bump softprops/action-gh-release from 3.0.3 to 3.0.4 (JabRef#17941) ...
Group color performanceCompared base commit
The fixed regex group edits reached table layout within 5 ms at the 95th percentile. The explicit-group run spent about 282 ms scanning and rewriting assignments. The full-table reread was a separate stress test. Ordinary repainting leaves offscreen bindings to recompute when read. Each edit emitted one group-update event with the fix. The benchmark covers the model edit, metadata writeback, and table layout. It excludes the dialog, group sidebar rebuild, and screen rendering. The targeted group-node, metadata, and group editor test suites passed (83 tests). Follow-up after skipping unchanged assignmentsCommit
The color bar still repainted and each edit emitted one group-update event. The new regression test verifies that changing color and icon leaves entry fields untouched and never accesses the entries list. All 84 targeted tests and requirements tracing passed. Keyword-separator migrationCommit Migration still emits a group-update event for each affected group. We’re deferring batching because changing the library’s keyword separator is an infrequent operation, and the extra work grows with the number of affected groups and cached chats. The chat data-loss issue is fixed. Batching can be revisited if users report noticeable stalls during migration. |
|
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin port-17797-to-black-forest
git worktree add --checkout .worktree/port-17797-to-black-forest port-17797-to-black-forest
cd .worktree/port-17797-to-black-forest
git reset --hard HEAD^
git cherry-pick -x 12ba8f54c09dfca3d22c15ecfe064e3621ef86bd |
…x/ris-spec-followup * upstream/fix/ris-spec-followup: Refresh Citations tab when entry DOI changes (#17717) Ask before converting libraries written by older JabRef versions (#16941) Chore(deps): Bump gradle-wrapper from 9.9.2 to 9.9.3 (#17985) Fix group color updates not notifying descendants (#17797) Keep JavaFX and OpenFastTrace versions aligned in Dependabot (#17993) Chore(deps): Bump ruby/setup-ruby from 1.344.0 to 1.345.0 (#17984) Chore(deps): Bump zauguin/install-texlive from 4.5.0 to 4.5.1 (#17983) Chore(deps): Bump com.autonomousapps:dependency-analysis-gradle-plugin from 3.20.4 to 3.21.0 in /build-logic (#17986) Chore(deps): Bump com.autonomousapps:dependency-analysis-gradle-plugin from 3.20.4 to 3.21.0 (#17979) Chore(deps): Bump anthropics/claude-code-action from 1.0.289 to 1.0.290 (#17981)
Summary
This PR fixes the issue where changing a group's color does not update the visual marking of all affected entries. Descendant-change notifications are triggered when a group is updated, allowing the parent tree and related bindings to refresh. A regression test verifies that updating a child group notifies the root.
Analogies
Like honey, the notification flows smoothly through the group hierarchy; like chocolate, the fix brings consistency; and like the moon, it helps illuminate the affected entries.
jabref-contrib-policy:4.2
Steps to test
Related issues and pull requests
Closes #7325
AI usage
ChatGPT (model GPT-6) was used for debugging assistance, implementation guidance, regression-test suggestions, and PR description drafting. The contributor reviewed, understood, and takes ownership of the submitted code.
AIL: To be determined by the contributor based on the AI Influence Level framework.
Checklist
CHANGELOG.mddescribing the change from the user's point of view (if the change is visible to the user).