-
-
Notifications
You must be signed in to change notification settings - Fork 2
Refactored Type Weights Object to better handle lists and nesting when calculating query complexity #66
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
Refactored Type Weights Object to better handle lists and nesting when calculating query complexity #66
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
25a28b0
removed unessesary arguments from parseTypes
evanmcneely c2e8a64
updated function name pareOuery to parseQueryType
evanmcneely 8978a69
added functionality to calculate complexity of lists with variables
evanmcneely 341e2ae
added functionality to appropiatly multiply nested lists
evanmcneely a2ba5ef
testing new functionality. waiting for updated tests
evanmcneely e18da20
merged changes from sh/test-suite-updates and fixed confilcts
evanmcneely f7cd3e2
refactored the complexity analysis to handle nesting properly. Not pa…
evanmcneely d036acb
Merge branch 'dev' of https://github.com/oslabs-beta/GraphQL-Gate int…
evanmcneely cb0bc66
test with one level of nesting is passing
evanmcneely 34d834d
activated all the tests that need to pass
evanmcneely 266ccea
updated the way nested queries are adding or subtracting values to pa…
evanmcneely 31bcb99
started to refactor type weights object
evanmcneely cd7f6c2
refactored typeWeightObject tests to have refernces to their types
evanmcneely 69d1cc6
making progress on the refactoring of buildTypeWeights. a few more ty…
evanmcneely a5e51c3
got all the tests working and refactoring the code to be more dry
evanmcneely 551f2ae
refactored the typeWeightsObject to include reference to the resolved…
evanmcneely 2e451f9
refactored complexity tests to work with new typeWeightsObject and pa…
evanmcneely 956a7c3
refactored the typeComplexity field node function to be more readable
evanmcneely 908941b
refactored buildTypeWeights parseObjectFields to be mroe readable
evanmcneely de07e93
refactored lists returning scalar values to only compound if the scal…
evanmcneely 69e31f5
added a few more comments to buildTypeWeights
evanmcneely 367a05f
Refactored the weightFunction calculating list weight to take in the …
evanmcneely 31c1144
small edits after reviewing typeComplexity tests
evanmcneely 66783a7
small edits after reviewing buildTypeWeights tests
evanmcneely 742687f
weightFunction woring with default arguments in the schema
evanmcneely 25e4cde
added one comment to the weightFunction
evanmcneely a68cfc5
adde a switch block to the parseObject fields function to initialize …
evanmcneely 7610b56
changed the check for scalar lists to use isScalarType and confirmed …
evanmcneely 88cbef8
removed the parseQueryType function and letting parseTypes do that work
evanmcneely 2b34b36
made some notes about what types/edge-cases could be falling through …
evanmcneely 83f4cee
callapsed a query in test suite
evanmcneely 1bf84eb
expanded the tests to include edgecases for custom object and scalar …
evanmcneely 572948e
set the name of the node to lowercase when assigning it to argument p…
evanmcneely 4c36575
Revert "set the name of the node to lowercase when assigning it to ar…
evanmcneely 4602833
discovered bug that calculated query complxity wrong when object weig…
evanmcneely e984e15
Merge branch 'dev' into em/lists-variables-nesting-refactoring
evanmcneely 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
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
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.
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.