-
Notifications
You must be signed in to change notification settings - Fork 252
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
query { t2 { t2 { n } } } | ||
query { t2_ls { t2 } } | ||
query { t3 { t3 { n } } } | ||
query { t3_ls { t3 { n } } } |
There was a problem hiding this comment.
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 } } |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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 } } |
There was a problem hiding this comment.
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
Action required: PR inactive for 5 days. |
@link(type: Config, src: "nested/a.graphql") | ||
@link(type: Config, src: "nested/b.graphql") | ||
@link(type: Config, src: "nested/c.graphql") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are those files?
There was a problem hiding this comment.
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
Action required: PR inactive for 5 days. |
Summary:
Briefly describe the changes made in this PR.
Issue Reference(s):
Fixes #2892, #3008
/claim #2892
Build & Testing:
cargo test
successfully../lint.sh --mode=fix
to fix all linting issues raised by./lint.sh --mode=check
.Checklist:
<type>(<optional scope>): <title>