Skip to content

IDEMPIERE-7045 Implement OSGi component support for WEditor.DynamicDi…#28

Merged
d-ruiz merged 2 commits into
idempiere:mainfrom
hengsin:IDEMPIERE-7045
Jul 3, 2026
Merged

IDEMPIERE-7045 Implement OSGi component support for WEditor.DynamicDi…#28
d-ruiz merged 2 commits into
idempiere:mainfrom
hengsin:IDEMPIERE-7045

Conversation

@hengsin

@hengsin hengsin commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

…splayListener

Summary by CodeRabbit

  • Documentation
    • Added a new page covering WEditor Dynamic Display OSGi service usage.
    • Included guidance for participating in the dynamic display cycle, required field identification, and thread-safety considerations.
    • Added a Java example to illustrate how to implement the listener in an OSGi component.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@hengsin, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 2 minutes and 56 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: eca8d8a9-4974-436a-8df3-92a908c3cbff

📥 Commits

Reviewing files that changed from the base of the PR and between d69f366 and f641071.

📒 Files selected for processing (1)
  • docs/new-features/v13/weditor-dynamic-display-service.md
📝 Walkthrough

Walkthrough

Adds a new documentation page describing the WEditor Dynamic Display OSGI service, its usage requirements, and a Java @Component example.

Changes

WEditor Dynamic Display Documentation

Layer / File(s) Summary
New service page
docs/new-features/v13/weditor-dynamic-display-service.md
Adds front matter and content covering the service overview, AD_Field_UU requirement, thread-safety note, and an implementation example.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A bunny hops through docs so bright,
🐇 new service notes now feel just right.
I twitch my nose and read with glee,
for dynamic displays in OSGI!
Soft carrots, text, and code abide,
while tidy pages bounce with pride.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the change: it references WEditor.DynamicDisplayListener and OSGi component support, which the PR documents.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/new-features/v13/weditor-dynamic-display-service.md`:
- Around line 2-5: The page metadata and overview text contain awkward grammar
and repetition, so rewrite the frontmatter and introductory wording in
weditor-dynamic-display-service.md to read naturally and consistently. Update
the title/description/overview around the WEditorDynamicDisplayListener service
so phrases like “expose” and “implement … that implement” are corrected, and
keep the language polished in the opening section and related summary text.
- Around line 31-34: The example in the component annotation uses a hard-coded
AD_Field_UU, which makes the documentation specific to one field and easy to
copy incorrectly. Update the annotation in WEditor.DynamicDisplayListener
example to use a placeholder or clearly mark the UUID as something the reader
must replace, so the snippet stays generic and safer to reuse.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 06c40cb7-e1d9-4dbf-97de-3dd41790c9fa

📥 Commits

Reviewing files that changed from the base of the PR and between bbeb31e and d69f366.

📒 Files selected for processing (1)
  • docs/new-features/v13/weditor-dynamic-display-service.md

Comment thread docs/new-features/v13/weditor-dynamic-display-service.md Outdated
Comment on lines +31 to +34
@Component(
property = {"AD_Field_UU=374eb2f5-41b6-45e4-8032-877d6f401c93"},
service = WEditor.DynamicDisplayListener.class,
immediate = true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Replace the hard-coded UUID with a placeholder.

Copying this example as-is will only work for one specific field UUID. Using a placeholder (or explicitly saying it must be replaced) makes the example safer and clearer.

♻️ Suggested example tweak
 `@Component`(
-	property = {"AD_Field_UU=374eb2f5-41b6-45e4-8032-877d6f401c93"},
+	property = {"AD_Field_UU=<target-field-uuid>"},
 	service = WEditor.DynamicDisplayListener.class,
     immediate = true
 )
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
@Component(
property = {"AD_Field_UU=374eb2f5-41b6-45e4-8032-877d6f401c93"},
service = WEditor.DynamicDisplayListener.class,
immediate = true
`@Component`(
property = {"AD_Field_UU=<target-field-uuid>"},
service = WEditor.DynamicDisplayListener.class,
immediate = true
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/new-features/v13/weditor-dynamic-display-service.md` around lines 31 -
34, The example in the component annotation uses a hard-coded AD_Field_UU, which
makes the documentation specific to one field and easy to copy incorrectly.
Update the annotation in WEditor.DynamicDisplayListener example to use a
placeholder or clearly mark the UUID as something the reader must replace, so
the snippet stays generic and safer to reuse.

@d-ruiz d-ruiz merged commit fb34abc into idempiere:main Jul 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants