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

Fix typo #141

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Fix typo #141

merged 1 commit into from
Jun 20, 2024

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Jun 20, 2024

What this PR does / why we need it?

Fix typo

Any background context you want to provide?

What are the relevant tickets?

Fixes #

Checklist

  • Added relevant tests or not required
  • Didn't break anything

Summary by CodeRabbit

  • Documentation
    • Updated default port values for profiling (8081) and RPC (8080) in CLI tool documentation.
    • Modified server backend initialization and port configurations in self-hosted server documentation, specifying different backend IDs and ports (8080 for RPC and 8081 for profiling).

Copy link

coderabbitai bot commented Jun 20, 2024

Walkthrough

The updates modify default port configurations for profiling and RPC services in the CLI and self-hosted server documentation. Profiling now defaults to port 8081, and RPC to 8080, streamlining backend initialization and port assignments for different ID backends.

Changes

File Change Summary
docs/cli.mdx Updated default values for --profiling-port (to 8081) and --rpc-port (to 8080).
docs/self-hosted-server.mdx Adjusted server backend initialization details and updated profiling and RPC port configurations.

Poem

🌟 Ports shift and ports align,
RPC on 8080 shines.
Profiling finds its cozy niche,
8081— a perfect fit, a seamless pitch.
Backends hum in harmony, as changes steer,
Configuration’s crisp and clear.
Happy coding, far and near! 🚀🐇


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

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration 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.

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

Outside diff range and nitpick comments (3)
docs/self-hosted-server.mdx (3)

Line range hint 46-46: Consider adding "the" before "metrics" to improve grammatical correctness.

- Server exports metrics under the `/metrics` path on its profiling port.
+ Server exports the metrics under the `/metrics` path on its profiling port.

Line range hint 96-96: Consider adding "a" before "sharded cluster" to clarify the sentence.

- This page describes how to set up sharded cluster.
+ This page describes how to set up a sharded cluster.

Line range hint 136-136: Consider adding "a" before "guide" to improve the grammatical structure.

- Below is guide for deploying Yorkie cluster addons on Kubernetes.
+ Below is a guide for deploying Yorkie cluster addons on Kubernetes.
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 20a191f and ee9e806.

Files selected for processing (2)
  • docs/cli.mdx (2 hunks)
  • docs/self-hosted-server.mdx (2 hunks)
Additional context used
LanguageTool
docs/self-hosted-server.mdx

[uncategorized] ~46-~46: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ...erving RPC on 8080 ``` ### Monitoring Server exports metrics under the /metrics pa...


[uncategorized] ~59-~59: The determiner “these” seems more likely in this context. (AI_EN_LECTOR_REPLACEMENT_DETERMINER)
Context: ...hpull_received_changes_total 6 ... ``` This metrics can be collected from [Promethe...


[uncategorized] ~84-~84: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ...son) and customize it. For instance, if Prometheus data source name is my-prometheus, th...


[uncategorized] ~96-~96: You might be missing the article “a” here. (AI_EN_LECTOR_MISSING_DETERMINER_A)
Context: ...nts. This page describes how to set up sharded cluster. An example of the sharded clus...


[uncategorized] ~136-~136: Possible missing article found. (AI_HYDRA_LEO_MISSING_A)
Context: ...ntinuous Delivery via ArgoCD. Below is guide for deploying Yorkie cluster addons on ...

docs/cli.mdx

[uncategorized] ~120-~120: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ...sted server](/docs/self-hosted-server), default username and password are admin and `...


[style] ~145-~145: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing. (REP_WANT_TO_VB)
Context: ...Projects as needed, for example, if you want to manage [auth webhook](/docs/cli#auth-we...


[uncategorized] ~177-~177: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ... 15 minutes ``` _Server creates a default project automatical...


[uncategorized] ~177-~177: You might be missing the article “an” here. (AI_EN_LECTOR_MISSING_DETERMINER_AN)
Context: ...tically. If you create a Client without apiKey, the Client is created in the default P...


[uncategorized] ~224-~224: A determiner appears to be missing. Consider inserting it. (AI_EN_LECTOR_MISSING_DETERMINER)
Context: ...T09:27:06.0588974Z"} ``` ### Document Document is a data structure that can be synchro...


[formatting] ~269-~269: Consider inserting a comma here, unless the first half is essential to the meaning of the sentence. (WITH_THAT_COMMA)
Context: ...rol the output of the command. With the flags you can paginate the output. You can u...


[uncategorized] ~271-~271: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ...u can paginate the output. You can use --size flag to limit the number of docu...


[uncategorized] ~279-~279: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ... ... ... ``` You can use --previous-id flag to start after a spe...


[style] ~287-~287: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ... ... ... ... ``` You can use --forward flag to search forw...


[uncategorized] ~288-~288: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ... ... ... ``` You can use --forward flag to search forward or bac...


[typographical] ~381-~381: The word “otherwise” is an adverb that can’t be used like a conjunction, and therefore needs to be separated from the sentence. (THUS_SENTENCE)
Context: ... outside server, it handles the request normally, otherwise it sends the codes.Unauthenticated er...


[uncategorized] ~387-~387: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ...gn/garbage-collection.md). You can set client deactivate threshold of the project wit...


[uncategorized] ~387-~387: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ...eactivate threshold of the project with --client-deactivate-threshold flag. ``...

Gitleaks
docs/cli.mdx

185-185: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


185-185: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


192-192: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


220-220: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


220-220: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


391-391: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


391-391: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)

Additional comments not posted (3)
docs/self-hosted-server.mdx (1)

21-23: Updated backend IDs and service ports reflect the new configurations correctly.

docs/cli.mdx (2)

103-107: Updated default ports for profiling and RPC are correctly documented.


130-130: The context subcommand output is accurately documented.

docs/self-hosted-server.mdx Show resolved Hide resolved
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

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between ee9e806 and 3b2b57e.

Files selected for processing (2)
  • docs/cli.mdx (2 hunks)
  • docs/self-hosted-server.mdx (5 hunks)
Additional context used
LanguageTool
docs/self-hosted-server.mdx

[uncategorized] ~46-~46: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ...erving RPC on 8080 ``` ### Monitoring Server exports metrics under the /metrics pa...


[uncategorized] ~62-~62: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ...grafana/) is the easiest way to monitor Server's metrics. First, download all manifes...


[uncategorized] ~96-~96: Possible missing article found. (AI_HYDRA_LEO_MISSING_A)
Context: ...nts. This page describes how to set up sharded cluster. An example of the sharded clus...


[uncategorized] ~122-~122: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ...eploy Yorkie cluster on Kubernetes with above components configured. Below are guide...


[uncategorized] ~136-~136: Possible missing article found. (AI_HYDRA_LEO_MISSING_A)
Context: ...ntinuous Delivery via ArgoCD. Below is guide for deploying Yorkie cluster addons on ...

docs/cli.mdx

[style] ~145-~145: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing. (REP_WANT_TO_VB)
Context: ...Projects as needed, for example, if you want to manage [auth webhook](/docs/cli#auth-we...


[uncategorized] ~195-~195: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ..., // public_key of the project }); ``` Then Documents attached to the Client are is...


[formatting] ~269-~269: Consider inserting a comma here, unless the first half is essential to the meaning of the sentence. (WITH_THAT_COMMA)
Context: ...rol the output of the command. With the flags you can paginate the output. You can u...


[style] ~287-~287: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. (ENGLISH_WORD_REPEAT_BEGINNING_RULE)
Context: ... ... ... ... ``` You can use --forward flag to search forw...


[typographical] ~381-~381: The word “otherwise” is an adverb that can’t be used like a conjunction, and therefore needs to be separated from the sentence. (THUS_SENTENCE)
Context: ... outside server, it handles the request normally, otherwise it sends the codes.Unauthenticated er...


[uncategorized] ~394-~394: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ...s will help document GC by not counting deactivated client's document sequence.

Gitleaks
docs/cli.mdx

185-185: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


185-185: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


192-192: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


220-220: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


220-220: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


391-391: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)


391-391: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)

Additional comments not posted (5)
docs/self-hosted-server.mdx (3)

21-23: LGTM! The updated ports for RPC and profiling are correctly documented.


40-42: This correction aligns the RPC documentation with the port changes. Good catch!


51-51: Ensure the profiling port matches the new configuration throughout all examples.

Verification successful

Ensure the profiling port matches the new configuration throughout all examples. The port 8081 is consistently used across the documentation.

  • docs/self-hosted-server.mdx
  • docs/cli.mdx
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the consistency of the profiling port usage.

# Test: Search for profiling port mentions. Expect: Only occurrences of the new port `8081`.
rg --type mdx $'8081' docs/

Length of output: 54



Script:

#!/bin/bash
# Description: Verify the consistency of the profiling port usage.

# Test: Search for profiling port mentions in .mdx files. Expect: Only occurrences of the new port `8081`.
rg '8081' --glob '*.mdx' docs/

Length of output: 302

docs/cli.mdx (2)

103-103: The updated default profiling port is correctly documented.


107-107: The updated default RPC port is correctly documented.

@hackerwins hackerwins merged commit 32ac729 into main Jun 20, 2024
2 checks passed
@hackerwins hackerwins deleted the fix-typo branch June 20, 2024 08:43
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