Skip to content

Welcome [email protected] #653

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

Merged
merged 3 commits into from
Jun 12, 2025
Merged

Welcome [email protected] #653

merged 3 commits into from
Jun 12, 2025

Conversation

DZakh
Copy link
Member

@DZakh DZakh commented Jun 12, 2025

Summary by CodeRabbit

  • Documentation
    • Updated loader function examples and error handling guidance for different Envio versions.
    • Clarified and reorganized multichain event ordering modes, emphasizing unordered mode as recommended.
    • Expanded explanations for retrieving, modifying, and deleting entities, introducing new retrieval methods and best practices.
    • Updated Docker Compose instructions to use a newer Hasura GraphQL engine version.
    • Revised benchmark results and summary text to reflect updated performance comparisons.

Copy link

vercel bot commented Jun 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
envio-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2025 11:44am

Copy link
Contributor

coderabbitai bot commented Jun 12, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Documentation was updated across several files to clarify entity retrieval and error handling methods, revise instructions for multichain event ordering, update Docker image versions, and refresh benchmark results with new timing data. The changes focus on improving guidance, accuracy, and clarity without altering any code or public interfaces.

Changes

File(s) Change Summary
docs/HyperIndex/Advanced/loaders.md Updated loader error handling guidance, clarified getOrThrow usage, and explained behavior across Envio versions.
docs/HyperIndex/Advanced/multichain-indexing.mdx Clarified and reorganized multichain event ordering modes, updated recommendations, and revised configuration instructions.
docs/HyperIndex/Guides/event-handlers.mdx Expanded and clarified entity retrieval/modification methods, added getOrThrow and getOrCreate documentation.
docs/HyperIndex/Hosted_Service/self-hosting.md Updated Hasura GraphQL engine Docker image version from v2.23.0 to v2.43.0.
docs/HyperIndex/benchmarks.md Revised benchmark timings, competitor results, and summary text to reflect updated performance data.

Poem

In docs we hop and clarify,
With loaders, modes, and benchmarks spry.
Entities fetched with care anew,
Docker tags and numbers too!
The rabbit’s pen makes guidance bright,
So every builder gets it right.
🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ebc0bf0 and b0d2c08.

📒 Files selected for processing (1)
  • docs/HyperIndex/benchmarks.md (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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.

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

🧹 Nitpick comments (2)
docs/HyperIndex/Advanced/loaders.md (1)

350-355: Refine grammar for clarity. Consider adding a comma after "behaviour" and rephrasing to improve readability:

"If you're using an earlier version of envio, the example above could crash unnecessarily. If you want to achieve the same behaviour, you should rather throw the error in the handler. But it's better to upgrade your indexer with pnpm install envio@latest!"

🧰 Tools
🪛 LanguageTool

[uncategorized] ~354-~354: Possible missing comma found.
Context: ...sarily. If you want to achieve the same behaviour you should rather throw the error in th...

(AI_HYDRA_LEO_MISSING_COMMA)

docs/HyperIndex/benchmarks.md (1)

29-29: Improve sentence punctuation. Add a comma after "calls" for readability:

"...the most realistic real-world indexing scenario LBTC Token with RPC calls, where HyperIndex..."

🧰 Tools
🪛 LanguageTool

[uncategorized] ~29-~29: A comma might be missing here.
Context: ... the most realistic real-world indexing scenario LBTC Token with RPC calls - where Hyper...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a4c5b38 and ebc0bf0.

📒 Files selected for processing (5)
  • docs/HyperIndex/Advanced/loaders.md (2 hunks)
  • docs/HyperIndex/Advanced/multichain-indexing.mdx (2 hunks)
  • docs/HyperIndex/Guides/event-handlers.mdx (1 hunks)
  • docs/HyperIndex/Hosted_Service/self-hosting.md (1 hunks)
  • docs/HyperIndex/benchmarks.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/HyperIndex/Advanced/loaders.md

[uncategorized] ~354-~354: Possible missing comma found.
Context: ...sarily. If you want to achieve the same behaviour you should rather throw the error in th...

(AI_HYDRA_LEO_MISSING_COMMA)

docs/HyperIndex/benchmarks.md

[uncategorized] ~29-~29: A comma might be missing here.
Context: ... the most realistic real-world indexing scenario LBTC Token with RPC calls - where Hyper...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)

🔇 Additional comments (12)
docs/HyperIndex/Hosted_Service/self-hosting.md (1)

58-60: Confirm compatibility of updated Hasura image version. The documentation now uses hasura/graphql-engine:v2.43.0—ensure this version supports all configured environment variables (e.g., HASURA_GRAPHQL_NO_OF_RETRIES) and that the existing healthcheck still works as expected.

docs/HyperIndex/Advanced/loaders.md (1)

336-339: Validate getOrThrow usage in loader example. The updated code replaces a manual existence check with context.Account.getOrThrow, aligning with [email protected] enhancements. Ensure that readers understand this change and that earlier-version users are directed to upgrade.

docs/HyperIndex/benchmarks.md (3)

22-23: Approve benchmark table updates for LBTC Token scenarios. The timing and advantage values for both "LBTC Token Transfers" and "LBTC Token with RPC calls" have been updated to reflect the latest results.


25-25: Approve Ethereum Transaction Gas Usage update. The new timing (1m 26s) and advantage (4.8x) correctly reflect the revised benchmark.


27-27: Approve Uniswap V2 Factory benchmark revision. The updated timings (8s vs 21m) and advantage (15x) are consistent with the new measurements.

docs/HyperIndex/Advanced/multichain-indexing.mdx (2)

87-94: Approve renamed "Unordered Multichain Mode" section. The removal of "(Default)" and the upfront recommendation clarify that unordered mode is the preferred pattern and will soon become the default.


106-114: Approve "How to Enable Unordered Mode" subsection. Providing an explicit config snippet guides users clearly on toggling unordered mode.

docs/HyperIndex/Guides/event-handlers.mdx (5)

233-239: Approve updated retrieval section. The addition of context.Entity.get usage and its explanation clarifies how handlers fetch entities.


241-251: Approve getOrThrow example. The new snippet demonstrates the error-throwing behavior accurately for [email protected].


254-262: Approve getOrCreate example. The documentation now includes a clear usage pattern for automatically creating entities with default values.


275-281: Approve set usage example. The context.Entity.set snippet concisely shows how to upsert entities in in-memory storage without await.


289-294: Approve deletion example. The context.Entity.deleteUnsafe snippet correctly illustrates unsafe deletion, accompanied by the appropriate warning.

Copy link
Contributor

@moose-code moose-code left a comment

Choose a reason for hiding this comment

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

Nice!

@DZakh DZakh merged commit 7447d6f into main Jun 12, 2025
1 of 3 checks passed
@DZakh DZakh deleted the 2.22.0 branch June 12, 2025 11: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.

2 participants