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

Update docs for added examples - execution data/streaming #105

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

lealobanov
Copy link
Collaborator

@lealobanov lealobanov commented Oct 4, 2024

Description

Update docs to account for recently added examples for getting execution data and streaming via subscription endpoints.


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the standards mentioned here.
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

Summary by CodeRabbit

  • New Features

    • Added a new section for "Get Execution Data" in both Java and Kotlin examples, providing users with guidance on retrieving execution data by block ID.
    • Introduced a "Streaming Events and Execution Data" section in the Kotlin example, offering insights on using Access API subscription endpoints for streaming data.
  • Documentation

    • Enhanced README files for both Java and Kotlin examples to improve clarity and usability.

Copy link
Contributor

coderabbitai bot commented Oct 4, 2024

Walkthrough

The changes in this pull request involve updates to the README files for both Java and Kotlin examples. A new section titled "Get Execution Data" has been added to both README files, providing descriptions and links to code examples for retrieving execution data by block ID. Additionally, the Kotlin README includes a new section on "Streaming Events and Execution Data," which replaces outdated information regarding unsupported features. The overall structure of the documentation remains intact, with no deletions or modifications to existing content.

Changes

File Path Change Summary
java-example/README.md Added new entry "Get Execution Data" in "Examples summary" table with a link to the Java example.
kotlin-example/README.md Added "Get Execution Data" and "Streaming Events and Execution Data" sections in "Examples summary." Removed unsupported features related to streaming events.

Possibly related PRs

Suggested reviewers

  • franklywatson

🐰 In the meadow, changes bloom,
New examples chase away the gloom.
With data retrieval, swift and bright,
Our docs now shine, a guiding light!
From Java to Kotlin, all can see,
How to fetch data, hop with glee! 🌼


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.

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

github-actions bot commented Oct 4, 2024

Unit Test Results

  53 files  ±0    53 suites  ±0   24s ⏱️ ±0s
310 tests ±0  310 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 170bf2c. ± Comparison against base commit 170bf2c.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Oct 4, 2024

SDK Examples Unit Test Results

16 files  16 suites   2m 44s ⏱️
32 tests 31 ✔️ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit fda83e4.

Copy link

github-actions bot commented Oct 4, 2024

Common Integration Test Results

0 files  0 suites   0s ⏱️
0 tests 0 ✔️ 0 💤 0 ❌

Results for commit fda83e4.

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

🧹 Outside diff range and nitpick comments (3)
kotlin-example/README.md (3)

14-14: Adjust indentation for consistency.

The addition of the "Get execution data" subsection aligns well with the PR objectives. However, the indentation is inconsistent with other items in the list.

Please adjust the indentation to match other list items:

-    - [Get execution data](#get-execution-data)
+  - [Get execution data](#get-execution-data)
🧰 Tools
🪛 Markdownlint

14-14: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


24-24: Adjust indentation for consistency.

The addition of the "Streaming events and execution data" subsection aligns well with the PR objectives. However, the indentation is inconsistent with other items in the list.

Please adjust the indentation to match other list items:

-    - [Streaming events and execution data](#streaming-events-and-execution-data)
+  - [Streaming events and execution data](#streaming-events-and-execution-data)
🧰 Tools
🪛 Markdownlint

24-24: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


129-135: LGTM: New section for Streaming Events and Execution Data.

The addition of the "Streaming Events and Execution Data" section with details about using Access API subscription endpoints is informative and aligns well with the PR objectives. The bullet points provide a clear overview of the available streaming functionalities.

Consider adding a brief introductory sentence before the bullet points to provide context:

 [Utilizing the Access API subscription endpoints to stream event and execution data.](src/main/kotlin/org/onflow/examples/kotlin/streaming)

+This section demonstrates how to use the streaming functionality:
+
 - Streaming events.
 - Streaming events and reconnecting in the event of a failure.
 - Streaming execution data.
🧰 Tools
🪛 LanguageTool

[style] ~135-~135: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...connecting in the event of a failure. - Streaming execution data.

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between bdebe65 and fda83e4.

📒 Files selected for processing (2)
  • java-example/README.md (2 hunks)
  • kotlin-example/README.md (4 hunks)
🧰 Additional context used
🪛 LanguageTool
java-example/README.md

[style] ~69-~69: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ollectionAccessAPIConnector.java) #### Get Execution Data [Get execution data by ...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

kotlin-example/README.md

[style] ~70-~70: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...tCollectionAccessAPIConnector.kt) #### Get Execution Data [Get execution data by ...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~135-~135: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...connecting in the event of a failure. - Streaming execution data.

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

🪛 Markdownlint
kotlin-example/README.md

14-14: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)


24-24: Expected: 2; Actual: 4
Unordered list indentation

(MD007, ul-indent)

🔇 Additional comments (4)
java-example/README.md (2)

69-72: LGTM! New section added correctly.

The new "Get Execution Data" section is well-placed and formatted consistently with other entries in the "Examples summary" table. The link to the example file follows the established pattern, and the description is concise and clear.

Clarification needed on streaming feature.

The PR objectives mention updating docs for streaming, but this is not reflected in the added section. Could you clarify if streaming should be included in this update?

Consider updating the "Unsupported Features" section.

If streaming is now supported, the "Unsupported Features" section at the end of the file may need to be updated to reflect this change.

🧰 Tools
🪛 LanguageTool

[style] ~69-~69: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ollectionAccessAPIConnector.java) #### Get Execution Data [Get execution data by ...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


69-71: Ignore LanguageTool suggestion for word repetition.

The static analysis tool suggests avoiding the repetition of "Get" at the beginning of multiple sections. However, this repetition is intentional and consistent with the document's structure. Changing it would disrupt the established pattern and potentially confuse readers. Therefore, we should maintain the current format.

🧰 Tools
🪛 LanguageTool

[style] ~69-~69: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ollectionAccessAPIConnector.java) #### Get Execution Data [Get execution data by ...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

kotlin-example/README.md (2)

70-73: LGTM: New section for Get Execution Data.

The addition of the "Get Execution Data" section with a link to the corresponding Kotlin code example is clear and informative. This aligns well with the PR objectives of updating documentation for added examples related to execution data.

🧰 Tools
🪛 LanguageTool

[style] ~70-~70: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...tCollectionAccessAPIConnector.kt) #### Get Execution Data [Get execution data by ...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


Line range hint 1-135: Overall: Documentation updates align well with PR objectives.

The changes to the kotlin-example/README.md file successfully update the documentation to include new examples related to obtaining execution data and utilizing streaming through subscription endpoints. These additions enhance the clarity and usability of the documentation for users working with execution data and streaming features.

Key improvements:

  1. Added "Get Execution Data" section with a link to the corresponding Kotlin code example.
  2. Added "Streaming Events and Execution Data" section with details on using Access API subscription endpoints.
  3. Updated the "Examples summary" section to include the new functionalities.

These changes effectively address the PR objectives and provide valuable information for users of the Flow JVM SDK.

🧰 Tools
🪛 LanguageTool

[style] ~70-~70: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...tCollectionAccessAPIConnector.kt) #### Get Execution Data [Get execution data by ...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~74-~74: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ecutionDataAccessAPIConnector.kt) #### Get Network Parameters [Get the current ne...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

Copy link

github-actions bot commented Oct 4, 2024

Integration Test Results

  6 files  ±0    6 suites  ±0   2m 35s ⏱️ ±0s
30 tests ±0  30 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 170bf2c. ± Comparison against base commit 170bf2c.

♻️ This comment has been updated with latest results.

@lealobanov lealobanov merged commit 170bf2c into main Oct 8, 2024
4 of 6 checks passed
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