Skip to content

Improve descriptions for OpenAPI (backport)#29040

Merged
rockwotj merged 1 commit into
devfrom
kb/docs/proto/patch-descriptions
Dec 18, 2025
Merged

Improve descriptions for OpenAPI (backport)#29040
rockwotj merged 1 commit into
devfrom
kb/docs/proto/patch-descriptions

Conversation

@kbatuigas
Copy link
Copy Markdown
Contributor

@kbatuigas kbatuigas commented Dec 17, 2025

The OpenAPI spec used by our docs build was patched to ensure consistency in how method summaries and descriptions render in our public docs: https://docs.redpanda.com/api/doc/admin/v2/

This PR backports those fixes to the source protos (including adding missing method descriptions in ShadowLinkService)

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v25.3.x
  • v25.2.x
  • v25.1.x

Release Notes

Copilot AI review requested due to automatic review settings December 17, 2025 21:21
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Dec 17, 2025

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 17, 2025

The latest Buf updates on your PR. Results from workflow Buf CI / validate (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped✅ passed✅ passedDec 18, 2025, 9:58 PM

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR backports OpenAPI documentation improvements from the API docs repository to the source proto files. The changes ensure consistency in how method summaries and descriptions render in the public documentation. The updates primarily focus on adding missing method descriptions in the ShadowLinkService and standardizing description formatting across multiple services.

Key Changes

  • Added method descriptions to ShadowLinkService RPCs (CreateShadowLink, DeleteShadowLink, GetShadowLink, ListShadowLinks, UpdateShadowLink)
  • Standardized method description formatting in BrokerService and ClusterService to use "Returns" instead of verbose phrasing
  • Updated comment formatting for GetShadowTopic and ListShadowTopics methods

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
proto/redpanda/core/admin/v2/shadow_link.proto Added missing method descriptions and improved existing ones for all ShadowLinkService RPCs
proto/redpanda/core/admin/v2/broker.proto Standardized method descriptions to use "Returns" prefix
proto/redpanda/core/admin/v2/cluster.proto Standardized method description to use "Returns" prefix
proto/redpanda/core/pbgen/comments.pb.go New generated file consolidating comments from proto files
src/go/rpk/gen/protocomments/admin/v2/comments.pb.go Generated file updated with new and improved method descriptions
src/go/rpk/gen/protocomments/common/v1/comments.pb.go Generated file updated with TopicPartition comments
tests/rptest/clients/admin/proto/redpanda/core/admin/v2/init.pyi Removed unused import statement
tests/rptest/clients/admin/proto/redpanda/core/admin/v2/shadow_link_pb2.py Generated Python file updated with proto changes
tests/rptest/clients/admin/proto/redpanda/core/common/v1/tls_pb2.py Generated Python file updated with proto changes

from . import cluster_pb2
from . import internal
from . import kafka_connections_pb2
from . import shadow_link_pb2
Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

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

The removal of the 'internal' import should be verified. If this module exists and is used elsewhere in the test suite, removing this import could break functionality. Only remove if the module truly doesn't exist or is genuinely unused throughout the codebase.

Suggested change
from . import shadow_link_pb2

Copilot uses AI. Check for mistakes.
@kbatuigas kbatuigas force-pushed the kb/docs/proto/patch-descriptions branch from d28a460 to 48433d8 Compare December 18, 2025 19:11
Copy link
Copy Markdown
Contributor

@michael-redpanda michael-redpanda left a comment

Choose a reason for hiding this comment

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

Changes look good - I would squash the two commits that have the comment changes into a single commit and then do one more follow on commit to update the autogenerated files

@rockwotj rockwotj force-pushed the kb/docs/proto/patch-descriptions branch from 7506763 to 4c7304f Compare December 18, 2025 21:57
Copy link
Copy Markdown
Contributor

@rockwotj rockwotj left a comment

Choose a reason for hiding this comment

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

Rebased and squashed commits

@rockwotj rockwotj force-pushed the kb/docs/proto/patch-descriptions branch from 4c7304f to 3bc6fde Compare December 18, 2025 21:57
@rockwotj rockwotj enabled auto-merge December 18, 2025 21:58
@rockwotj rockwotj merged commit 0d99276 into dev Dec 18, 2025
21 checks passed
@rockwotj rockwotj deleted the kb/docs/proto/patch-descriptions branch December 18, 2025 21:58
@WillemKauf
Copy link
Copy Markdown
Contributor

@rockwotj
Copy link
Copy Markdown
Contributor

Yes it did, sorry I think it's a bug in which checks happen. I can fix tonight

@tyson-redpanda
Copy link
Copy Markdown
Contributor

/backport v25.3.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants