Skip to content

Conversation

@snigdha920
Copy link
Contributor

@snigdha920 snigdha920 commented Sep 10, 2024

Branches from: #73

Summary by Sourcery

Revise and expand the documentation for adding networks to applications, joining networks by invitation code, and connecting to external networks and nodes. Introduce a new guide for integrating with external networks using the SettleMint platform, and update existing guides with clearer instructions and updated API references.

Documentation:

  • Updated the documentation to include instructions for joining a permissioned blockchain network using an invitation code and clarified the process for adding a network to an application.
  • Added a new guide on connecting to an external network using the SettleMint platform, detailing prerequisites, joining a network, adding nodes, and managing validators.
  • Revised the guide on connecting to an external node, including updates to the API method references for proposing validator votes.

Summary by CodeRabbit

Summary by CodeRabbit

  • Documentation
    • Enhanced clarity in instructions for joining a blockchain network via invitation code, improving user experience.
    • Updated guides for connecting external nodes to Hyperledger Besu, including terminology changes and updated references.
    • Introduced a new document detailing the process for connecting the SettleMint platform to external networks.
    • Revised instructions for adding a blockchain network to an application, broadening user options and improving readability.

@linear
Copy link

linear bot commented Sep 10, 2024

ENG-52 Update "Join by invitation code" resources

  • Update email that is send (if needed)
  • Update documentation (if needed)

@snigdha920 snigdha920 marked this pull request as ready for review September 10, 2024 13:07
@coderabbitai
Copy link

coderabbitai bot commented Sep 10, 2024

Walkthrough

The documentation has been updated to improve clarity and precision in instructions for connecting to external blockchain networks and managing validator nodes. Key terminology has been revised, and new guidance has been introduced for integrating with platforms like SettleMint, including detailed steps and prerequisites.

Changes

Files Change Summary
docs/blockchain-guides/1_Hyperledger-Besu/8_enterprise-ethereum-connect-external-node.md, docs/blockchain-guides/1_Hyperledger-Besu/9_enterprise-ethereum-connect-external-network.md Renamed ibft_proposeValidatorVote to qbft_proposeValidatorVote and introduced a new document detailing the process for connecting SettleMint to external networks.
docs/using-platform/1_add-a-network-to-an-application.md, docs/using-platform/4_join-a-network-by-invitation.md Enhanced clarity and expanded options for adding a blockchain network, including permissioned networks, and simplified instructions for joining a network via invitation code.

Poem

🐇 In the meadow, a change takes flight,
With clearer paths, the way feels right.
Join the network, hop along,
With invitation codes, you can't go wrong!
A simpler guide, a joyful cheer,
Let's celebrate, the time is near! 🌼


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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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.

@sourcery-ai
Copy link

sourcery-ai bot commented Sep 10, 2024

Reviewer's Guide by Sourcery

This pull request updates the documentation for adding a network to an application and joining a network by invitation code. It clarifies the process, improves the structure, and adds information about connecting to external networks.

File-Level Changes

Change Details Files
Update and restructure the 'Add a network to an application' documentation
  • Clarify the options for setting up a blockchain network
  • Reorganize the list of supported protocols
  • Update the steps for adding a blockchain network
  • Improve the explanation of deployment plans and network settings
  • Clarify the process of managing a network
docs/using-platform/1_add-a-network-to-an-application.md
Update the documentation for connecting to an external node
  • Change the title from 'Connect an external node' to 'Connect to an external node'
  • Update the API references from 'ibft_proposeValidatorVote' to 'qbft_proposeValidatorVote'
docs/blockchain-guides/1_Hyperledger-Besu/8_enterprise-ethereum-connect-external-node.md
Simplify the instructions for joining a network by invitation
  • Update the wording for selecting 'Join by invitation code' in the form
docs/using-platform/4_join-a-network-by-invitation.md
Add new documentation for connecting to an external network
  • Explain prerequisites for joining an external network
  • Provide step-by-step instructions for joining a network
  • Describe the process of adding nodes to an external network
  • Explain how to add and remove validators
  • Introduce the concept of node type conflict warnings
docs/blockchain-guides/1_Hyperledger-Besu/9_enterprise-ethereum-connect-external-network.md

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

@github-actions github-actions bot added the fix Bug fix label Sep 10, 2024
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @snigdha920 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Review instructions: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@snigdha920 snigdha920 marked this pull request as draft September 10, 2024 13:13
@snigdha920 snigdha920 changed the title fix: tweak select join by invitation code step docs fix: update add a network, join by invitation code docs Sep 10, 2024
@snigdha920 snigdha920 marked this pull request as ready for review September 10, 2024 18:55
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @snigdha920 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Review instructions: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟡 Documentation: 2 issues found

Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

commit d541875
Author: Snigdha Singh <snigdha920@gmail.com>
Date:   Wed Sep 11 13:26:50 2024 +0200

    use stable link

commit 7b94aa5
Author: Snigdha Singh <snigdha920@gmail.com>
Date:   Tue Sep 10 17:31:40 2024 +0200

    cursor ai improvements

commit fab9c6e
Author: Snigdha Singh <snigdha920@gmail.com>
Date:   Tue Sep 10 17:18:54 2024 +0200

    fix link to qbft_proposeValidatorVote

commit 1750ec3
Author: Snigdha Singh <snigdha920@gmail.com>
Date:   Tue Sep 10 17:17:10 2024 +0200

    fix page number, json rpc method name, grammar

commit f192b18
Author: Snigdha Singh <snigdha920@gmail.com>
Date:   Tue Sep 10 14:51:50 2024 +0200

    remove note that platform doesn't reflect node type changes

commit e99a736
Author: Snigdha Singh <snigdha920@gmail.com>
Date:   Tue Sep 10 14:51:01 2024 +0200

    remove references to images

commit 568e6e4
Author: Snigdha Singh <snigdha920@gmail.com>
Date:   Tue Sep 10 14:32:17 2024 +0200

    more cleanup

commit f358c84
Author: Snigdha Singh <snigdha920@gmail.com>
Date:   Tue Sep 10 13:06:01 2024 +0200

    initial docs
Copy link

@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)
docs/blockchain-guides/1_Hyperledger-Besu/9_enterprise-ethereum-connect-external-network.md (2)

32-32: Consider rephrasing "a majority of" to improve conciseness.

The static analysis tool suggests that the phrase "a majority of" might be wordy and could be replaced with a shorter alternative. While the current phrasing is clear and understandable, you may consider rephrasing it to improve conciseness. For example:

-Once a majority of validators are running on the platform,
+Once most validators are running on the platform,
Tools
LanguageTool

[style] ~32-~32: ‘a majority of’ might be wordy. Consider a shorter alternative.
Context: ...alidator) to make it a validator. Once a majority of validators are running on the platform,...

(EN_WORDINESS_PREMIUM_A_MAJORITY_OF)


[style] ~32-~32: ‘a majority of’ might be wordy. Consider a shorter alternative.
Context: ...xternal validators. We recommend having a majority of validators running on the platform for ...

(EN_WORDINESS_PREMIUM_A_MAJORITY_OF)


36-36: Consider rephrasing "a majority of" to improve conciseness.

The static analysis tool suggests that the phrase "a majority of" might be wordy and could be replaced with a shorter alternative. While the current phrasing is clear and understandable, you may consider rephrasing it to improve conciseness. For example:

-Unless a majority of validators are running on the platform,
+Unless most validators are running on the platform,
Tools
LanguageTool

[style] ~36-~36: ‘a majority of’ might be wordy. Consider a shorter alternative.
Context: ...he network. ## Add a Validator Unless a majority of validators are running on the platform,...

(EN_WORDINESS_PREMIUM_A_MAJORITY_OF)

docs/blockchain-guides/1_Hyperledger-Besu/8_enterprise-ethereum-connect-external-node.md (1)

138-138: LGTM, but consider adding a comma.

The change in the reference to the voting function is approved.

However, consider adding a comma after the word "Similarly" to improve readability:

Similarly, you can make a platform validator a regular node by executing [qbft_proposeValidatorVote](https://besu.hyperledger.org/stable/private-networks/reference/api#qbft_proposevalidatorvote) with proposal "false" on every validator node.
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between f3ec00d and 7526fe2.

Files selected for processing (2)
  • docs/blockchain-guides/1_Hyperledger-Besu/8_enterprise-ethereum-connect-external-node.md (2 hunks)
  • docs/blockchain-guides/1_Hyperledger-Besu/9_enterprise-ethereum-connect-external-network.md (1 hunks)
Additional context used
LanguageTool
docs/blockchain-guides/1_Hyperledger-Besu/9_enterprise-ethereum-connect-external-network.md

[style] ~32-~32: ‘a majority of’ might be wordy. Consider a shorter alternative.
Context: ...alidator) to make it a validator. Once a majority of validators are running on the platform,...

(EN_WORDINESS_PREMIUM_A_MAJORITY_OF)


[style] ~32-~32: ‘a majority of’ might be wordy. Consider a shorter alternative.
Context: ...xternal validators. We recommend having a majority of validators running on the platform for ...

(EN_WORDINESS_PREMIUM_A_MAJORITY_OF)


[style] ~36-~36: ‘a majority of’ might be wordy. Consider a shorter alternative.
Context: ...he network. ## Add a Validator Unless a majority of validators are running on the platform,...

(EN_WORDINESS_PREMIUM_A_MAJORITY_OF)

docs/blockchain-guides/1_Hyperledger-Besu/8_enterprise-ethereum-connect-external-node.md

[uncategorized] ~137-~137: A comma may be missing after the conjunctive/linking adverb ‘Similarly’.
Context: ...etworks/reference/api#admin_nodeinfo). Similarly you can make a platform validator a reg...

(SENT_START_CONJUNCTIVE_LINKING_ADVERB_COMMA)

Additional comments not posted (7)
docs/blockchain-guides/1_Hyperledger-Besu/9_enterprise-ethereum-connect-external-network.md (5)

5-10: LGTM!

The prerequisites section is clear and provides the necessary information for the user to proceed with the instructions.


11-22: LGTM!

The "Joining a Network" section provides clear step-by-step instructions for joining a permissioned network. The references to other documentation provide additional context and information for the user.


23-33: LGTM!

The "Adding Nodes" section provides clear instructions for adding nodes to the network. The differentiation between validator and non-validator nodes is important and clearly explained. The requirement for a majority of validators to be running on the platform is also clearly stated.

Tools
LanguageTool

[style] ~32-~32: ‘a majority of’ might be wordy. Consider a shorter alternative.
Context: ...alidator) to make it a validator. Once a majority of validators are running on the platform,...

(EN_WORDINESS_PREMIUM_A_MAJORITY_OF)


[style] ~32-~32: ‘a majority of’ might be wordy. Consider a shorter alternative.
Context: ...xternal validators. We recommend having a majority of validators running on the platform for ...

(EN_WORDINESS_PREMIUM_A_MAJORITY_OF)


34-43: LGTM!

The "Add a Validator" section provides clear instructions for adding a platform node as a validator. The differentiation between the process for Hyperledger Besu and Quorum is important and clearly explained. The requirement for a majority of validators to be running on the platform to add a platform node as a validator without voting on external validators is also clearly stated.

Tools
LanguageTool

[style] ~36-~36: ‘a majority of’ might be wordy. Consider a shorter alternative.
Context: ...he network. ## Add a Validator Unless a majority of validators are running on the platform,...

(EN_WORDINESS_PREMIUM_A_MAJORITY_OF)


45-68: LGTM!

The "Remove a Validator" section provides clear instructions for removing a platform validator. The differentiation between the process for Hyperledger Besu and Quorum is important and clearly explained. The "Node Type Conflict Warning" section provides a clear explanation of the warning and instructions for resolving it.

docs/blockchain-guides/1_Hyperledger-Besu/8_enterprise-ethereum-connect-external-node.md (2)

1-1: LGTM!

The change in the title is approved.


136-136: The previous review comment is still valid and applicable.

@snigdha920 snigdha920 merged commit 3c25747 into main Sep 12, 2024
@snigdha920 snigdha920 deleted the snigdha/eng-52-update-join-by-invitation-code-resources branch September 12, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants