-
Notifications
You must be signed in to change notification settings - Fork 82
Fix issue 1858 #1904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix issue 1858 #1904
Conversation
- Added <property name="WRITE_XML_DECLARATION" scope="axis2" value="true"/> to Synapse configuration to include XML declaration in outgoing messages. - Updated Step 1.4 of Grafana-based observability documentation to reflect this change. - This ensures compatibility with systems requiring XML declaration in payloads.
WalkthroughAdds documentation for common mediator attributes (specifically the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes These are documentation-only changes with straightforward content additions. No functional code or logic modifications present. Poem
Pre-merge checks and finishing touches❌ Failed checks (2 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
|
Added common mediator attributes documentation as discussed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
en/docs/reference/mediators/common-mediator-attributes.md (1)
1-40: Clean up excessive whitespace and HTML entities in code blocks.The documentation content effectively addresses the PR objective. However, there are formatting issues:
Excessive blank lines (lines 2-4, 6-8, 10-12, 14-16, 25-26, 28-30): Multiple consecutive blank lines create unnecessary clutter and can result in inconsistent rendering. Reduce to single blank lines for section separation.
HTML entity in XML code (line 35): The
entity should be replaced with regular spaces/tabs for proper XML formatting. Code blocks should contain literal XML syntax, not HTML entities.-\# Common Mediator Attributes - - - -Some attributes are common to all mediators in WSO2 Integrator: MI. These attributes are used to improve the readability and maintainability of mediation logic and do not change the functional behavior of the mediator. - - - -\## description - - - -The `description` attribute can be used with any mediator to provide a human-readable explanation of what the mediator does. - - - -\### Purpose +# Common Mediator Attributes + +Some attributes are common to all mediators in WSO2 Integrator: MI. These attributes are used to improve the readability and maintainability of mediation logic and do not change the functional behavior of the mediator. + +## description + +The `description` attribute can be used with any mediator to provide a human-readable explanation of what the mediator does. + +### Purpose```xml <log description="Logs the incoming request payload"> - <property name="message" value="Request received"/> + <property name="message" value="Request received"/> </log></blockquote></details> </blockquote></details> <details> <summary>📜 Review details</summary> **Configuration used**: CodeRabbit UI **Review profile**: CHILL **Plan**: Pro <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 7a831c202e87888d1c4ea27f83389abf19fd3301 and d11ca9463eb79b3d99fe876e55f8672d0004e636. </details> <details> <summary>📒 Files selected for processing (3)</summary> * `en/docs/observe-and-manage/setting-up-cloud-native-observability-on-a-vm.md` (1 hunks) * `en/docs/reference/mediators/common-mediator-attributes.md` (1 hunks) * `en/docs/reference/mediators/index.md` (1 hunks) </details> <details> <summary>🔇 Additional comments (4)</summary><blockquote> <details> <summary>en/docs/reference/mediators/common-mediator-attributes.md (1)</summary><blockquote> `9-23`: **Clear documentation of the common `description` attribute.** The content effectively explains the `description` attribute's purpose and correctly notes that it affects readability only, not runtime behavior. The documentation aligns well with the PR objective to address issue #1858. </blockquote></details> <details> <summary>en/docs/observe-and-manage/setting-up-cloud-native-observability-on-a-vm.md (2)</summary><blockquote> `111-123`: **Verify markdown code fence closure and section organization.** There appears to be a structural issue with the code blocks in this section: 1. **Potential unclosed XML code fence**: Line 115 opens a code block with ` ```xml ` and contains the property configuration, but there's no visible closing fence (` ``` `) before line 119 where a TOML code block begins. 2. **Section organization**: Confirm whether Step 1.5 (XML declaration) should be positioned before or after the synapse handler configuration shown on lines 119-123, as these are related but distinct configuration steps. Please verify that: - The XML code block on lines 115-118 is properly closed with a fence - The section ordering and logical flow are correct for users following the setup guide --- `111-118`: **Clarify the relevance of XML declaration configuration in observability setup guide.** Step 1.5 about enabling XML declaration appears to be a general Axis2 configuration rather than specific to Grafana-based observability setup (metrics, logging, or tracing). Please clarify: - How does XML declaration in outgoing payloads relate to the Grafana observability setup process? - Should this be included in this guide, or would it be better suited in a general Axis2 configuration or payload transformation guide? - Is there a specific observability use case that requires XML declaration to be set at this step? This context will help assess whether the section placement and framing are appropriate. </blockquote></details> <details> <summary>en/docs/reference/mediators/index.md (1)</summary><blockquote> `1-22`: **Verify link path and assess index page scope.** The new mediators index page establishes a clear entry point to the mediators documentation. However: 1. **Link verification**: Line 19 references `common-mediator-attributes.md` as a relative link. Confirm this path is correct for files located in `en/docs/reference/mediators/`. 2. **Scope completeness**: The index currently only includes the Common Attributes section. Will this page eventually contain: - Links to individual mediator documentation? - Categories of mediators (routing, transformation, etc.)? - Other reference information? If this is the initial version and more content will be added later, that's fine. If this is the complete scope, it may be redundant with the Common Attributes page. Please clarify the intended role of this index page. </blockquote></details> </blockquote></details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
Fixes #1858: Document common mediator attributes for all mediators.
Purpose
Provide documentation for the common
descriptionattribute in mediators, which exists for readability but was previously undocumented.Goals
Approach
common-mediator-attributes.mdto document all common attributes includingdescription.index.mdin the mediators reference folder to link to the new common attributes page.User Stories
End-users can now reference common mediator attributes clearly, improving the readability and usability of mediator documentation.
Release Notes
Documentation Changes
en/docs/reference/mediators/common-mediator-attributes.mden/docs/reference/mediators/index.mden/docs/observe-and-manage/setting-up-cloud-native-observability-on-a-vm.mdTesting
Please review and provide feedback if any updates are needed.