-
Notifications
You must be signed in to change notification settings - Fork 157
feat: compute static costs #1359
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
Changes from 12 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
8cbe5df
feat: compute static (estimated) cost
ysmolski b4d2404
simplify structures
ysmolski b84582a
remove leaveCost
ysmolski 41b4baa
start refactoring the code
ysmolski cb39b19
compute for all data sources
ysmolski 12033d0
push the cost through the stack
ysmolski cdb7f93
handle basic cost calculation and capture abstract types
ysmolski fb659af
support interfaces for 2 major cases
ysmolski a11d847
support listSize directive
ysmolski 763e84a
fix comments
ysmolski 6173a8e
add the slicingArguments test
ysmolski 6aec35d
leave comments before PR
ysmolski 90511e3
Merge branch 'master' into yury/eng-8635-engine-compute-static-cost
ysmolski bad5278
disable broken test
ysmolski cd10b23
handle slicingArguments correctly
ysmolski 5459657
fix nil deref
ysmolski 3b76d84
cleanup the code
ysmolski eca56d8
rename vars for readability
ysmolski 35ec983
add test and comments
ysmolski 7cd1814
fix edge cases
ysmolski 7ebcea7
fix top comment
ysmolski dccdd7c
build cost tree in the dedicated visitor
ysmolski 122d5a5
remove dead code
ysmolski daf54f0
unwrap ifs and add a comment
ysmolski edecf56
fix a comment
ysmolski 81f9caa
push to the stack anyway
ysmolski f795906
test nested lists
ysmolski 5245e73
add more fragment tests
ysmolski 13ab987
add tests for unions
ysmolski 64eb0bb
add more slicing tests
ysmolski ce0bfc0
Merge branch 'master' into yury/eng-8635-engine-compute-static-cost
ysmolski 9147363
prettify debug print
ysmolski 8b47cbb
test costs in federation
ysmolski 91da827
add comment for a test
ysmolski a171612
use static instead of total cost
ysmolski da65037
use default cost config when nothing supplied
ysmolski f9b9504
do not use globals to configure default weights
ysmolski 912d0da
make lint
ysmolski 9d91d70
floor the defaultListSize
ysmolski f6504e4
protect from nil
ysmolski 5591872
fix the data-race for calculator for multiple requests
ysmolski 3899422
Merge branch 'master' of github.com:wundergraph/graphql-go-tools into…
ysmolski 41087f0
make lint
ysmolski 513375c
fix typo
ysmolski 2db07ae
simplify execution part
ysmolski e885f66
clarify comment
ysmolski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.