Skip to content

fix: decode node IDs as string in ClientCallable methods - #103

Merged
paodb merged 1 commit into
masterfrom
fix-102
Aug 14, 2026
Merged

fix: decode node IDs as string in ClientCallable methods#103
paodb merged 1 commit into
masterfrom
fix-102

Conversation

@javier-godoy

@javier-godoy javier-godoy commented Aug 14, 2026

Copy link
Copy Markdown
Member

Close #102

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of newly added sibling and child notifications.
    • Ensured comma-separated client IDs are correctly converted and processed, including empty or missing values.

@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d68996fa-7eac-4fed-a9d3-2d3edcd00040

📥 Commits

Reviewing files that changed from the base of the PR and between 4ee2442 and 7eedcb8.

📒 Files selected for processing (2)
  • src/main/java/com/flowingcode/vaadin/addons/orgchart/OrgChart.java
  • src/main/resources/META-INF/frontend/fc-orgchart.js

Walkthrough

The frontend now sends sibling and child IDs as comma-separated strings. OrgChart converts these strings to JsonArray values before invoking the existing event-processing logic.

Changes

Mutation callback compatibility

Layer / File(s) Summary
Client ID transport
src/main/resources/META-INF/frontend/fc-orgchart.js
Sibling and child callbacks now send comma-separated ID strings.
Server callback conversion
src/main/java/com/flowingcode/vaadin/addons/orgchart/OrgChart.java
OrgChart handles string callback parameters, converts IDs to JsonArray values, and delegates to the existing handlers.

Estimated code review effort: 2 (Simple) | ~15 minutes

Mergeability Score: ⚪ Minimal · up to 7eedc

The change is limited to decoding node IDs as strings in callable methods, and no actionable merge-blocking risk remains in the supplied evidence.

Possibly related PRs

Suggested reviewers: paodb

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The changes replace JsonArray RPC parameters with string callbacks and preserve server processing, addressing issue #102 requirements.
Out of Scope Changes check ✅ Passed All changes relate directly to changing node ID callback decoding for the affected child and sibling operations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: decoding node IDs as strings in @ClientCallable methods.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-102

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@javier-godoy
javier-godoy requested a review from paodb August 14, 2026 15:58
@javier-godoy
javier-godoy marked this pull request as ready for review August 14, 2026 15:58
@paodb
paodb merged commit a3f1801 into master Aug 14, 2026
7 checks passed
@paodb
paodb deleted the fix-102 branch August 14, 2026 19:01
@github-project-automation github-project-automation Bot moved this from To Do to Pending release in Flowing Code Addons Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Pending release

Development

Successfully merging this pull request may close these issues.

Vaadin 25: JsonArray parameters in @ClientCallable methods fail to deserialize

2 participants