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(2892): consider entity resolvers in n + 1 check #2978

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

meskill
Copy link
Contributor

@meskill meskill commented Oct 8, 2024

Summary:
Briefly describe the changes made in this PR.

Issue Reference(s):
Fixes #2892, #3008
/claim #2892

Build & Testing:

  • I ran cargo test successfully.
  • I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

  • I have added relevant unit & integration tests.
  • I have updated the documentation accordingly.
  • I have performed a self-review of my code.
  • PR follows the naming convention of <type>(<optional scope>): <title>

@github-actions github-actions bot added the type: fix Iterations on existing features or infrastructure. label Oct 8, 2024
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.28%. Comparing base (2c67ac5) to head (7bd5e65).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2978      +/-   ##
==========================================
+ Coverage   87.22%   87.28%   +0.06%     
==========================================
  Files         280      280              
  Lines       27425    27471      +46     
==========================================
+ Hits        23921    23978      +57     
+ Misses       3504     3493      -11     

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

Comment on lines +5 to +8
query { t2 { t2 { n } } }
query { t2_ls { t2 } }
query { t3 { t3 { n } } }
query { t3_ls { t3 { n } } }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

on previous version it was

query { t2 { t2 { n } } }
query { t2 { t2 { n } } }
query { t2_ls { t2 } }
query { t2 { t2 { n } } }

because of caching the whole paths

@@ -2,5 +2,4 @@
source: src/core/config/npo/tracker.rs
expression: actual
---
query { f1 { f1 { f2 } } }
query { f1 { f2 } }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

here one path is dropped, but it was basically the same path so if batching is added it'd resolve both branches. I don't think there is difference if we show both

} else {
let mut visited = visited.clone();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

visited has been cloned every time

@@ -2,5 +2,5 @@
source: src/core/config/npo/tracker.rs
expression: actual
---
query { f1 { f2 } }
query { f1 { f3 } }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just the order change, I'm not sure why it's inconsistent for different test cases

Copy link

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

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Oct 14, 2024
@github-actions github-actions bot removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Oct 14, 2024
Comment on lines 2 to 4
@link(type: Config, src: "nested/a.graphql")
@link(type: Config, src: "nested/b.graphql")
@link(type: Config, src: "nested/c.graphql")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where are those files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, those are unused links, I removed them.

I've tried first with external files, but the include_config doesn't resolve links so I decided just merge it manually for the test without links

Copy link

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

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Oct 28, 2024
@meskill meskill removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 Bounty claim type: fix Iterations on existing features or infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle entity resolvers in the n+1 checker
3 participants