Skip to content
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

doc: fix link for proto-gen #22111

Merged
merged 1 commit into from
Oct 3, 2024
Merged

doc: fix link for proto-gen #22111

merged 1 commit into from
Oct 3, 2024

Conversation

GINMEL
Copy link
Contributor

@GINMEL GINMEL commented Oct 3, 2024

refer to this

Summary by CodeRabbit

  • Documentation
    • Updated documentation for the ABCI and State Streaming Plugin to clarify the implementation of the ABCIListener interface.
    • Enhanced instructions for generating code, including downloading CosmosSDK protos and compiling them.
    • Expanded examples for creating gRPC clients and servers, detailing the ListenerGRPCPlugin struct.
    • Improved configuration guidance for app.toml settings related to streaming.
    • Clarified testing instructions for exporting plugins and running tests.

Copy link
Contributor

coderabbitai bot commented Oct 3, 2024

📝 Walkthrough

Walkthrough

The pull request updates the documentation for the Server/v2 package and the ABCI and State Streaming Plugin. It clarifies the implementation details of the ABCIListener interface as a gRPC service, modifies the code generation instructions, and expands examples related to the ListenerGRPCPlugin struct. Additionally, the configuration section for app.toml is enhanced, and instructions for updating protocol buffers and testing are refined to improve clarity and usability.

Changes

File Change Summary
server/v2/streaming/plugin.md Updated documentation for ABCIListener interface, clarified code generation instructions, expanded gRPC client/server example, and improved configuration details in app.toml. Enhanced testing instructions.
store/streaming/abci/README.md Clarified implementation details and usage of ABCIListener, modified code generation instructions, expanded gRPC client/server example, and improved configuration and testing instructions.

Possibly related PRs

Suggested labels

backport/v0.52.x

Suggested reviewers

  • julienrbrt
  • tac0turtle

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added C:Store C:server/v2 Issues related to server/v2 labels Oct 3, 2024
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

Ty!

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

🧹 Outside diff range and nitpick comments (3)
store/streaming/abci/README.md (2)

Line range hint 30-36: LGTM! Enhanced instructions for code generation.

The updated instructions provide clearer guidance for users working with different languages. The addition of the link to the proto README is particularly helpful.

Consider adding a comma after "For other languages" to improve readability:

-For other languages you'll need to [download](https://github.com/cosmos/cosmos-sdk/blob/main/proto/README.md#generate)
+For other languages, you'll need to [download](https://github.com/cosmos/cosmos-sdk/blob/main/proto/README.md#generate)
🧰 Tools
🪛 LanguageTool

[uncategorized] ~30-~30: Possible missing comma found.
Context: ... shell make proto-gen For other languages you'll need to [download](https://githu...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~31-~31: When ‘language-specific’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...otos into your project and compile. For language specific compilation instructions visit [https:/...

(SPECIFIC_HYPHEN)


Line range hint 137-153: LGTM! Enhanced configuration options.

The updated configuration example provides more detailed options for users, including the ability to specify which keys to stream and whether to stop the node on errors. These additions offer greater flexibility and control.

Consider adding a brief explanation for the stop-node-on-err option to clarify its purpose:

 # stop-node-on-err specifies whether to stop the node when the 
+# streaming service encounters an error
 stop-node-on-err = true
🧰 Tools
🪛 LanguageTool

[uncategorized] ~30-~30: Possible missing comma found.
Context: ... shell make proto-gen For other languages you'll need to [download](https://githu...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~31-~31: When ‘language-specific’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...otos into your project and compile. For language specific compilation instructions visit [https:/...

(SPECIFIC_HYPHEN)

server/v2/streaming/plugin.md (1)

32-32: Consider adding a comma for improved readability.

To enhance clarity, consider adding a comma after the code block:

-```shell
+```shell,

This change will help separate the command from the subsequent instructions for other languages.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~32-~32: Possible missing comma found.
Context: ... shell make proto-gen For other languages you'll need to [download](https://githu...

(AI_HYDRA_LEO_MISSING_COMMA)

📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between dda9679 and bfc1107.

📒 Files selected for processing (2)
  • server/v2/streaming/plugin.md (1 hunks)
  • store/streaming/abci/README.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
server/v2/streaming/plugin.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

store/streaming/abci/README.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

🪛 LanguageTool
server/v2/streaming/plugin.md

[uncategorized] ~32-~32: Possible missing comma found.
Context: ... shell make proto-gen For other languages you'll need to [download](https://githu...

(AI_HYDRA_LEO_MISSING_COMMA)

store/streaming/abci/README.md

[uncategorized] ~30-~30: Possible missing comma found.
Context: ... shell make proto-gen For other languages you'll need to [download](https://githu...

(AI_HYDRA_LEO_MISSING_COMMA)

🔇 Additional comments (5)
store/streaming/abci/README.md (2)

Line range hint 41-45: LGTM! Improved explanation of the plugin architecture.

The added paragraph provides valuable context about the ListenerGRPCPlugin struct and its relationship with the ABCIListener interface. This addition enhances the overall understanding of the plugin architecture.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~30-~30: Possible missing comma found.
Context: ... shell make proto-gen For other languages you'll need to [download](https://githu...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~31-~31: When ‘language-specific’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...otos into your project and compile. For language specific compilation instructions visit [https:/...

(SPECIFIC_HYPHEN)


Line range hint 174-191: LGTM! Improved testing instructions and plugin system explanation.

The updated testing instructions provide clearer guidance for exporting plugins and running tests. The added explanation of how the plugin system looks for the plugin binary enhances users' understanding of the process. These changes significantly improve the clarity of the testing documentation.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~30-~30: Possible missing comma found.
Context: ... shell make proto-gen For other languages you'll need to [download](https://githu...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~31-~31: When ‘language-specific’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...otos into your project and compile. For language specific compilation instructions visit [https:/...

(SPECIFIC_HYPHEN)

server/v2/streaming/plugin.md (3)

Line range hint 32-36: LGTM: Clear instructions and helpful resources provided.

The added instructions for generating code in other languages are clear and informative. The inclusion of links to relevant resources and documentation is beneficial for users working with different programming languages.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~32-~32: Possible missing comma found.
Context: ... shell make proto-gen For other languages you'll need to [download](https://githu...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~33-~33: When ‘language-specific’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...otos into your project and compile. For language specific compilation instructions visit [https:/...

(SPECIFIC_HYPHEN)


Line range hint 32-79: Excellent documentation: Comprehensive explanation of gRPC implementation.

The added content provides a detailed and well-structured explanation of the gRPC client and server implementation. The inclusion of code references and the explanation of the ListenerGRPCPlugin struct are particularly helpful. This documentation significantly enhances the understanding of the implementation details for users.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~32-~32: Possible missing comma found.
Context: ... shell make proto-gen For other languages you'll need to [download](https://githu...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~33-~33: When ‘language-specific’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...otos into your project and compile. For language specific compilation instructions visit [https:/...

(SPECIFIC_HYPHEN)


Line range hint 32-79: Well-documented: Clear configuration instructions provided.

The added configuration instructions for the app.toml file are precise and easy to follow. The explanation of each streaming configuration option is helpful and well-formatted. This addition enhances the usability of the documentation for users setting up their environment.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~32-~32: Possible missing comma found.
Context: ... shell make proto-gen For other languages you'll need to [download](https://githu...

(AI_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~33-~33: When ‘language-specific’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...otos into your project and compile. For language specific compilation instructions visit [https:/...

(SPECIFIC_HYPHEN)

@julienrbrt julienrbrt added this pull request to the merge queue Oct 3, 2024
Merged via the queue into cosmos:main with commit 2df9e30 Oct 3, 2024
69 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:server/v2 Issues related to server/v2 C:Store
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants