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

Improve docs #16

Merged
merged 2 commits into from
Sep 13, 2024
Merged

Improve docs #16

merged 2 commits into from
Sep 13, 2024

Conversation

hsoerensen
Copy link
Contributor

@hsoerensen hsoerensen commented Sep 13, 2024

Summary by CodeRabbit

  • New Features

    • Introduced the "Conduit node" to the Voi node setup, enhancing functionality.
    • Added detailed instructions for running various node types, including "Developer," "Participation," and "Conduit" nodes.
    • Included guidance on obtaining the API token for the Conduit node.
  • Documentation

    • Updated the README.md to improve clarity and usability for users setting up nodes.
    • Revised sections for "Relay node" and "Archiver node" with clearer commands and configurations.

Copy link

coderabbitai bot commented Sep 13, 2024

Walkthrough

The pull request introduces a new node type, "Conduit node," to the Voi node setup, enhancing the documentation in README.md to include instructions for running various node types, including the default mainnet configuration. Additionally, the StatusURL for the mainNet network configuration in tools/utils/network_utils.go has been updated to a new API endpoint, reflecting a change in the backend service for status checks.

Changes

File Path Change Summary
README.md - Added "Conduit node" and instructions for running with default mainnet.
- Included commands for running "Developer node," "Participation node," and "Conduit node."
- Revised "Relay node" and "Archiver node" sections for clarity on commands and configurations.
- Added guidance on obtaining the API token for the "Conduit node."
tools/utils/network_utils.go - Modified StatusURL from "https://mainnet-api.voi.nodly.io/v2/status" to "https://mainnet-api.voi.nodely.dev/v2/status."

Possibly related PRs

  • Add conduit profile #14: This PR introduces a "Conduit node" and updates related documentation, while the retrieved PR adds a conduit profile, indicating a direct connection in functionality related to the conduit.

Tip

OpenAI O1 model for chat
  • We have deployed OpenAI's latest O1 model for chat.
  • OpenAI claims that this model has superior reasoning capabilities than their GPT-4o model.
  • Please share any feedback with us in the discussions post.

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

@hsoerensen hsoerensen merged commit 2ad0779 into main Sep 13, 2024
12 checks passed
@hsoerensen hsoerensen deleted the improve-docs branch September 13, 2024 14:24
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: 3

Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

Commits

Files that changed from the base of the PR and between c6f5feb and 6cee0c4.

Files selected for processing (2)
  • README.md (3 hunks)
  • tools/utils/network_utils.go (1 hunks)
Additional context used
LanguageTool
README.md

[style] ~92-~92: Consider a shorter alternative to avoid wordiness.
Context: ... the conduit framework to the network, in order to query network such, such as looking up ...

(IN_ORDER_TO_PREMIUM)


[uncategorized] ~101-~101: Possible missing comma found.
Context: ... start. If you need to ensure it stays constant pre-create the folder and create a `alg...

(AI_HYDRA_LEO_MISSING_COMMA)

Markdownlint
README.md

92-92: Expected: 0 or 2; Actual: 1
Trailing spaces

(MD009, no-trailing-spaces)


98-98: Expected: 0 or 2; Actual: 1
Trailing spaces

(MD009, no-trailing-spaces)


100-100: Expected: 0 or 2; Actual: 1
Trailing spaces

(MD009, no-trailing-spaces)


104-104: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

Additional comments not posted (4)
README.md (4)

12-12: LGTM!

The addition of the "Conduit node" to the list of supported node types is clear and consistent with the rest of the changes in this PR.


33-38: LGTM!

The instructions for running a node with default mainnet settings are a helpful addition to the documentation.


58-62: LGTM!

The updated command for running a relay node with port mapping is clear and informative.


66-69: LGTM!

The updated command for running an archiver node with a volume mount for data persistence is a helpful addition.

Comment on lines +95 to +102
Guidance on how to install Conduit and the Indexer can be found on the [Conduit GitHub page](https://github.com/algorand/conduit),
as well as the [Indexer GitHub page](https://github.com/algorand/indexer)
The API token required can be found in the folder that you have mounted via the `-v` flag, after
startup.

The API token is persistent and generated randomly on first start. If you need to ensure it
stays constant pre-create the folder and create a `algod.token` and `algod.admin.token` file with the wanted sha256 tokens inside.

Copy link

Choose a reason for hiding this comment

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

Remove trailing spaces.

The instructions for obtaining the API token required for the conduit node are a valuable addition to the documentation.

However, please remove the trailing spaces in lines 98 and 100 to adhere to the Markdownlint style guide.

Tools
LanguageTool

[uncategorized] ~101-~101: Possible missing comma found.
Context: ... start. If you need to ensure it stays constant pre-create the folder and create a `alg...

(AI_HYDRA_LEO_MISSING_COMMA)

Markdownlint

98-98: Expected: 0 or 2; Actual: 1
Trailing spaces

(MD009, no-trailing-spaces)


100-100: Expected: 0 or 2; Actual: 1
Trailing spaces

(MD009, no-trailing-spaces)

Comment on lines +103 to +105
Example `algod.token`:
```bash
c3818ac81a91c6e58df2b151a43caf7245e806ec02e4851bca01a1be2ba72da7
Copy link

Choose a reason for hiding this comment

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

Add blank lines around the fenced code block.

The example algod.token is a helpful addition to the documentation.

However, please add blank lines before and after the fenced code block to adhere to the Markdownlint style guide.

Tools
Markdownlint

104-104: null
Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)

Comment on lines +85 to +93
#### Conduit node

```bash
docker run -e VOINETWORK_PROFILE=conduit -p 5011:8080 -v <my_local_path>:/algod/data ghcr.io/voinetwork/voi-node:latest
```

This maps local port 5011 to the blockchain service running on port 8080 within the container.
This mode is used if you want to connect an indexer and the conduit framework to the network,
in order to query network such, such as looking up transaction history.
Copy link

Choose a reason for hiding this comment

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

Improve the sentence flagged by LanguageTool.

The new section explaining the purpose and command for running a conduit node is informative and adds value to the documentation.

However, consider rephrasing the following sentence to improve readability:

This mode is used if you want to connect an indexer and the conduit framework to the network, in order to query network such, such as looking up transaction history.

-This mode is used if you want to connect an indexer and the conduit framework to the network, in order to query network such, such as looking up transaction history.
+This mode is used to connect an indexer and the conduit framework to the network for querying transaction history and other network data.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
#### Conduit node
```bash
docker run -e VOINETWORK_PROFILE=conduit -p 5011:8080 -v <my_local_path>:/algod/data ghcr.io/voinetwork/voi-node:latest
```
This maps local port 5011 to the blockchain service running on port 8080 within the container.
This mode is used if you want to connect an indexer and the conduit framework to the network,
in order to query network such, such as looking up transaction history.
#### Conduit node
```bash
docker run -e VOINETWORK_PROFILE=conduit -p 5011:8080 -v <my_local_path>:/algod/data ghcr.io/voinetwork/voi-node:latest
```
This maps local port 5011 to the blockchain service running on port 8080 within the container.
This mode is used to connect an indexer and the conduit framework to the network for querying transaction history and other network data.
Tools
LanguageTool

[style] ~92-~92: Consider a shorter alternative to avoid wordiness.
Context: ... the conduit framework to the network, in order to query network such, such as looking up ...

(IN_ORDER_TO_PREMIUM)

Markdownlint

92-92: Expected: 0 or 2; Actual: 1
Trailing spaces

(MD009, no-trailing-spaces)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant