Skip to content

Conversation

@JakeSCahill
Copy link
Contributor

This pull request updates the logic for generating summaries and descriptions of components in the Redpanda documentation tooling. The main improvement is that, wherever a component has a summary field, it will now be preferred over the description field for display in summaries and changelogs. This ensures that more concise and relevant information is shown to users. Additionally, the documentation data is now reloaded after augmentation to ensure that the most up-to-date information is used in subsequent processing.

Component summary handling improvements:

  • Updated all relevant places in tools/redpanda-connect/pr-summary-formatter.js and tools/redpanda-connect/rpcn-connector-docs-handler.js to prefer the summary field over description when generating summaries for new, self-hosted, or deprecated components. This makes changelogs and documentation more concise and user-friendly. [1] [2] [3] [4] [5] [6]

Documentation data consistency:

  • After augmenting the documentation data file, the code now reloads the updated data to ensure that any further processing (such as diff generation) uses the latest information and avoid reporting on incorrect data.

Other changes:

  • Bumped the package version in package.json from 4.13.3 to 4.13.4.

@netlify
Copy link

netlify bot commented Jan 6, 2026

Deploy Preview for docs-extensions-and-macros ready!

Name Link
🔨 Latest commit ad39af2
🔍 Latest deploy log https://app.netlify.com/projects/docs-extensions-and-macros/deploys/695d4ac97c12680008752c8a
😎 Deploy Preview https://deploy-preview-164--docs-extensions-and-macros.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@JakeSCahill JakeSCahill requested a review from paulohtb6 January 6, 2026 17:47
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 6, 2026

📝 Walkthrough

Walkthrough

The PR bumps the package version to 4.13.4 and modifies description sourcing in two connector documentation tools. Both pr-summary-formatter.js and rpcn-connector-docs-handler.js are updated to prefer a summary field over description when available, falling back to description if needed. Additionally, rpcn-connector-docs-handler.js reloads the in-memory newIndex from the data file after augmenting data with cloud/cgo fields to ensure subsequent processing uses the augmented data.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • paulohtb6
  • micheleRP

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: fixing the Redpanda Connect cloud-only connector automation by improving summary/description handling.
Description check ✅ Passed The description clearly explains the purpose of the changes, detailing the component summary handling improvements and documentation data consistency updates made in the PR.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 014729d and ad39af2.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • package.json
  • tools/redpanda-connect/pr-summary-formatter.js
  • tools/redpanda-connect/rpcn-connector-docs-handler.js
🧰 Additional context used
🧬 Code graph analysis (1)
tools/redpanda-connect/pr-summary-formatter.js (1)
tools/redpanda-connect/rpcn-connector-docs-handler.js (6)
  • desc (192-192)
  • desc (205-205)
  • desc (230-230)
  • desc (273-273)
  • desc (389-389)
  • desc (437-437)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Redirect rules - docs-extensions-and-macros
  • GitHub Check: Header rules - docs-extensions-and-macros
  • GitHub Check: Pages changed - docs-extensions-and-macros
🔇 Additional comments (8)
package.json (1)

3-3: LGTM: Version bump follows semantic versioning.

The patch version increment from 4.13.3 to 4.13.4 is appropriate for this release.

tools/redpanda-connect/pr-summary-formatter.js (3)

400-404: LGTM: Consistent fallback and truncation logic.

The code correctly prefers summary over description and applies truncation consistently to the resolved value.


414-418: LGTM: Consistent with cloud-supported section.

The description handling for self-hosted connectors matches the pattern used for cloud-supported connectors.


426-430: LGTM: Consistent fallback across all code paths.

The description handling maintains consistency whether cloud binary analysis is available or not.

tools/redpanda-connect/rpcn-connector-docs-handler.js (4)

192-194: LGTM: Consistent description handling for Bloblang functions.

The code correctly prefers summary over description and applies capToTwoSentences to the resolved value, ensuring bounded text length in the changelog.


205-207: LGTM: Consistent with Bloblang functions handling.

The description logic for Bloblang methods matches the pattern used for Bloblang functions.


272-273: LGTM: Consistent truncation for deprecated components.

The description handling correctly applies capToTwoSentences to whichever value is present (summary or description), maintaining consistency with Bloblang components.


919-921: LGTM: Critical reload ensures subsequent processing uses augmented data.

Reloading newIndex after augmentation is essential to ensure that diff generation (lines 928-1057) and PR summary formatting operate on data that includes the newly added cloudSupported, requiresCgo, and cloudOnly fields. The comment clearly documents this intention.


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 and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tools/redpanda-connect/rpcn-connector-docs-handler.js (1)

230-230: Inconsistent truncation: summary bypasses capToTwoSentences.

At line 230, capToTwoSentences is applied only to comp.description, not to comp.summary. This differs from the pattern used elsewhere (lines 192-194, 205-207, 272-273) where the function is applied to the resolved value (either summary or description).

If a component has a lengthy summary, it will appear in the whats-new.adoc table without truncation, potentially breaking table formatting or creating inconsistent description lengths.

🔎 Proposed fix to ensure consistent truncation
-        let desc = comp.summary || (comp.description ? capToTwoSentences(comp.description) : '// TODO: Add description')
+        const descText = comp.summary || comp.description
+        let desc = descText ? capToTwoSentences(descText) : '// TODO: Add description'

This matches the pattern used for deprecated components (lines 272-273) and ensures both summary and description are truncated consistently.

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 014729d and ad39af2.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • package.json
  • tools/redpanda-connect/pr-summary-formatter.js
  • tools/redpanda-connect/rpcn-connector-docs-handler.js
🧰 Additional context used
🧬 Code graph analysis (1)
tools/redpanda-connect/pr-summary-formatter.js (1)
tools/redpanda-connect/rpcn-connector-docs-handler.js (6)
  • desc (192-192)
  • desc (205-205)
  • desc (230-230)
  • desc (273-273)
  • desc (389-389)
  • desc (437-437)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Redirect rules - docs-extensions-and-macros
  • GitHub Check: Header rules - docs-extensions-and-macros
  • GitHub Check: Pages changed - docs-extensions-and-macros
🔇 Additional comments (8)
package.json (1)

3-3: LGTM: Version bump follows semantic versioning.

The patch version increment from 4.13.3 to 4.13.4 is appropriate for this release.

tools/redpanda-connect/pr-summary-formatter.js (3)

400-404: LGTM: Consistent fallback and truncation logic.

The code correctly prefers summary over description and applies truncation consistently to the resolved value.


414-418: LGTM: Consistent with cloud-supported section.

The description handling for self-hosted connectors matches the pattern used for cloud-supported connectors.


426-430: LGTM: Consistent fallback across all code paths.

The description handling maintains consistency whether cloud binary analysis is available or not.

tools/redpanda-connect/rpcn-connector-docs-handler.js (4)

192-194: LGTM: Consistent description handling for Bloblang functions.

The code correctly prefers summary over description and applies capToTwoSentences to the resolved value, ensuring bounded text length in the changelog.


205-207: LGTM: Consistent with Bloblang functions handling.

The description logic for Bloblang methods matches the pattern used for Bloblang functions.


272-273: LGTM: Consistent truncation for deprecated components.

The description handling correctly applies capToTwoSentences to whichever value is present (summary or description), maintaining consistency with Bloblang components.


919-921: LGTM: Critical reload ensures subsequent processing uses augmented data.

Reloading newIndex after augmentation is essential to ensure that diff generation (lines 928-1057) and PR summary formatting operate on data that includes the newly added cloudSupported, requiresCgo, and cloudOnly fields. The comment clearly documents this intention.

@JakeSCahill JakeSCahill merged commit f1bfca7 into main Jan 7, 2026
20 checks passed
@JakeSCahill JakeSCahill deleted the update-index branch January 7, 2026 17:13
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.

3 participants