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

docs: fix authz path #22134

Closed
wants to merge 1 commit into from
Closed

docs: fix authz path #22134

wants to merge 1 commit into from

Conversation

lioncatte
Copy link
Contributor

@lioncatte lioncatte commented Oct 4, 2024

👀

Summary by CodeRabbit

  • Documentation
    • Updated the link to the authz module for clarity.
    • Added a warning about the deprecation of vesting accounts in favor of the x/accounts module.
    • Emphasized backward compatibility for existing chains using the deprecated module.

Copy link
Contributor

coderabbitai bot commented Oct 4, 2024

📝 Walkthrough

Walkthrough

The changes in this pull request involve updates to the README.md file for the x/auth module in the Cosmos SDK. The modifications include correcting the link to the authz module and adding a warning about the deprecation of vesting accounts, which are now replaced by the x/accounts module. The document maintains its overall structure and content, focusing on enhancing clarity and accuracy without altering any functionality or logic.

Changes

File Change Summary
x/auth/README.md - Corrected link to authz module from ../modules/authz/ to ../authz/.
- Added warning about deprecation of vesting accounts in favor of x/accounts module.
- Noted backward compatibility for existing chains using x/auth/vesting.

Possibly related PRs

  • docs(x/auth): vesting #21715: This PR updates the README.md for the x/auth module to clarify the deprecation of vesting accounts, which is directly related to the changes made in the main PR regarding the documentation of the x/auth module.
  • docs: update authz docs #22062: This PR updates the x/authz/README.md documentation, which is relevant as it pertains to the authorization features within the Cosmos SDK, similar to the focus of the main PR on the x/auth module documentation.

Suggested labels

C:x/auth, C:x/authz, backport/v0.52.x

Suggested reviewers

  • akhilkumarpilli
  • 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.

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: 1

🧹 Outside diff range and nitpick comments (1)
x/auth/README.md (1)

Line range hint 114-119: Approved: Important warning about vesting accounts deprecation.

The added warning provides crucial information about the deprecation of vesting accounts and the transition to x/accounts. This is valuable for users and developers working with the Cosmos SDK.

Consider adding a link to the documentation for the new x/accounts module to help users transition more easily.

Consider adding a link to the x/accounts module documentation:

 :::warning
 Vesting accounts are deprecated in favor of `x/accounts`.
 The creation of vesting account, using `x/auth/vesting`, is not possible since v0.52.
 For existing chains, importing the `x/auth/vesting module` is still required for backward compatibility purposes.
+For more information on the new accounts module, see [x/accounts documentation](link-to-x-accounts-docs).
 :::
📜 Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 489aaae and 48e9798.

📒 Files selected for processing (1)
  • x/auth/README.md (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
x/auth/README.md (1)

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

@@ -32,7 +32,7 @@ This module is used in the Cosmos Hub.

## Concepts

**Note:** The auth module is different from the [authz module](../modules/authz/).
**Note:** The auth module is different from the [authz module](../authz/).
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Link to authz module is incorrect

The updated link ../authz/ does not exist. Please verify and correct the path to the authz module documentation.

🔗 Analysis chain

Link correction looks good, please verify the path.

The update to the authz module link appears to be a correction. However, it's important to ensure that ../authz/ is indeed the correct path within the project structure.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Verify if the authz directory exists at the correct location
if [ -d "../authz" ]; then
    echo "The ../authz/ directory exists, confirming the correctness of the updated link."
else
    echo "Warning: The ../authz/ directory does not exist. Please double-check the correct path for the authz module documentation."
fi

Length of output: 274

Copy link
Contributor

@beepdeepor beepdeepor left a comment

Choose a reason for hiding this comment

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

The original path is correct actually, change to ../authz/ will cause a bad link

Something may be wrong with the Next version in https://docs.cosmos.network. In 0.50 version, ../modules/authz/ works well. But in Next version, this will render to https://docs.cosmos.network/main/build/authz which is a bad link

@beepdeepor
Copy link
Contributor

beepdeepor commented Oct 4, 2024

It seems that Next version in https://docs.cosmos.network has been a long-time that doesn't been updated.

image

So, does this mean that Next version hasn't been updated since Jun 25 at least?

@julienrbrt
Copy link
Member

Hey! The links are working fine. It is deployed via the cosmos-sdk-docs repo, meaning this isn't using relative markdown on this repo but in the cosmos-sdk-docs repo.

The website is updated once a day if there is a change in the docs on this repo.

@julienrbrt julienrbrt closed this Oct 4, 2024
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.

3 participants