-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
docs: update tooling link #21973
docs: update tooling link #21973
Conversation
📝 WalkthroughWalkthroughThe pull request introduces significant updates to the Cosmos SDK, particularly enhancing the BaseApp and SimApp components. Key features include the simulation of nested messages in transactions, a refactor of the SimApp client package, and the introduction of unordered transactions. Additionally, the documentation has been expanded to clarify the upgrade process, and various modules have undergone structural changes to improve modularity and maintainability. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
Documentation and Community
|
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
🧹 Outside diff range and nitpick comments (12)
tools/cosmovisor/cmd/cosmovisor/help_test.go (1)
Line range hint
11-22
: Consider enhancing test coverageWhile the current test checks for the presence of expected pieces in the help text, it could be improved:
- Add a negative test to ensure the old URL is not present in the help text.
- Consider checking the order of the pieces if it's important for the help text structure.
These additions would make the test more robust and catch potential regressions.
Here's a suggested improvement to the test:
func TestGetHelpText(t *testing.T) { expectedPieces := []string{ "Cosmovisor", cosmovisor.EnvName, cosmovisor.EnvHome, "https://docs.cosmos.network/main/build/tooling/cosmovisor", } actual := GetHelpText() // Check for presence of expected pieces for _, piece := range expectedPieces { assert.Contains(t, actual, piece) } // Check that old URL is not present assert.NotContains(t, actual, "https://docs.cosmos.network/main/tooling/cosmovisor") // Optionally, check the order of pieces lastIndex := -1 for _, piece := range expectedPieces { index := strings.Index(actual, piece) assert.Greater(t, index, lastIndex) lastIndex = index } }docs/build/packages/README.md (1)
12-12
: Approved: Link update improves specificity.The updated link to the SDK tooling section is more precise, which should enhance user navigation. This change aligns well with the PR objective.
Consider slightly rewording the sentence for added clarity:
-For more information on SDK tooling, see the [Tooling](https://docs.cosmos.network/main/build/tooling) section. +For more information on SDK tooling, see the [Tooling section](https://docs.cosmos.network/main/build/tooling) under the Build category.This minor change explicitly mentions that the Tooling section is part of the Build category, which might help users understand the documentation structure better.
docs/build/building-apps/03-app-upgrade.md (3)
Line range hint
52-70
: LGTM with a suggestion: Clear explanation of app integrationThe new section on "Integrating With An App" provides clear instructions and a helpful code example for implementing the
PreBlocker
method. The note aboutdepinject
is valuable for users of that framework.Suggestion: Consider adding a brief explanation or link to documentation about
depinject
for readers who may not be familiar with it.
Line range hint
72-108
: LGTM with a suggestion: Comprehensive upgrade handling explanationThe "Performing Upgrades" section provides a detailed and clear explanation of the upgrade process, with updated code examples that reflect current best practices. The balance between theoretical explanation and practical implementation is well-maintained.
Suggestion: Consider adding a brief note about potential pitfalls or common mistakes to watch out for when implementing upgrade handlers, to further enhance the section's value for developers.
Line range hint
184-265
: LGTM with a suggestion: Valuable addition of Pre-Upgrade Handling informationThe new "Pre-Upgrade Handling" section is a valuable addition to the document. It provides clear explanations of Cosmovisor's pre-upgrade handling feature, including a helpful table of exit status codes and their meanings. The sample code for implementing the
pre-upgrade
command is a great starting point for developers.Suggestion: Consider adding a brief example scenario where pre-upgrade handling would be particularly useful, to help readers better understand when and why they might want to implement this feature.
client/v2/README.md (4)
Line range hint
244-286
: Enhance the "Off-Chain" section for clarity and completeness.The new "Off-Chain" section provides valuable information about file signing and verification functionalities. However, consider the following improvements:
- Add a brief explanation of why off-chain functionalities are important or useful in the context of Cosmos SDK applications.
- Clarify whether these commands are part of the AutoCLI feature or if they are separate functionalities.
- In the
sign-file
command example, explain whatalice
represents (presumably a key name).- For the
verify-file
example, consider adding a note about what happens if the verification fails.- Consider adding a link to more detailed documentation about off-chain functionalities, if available.
These additions would make the section more comprehensive and user-friendly.
Line range hint
89-97
: Enhance the "Signing" section with more context and examples.The "Signing" section provides crucial information about transaction signing in AutoCLI. To make it more comprehensive:
- Consider adding a brief example of how the
cosmos.msg.v1.signer
protobuf annotation is used in practice.- Explain the implications of supporting only one signer per transaction and whether there are plans to support multiple signers in the future.
- If possible, provide a simple code snippet or command-line example demonstrating how signing works with AutoCLI.
These additions would give users a clearer understanding of the signing process and its current limitations.
Line range hint
134-156
: Minor enhancements to the "Conventions for theUse
field in Cobra" section.The section on Cobra conventions is informative and well-structured. Consider the following minor improvements:
- Add a brief introduction explaining why following these conventions is important (e.g., for consistency and clarity in command-line interfaces).
- Consider adding a simple example that combines multiple conventions to illustrate how they work together in a complex command.
- If relevant, mention any AutoCLI-specific considerations or extensions to these general Cobra conventions.
These additions would further enhance the usefulness of this section for developers working with AutoCLI and Cobra.
Line range hint
1-286
: Enhance overall README structure and content.The README provides comprehensive information about AutoCLI and its features. To further improve its structure and readability:
- Consider adding a table of contents at the beginning for easier navigation, especially given the document's length.
- Ensure consistent formatting throughout the document (e.g., use of headings, code blocks, and emphasis).
- Consider grouping related sections together, such as all customization options under a single "Customization" heading.
- Add a "Troubleshooting" or "FAQ" section to address common issues or questions users might have when working with AutoCLI.
- If possible, include a simple end-to-end example of setting up and using AutoCLI in a basic Cosmos SDK application.
These improvements would enhance the overall user experience and make the documentation more accessible to developers of varying experience levels.
UPGRADING.md (3)
Line range hint
7-46
: Consider adding a brief explanation of nested messagesThe section provides valuable information about the new nested messages simulation feature. However, it would be helpful to include a brief explanation of what nested messages are and why they are important in the context of Cosmos SDK. This addition would make the documentation more accessible to developers who might be less familiar with the concept.
Line range hint
48-329
: Expand on unordered transactions explanationThe introduction of unordered transactions is a significant change, but the explanation is quite brief. Consider adding more information about:
- The benefits of unordered transactions.
- Potential use cases.
- Any performance implications.
- How it affects the overall transaction flow in the SDK.
This additional information would help developers better understand the impact and advantages of this new feature.
Line range hint
388-641
: Consider adding more context and examplesWhile the instructions for changes to transactions and modules are clear, some parts could benefit from additional context or examples:
For the removal of the 'block' broadcast mode, consider explaining the implications of using 'sync' mode instead and how it might affect existing implementations.
The changes to event emission in modules are significant. It might be helpful to provide a before-and-after code example to illustrate the change more clearly.
For the new x/consensus module, consider adding a brief explanation of its purpose and benefits.
The changes to x/gov, particularly the new minimum proposal deposit feature, could benefit from an example configuration to illustrate how chains can set this up.
Adding these details would make the upgrade process smoother for developers by providing more comprehensive guidance.
📜 Review details
Configuration used: .coderabbit.yml
Review profile: CHILL
📒 Files selected for processing (7)
- UPGRADING.md (1 hunks)
- client/v2/README.md (1 hunks)
- docs/build/building-apps/03-app-upgrade.md (2 hunks)
- docs/build/packages/README.md (1 hunks)
- tools/cosmovisor/cmd/cosmovisor/help.go (1 hunks)
- tools/cosmovisor/cmd/cosmovisor/help_test.go (1 hunks)
- x/upgrade/client/cli/tx.go (1 hunks)
✅ Files skipped from review due to trivial changes (2)
- tools/cosmovisor/cmd/cosmovisor/help.go
- x/upgrade/client/cli/tx.go
🧰 Additional context used
📓 Path-based instructions (5)
UPGRADING.md (1)
Pattern
**/*.md
: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"client/v2/README.md (1)
Pattern
**/*.md
: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"docs/build/building-apps/03-app-upgrade.md (1)
Pattern
**/*.md
: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"docs/build/packages/README.md (1)
Pattern
**/*.md
: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"tools/cosmovisor/cmd/cosmovisor/help_test.go (2)
Pattern
**/*.go
: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.
Pattern
**/*_test.go
: "Assess the unit test code assessing sufficient code coverage for the changes associated in the pull request"
🔇 Additional comments (8)
tools/cosmovisor/cmd/cosmovisor/help_test.go (1)
15-15
: LGTM! Verify URL consistency across the codebase.The URL update aligns with the PR objective. The new link appears to be correct, pointing to the Cosmovisor documentation under the "build" section.
To ensure consistency, please run the following script to check if the old URL is still present elsewhere in the codebase:
docs/build/building-apps/03-app-upgrade.md (4)
44-44
: LGTM: Cosmovisor documentation link updatedThe link to Cosmovisor documentation has been correctly updated to point to the main documentation. This change aligns with the PR objective of updating tooling links.
134-134
: LGTM: Consistent update of Cosmovisor documentation linkThe link to Cosmovisor documentation has been correctly updated to point to the main documentation. This change is consistent with the previous update and aligns with the PR objective of updating tooling links.
Line range hint
1-265
: LGTM: Comprehensive and well-structured documentationThe document provides a thorough explanation of the application upgrade process, covering all essential aspects. The content is well-structured, free of obvious misspellings or grammatical errors, and appears to be correct and up-to-date. The code examples and explanations are clear and informative, making it a valuable resource for developers working on application upgrades.
Line range hint
1-265
: LGTM: Excellent updates enhancing the application upgrade documentationThe changes made to this document significantly improve its value for developers working on application upgrades. The updates align well with the PR objective of updating tooling links, and go beyond by adding new sections (such as pre-upgrade handling) and enhancing existing explanations. The overall structure and flow of the document have been maintained, ensuring consistency in style and terminology throughout the updates.
These improvements provide a more comprehensive and up-to-date guide for handling application upgrades in the Cosmos SDK ecosystem. Great work on enhancing this crucial documentation!
client/v2/README.md (1)
244-244
: LGTM: Updated Hubl documentation link.The link to the Hubl documentation has been appropriately updated to point to the specific tooling section within the Cosmos Network documentation. This change improves the accessibility of relevant information for users.
UPGRADING.md (2)
Line range hint
1-5
: LGTM: Clear and concise introductionThe introduction to the upgrading guide is well-written and provides a clear overview of the document's purpose.
Line range hint
331-386
: LGTM: Clear instructions for protobuf migrationThis section provides comprehensive and clear instructions for migrating from gogo/protobuf to cosmos/gogoproto. The explanation of the new package naming convention and the required changes to import paths and buf.yaml file is particularly helpful. This will greatly assist developers in smoothly transitioning to the new protobuf implementation.
Co-authored-by: wujinbao <www.389092100@qq.com> (cherry picked from commit 21b3a26) # Conflicts: # UPGRADING.md # tools/cosmovisor/cmd/cosmovisor/help.go # tools/cosmovisor/cmd/cosmovisor/help_test.go
Description
update tooling link
Summary by CodeRabbit
New Features
x/gov
module for expedited proposals and cancellations.Documentation
autocli
package for generating CLI interfaces.Bug Fixes