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-godoyjavier-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

coderabbitaiBot 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 nameStatusExplanation
Linked Issues check✅ PassedThe changes replace JsonArray RPC parameters with string callbacks and preserve server processing, addressing issue #102 requirements.
Out of Scope Changes check✅ PassedAll changes relate directly to changing node ID callback decoding for the affected child and sibling operations.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
Title check✅ PassedThe 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

@paodb
paodb merged commit a3f1801 into masterAug 14, 2026
7 checks passed
@paodb
paodb deleted the fix-102 branch August 14, 2026 19:01
@github-project-automationgithub-project-automationBot moved this from To Do to Pending release in Flowing Code AddonsAug 14, 2026
Sign up for freeto 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

@javier-godoy@paodb