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

refactor: drop check_identity from ExecutionSpec #1726

Closed
wants to merge 17 commits into from

Conversation

ssddOnTop
Copy link
Member

@ssddOnTop ssddOnTop commented Apr 14, 2024

Fixes: #1414
/claim 1414

Summary by CodeRabbit

  • New Features
    • Enhanced HTTP IO capabilities to support more robust network operations.
    • Added a call to enable_all() method before building the runtime to improve HTTP IO functionality.
  • Bug Fixes
    • Improved the document processing to exclude empty directives, ensuring cleaner and more accurate outputs.
  • Refactor
    • Optimized the print_directives function to filter out empty directive strings for a more streamlined output.
    • Introduced a new constant NONEMPTY_DIRECTIVES for checking non-empty directive values.
    • Updated the print_directive function to conditionally return an empty string based on NONEMPTY_DIRECTIVES.

Copy link
Contributor

coderabbitai bot commented Apr 14, 2024

Walkthrough

The recent updates aim to enhance functionality and optimize code efficiency. Changes in the codebase include refining the print_directives function in document.rs to remove empty strings and implement filtering for specific directive names. Additionally, in main.rs, an enable_all() method call is introduced to activate HTTP IO before creating the runtime, improving network operations setup.

Changes

File(s) Summary of Changes
src/document.rs Improved print_directives by filtering out empty strings and adding directive name filtering with NONEMPTY_DIRECTIVES.
src/main.rs Added enable_all() method call to enable HTTP IO before building the runtime.

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.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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.

@github-actions github-actions bot added the type: fix Iterations on existing features or infrastructure. label Apr 14, 2024
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: 1

src/document.rs Show resolved Hide resolved
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: 2

src/document.rs Outdated Show resolved Hide resolved
src/document.rs Outdated Show resolved Hide resolved
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

Attention: Patch coverage is 95.65217% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 86.58%. Comparing base (0f46776) to head (52e2b2f).
Report is 105 commits behind head on main.

❗ Current head 52e2b2f differs from pull request most recent head 8d6f143. Consider uploading reports for the commit 8d6f143 to get more accurate results

Files Patch % Lines
src/main.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1726      +/-   ##
==========================================
- Coverage   86.90%   86.58%   -0.33%     
==========================================
  Files         155      155              
  Lines       15568    15559       -9     
==========================================
- Hits        13530    13472      -58     
- Misses       2038     2087      +49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ssddOnTop ssddOnTop changed the title fix(print): avoid printing empty server and upstream directives refactor: drop check_identity from ExecutionSpec Apr 15, 2024
@ssddOnTop ssddOnTop changed the title refactor: drop check_identity from ExecutionSpec refactor: drop check_identity from ExecutionSpec Apr 15, 2024
@github-actions github-actions bot added the type: chore Routine tasks like conversions, reorganization, and maintenance work. label Apr 15, 2024
@tusharmath tusharmath added the ci: lint Automatically fix the linters issues and make a commit label Apr 15, 2024
@ssddOnTop ssddOnTop removed the ci: lint Automatically fix the linters issues and make a commit label Apr 15, 2024
@ssddOnTop ssddOnTop marked this pull request as draft April 15, 2024 08:44
@ssddOnTop ssddOnTop marked this pull request as ready for review April 16, 2024 08:46
Copy link
Contributor

@tusharmath tusharmath left a comment

Choose a reason for hiding this comment

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

We shouldn't require reordering of fields and type while performing the identity test. Modify print_schema to take in options from the user to make it configurable.

@tusharmath tusharmath marked this pull request as draft April 16, 2024 12:34
Copy link

Action required: PR inactive for 2 days.
Status update or closure in 5 days.

@github-actions github-actions bot added state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. and removed state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. labels Apr 18, 2024
Copy link

Action required: PR inactive for 2 days.
Status update or closure in 5 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Apr 20, 2024
@ssddOnTop ssddOnTop removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Apr 20, 2024
Copy link

Action required: PR inactive for 2 days.
Status update or closure in 5 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Apr 24, 2024
@ssddOnTop ssddOnTop removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Apr 25, 2024
Copy link

Action required: PR inactive for 2 days.
Status update or closure in 5 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Apr 27, 2024
Copy link

github-actions bot commented May 2, 2024

PR closed after 5 days of inactivity.

@github-actions github-actions bot closed this May 2, 2024
@ssddOnTop ssddOnTop reopened this May 2, 2024
@github-actions github-actions bot removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label May 2, 2024
@ssddOnTop
Copy link
Member Author

closing in favor of #1850

@ssddOnTop ssddOnTop closed this May 3, 2024
@ssddOnTop ssddOnTop deleted the fix/unwanted-directives branch May 3, 2024 16:20
@ssddOnTop ssddOnTop restored the fix/unwanted-directives branch May 12, 2024 10:12
@ssddOnTop ssddOnTop reopened this May 12, 2024
@ssddOnTop ssddOnTop closed this May 12, 2024
@ssddOnTop ssddOnTop deleted the fix/unwanted-directives branch May 12, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 Bounty claim type: chore Routine tasks like conversions, reorganization, and maintenance work. type: fix Iterations on existing features or infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants