-
Notifications
You must be signed in to change notification settings - Fork 347
Integrate Gql auto schema generation with auto query generation #405
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
Aniruddh25
merged 213 commits into
main
from
dev/anmunde/graphql-schema-generation-integration
May 18, 2022
Merged
Changes from all commits
Commits
Show all changes
213 commits
Select commit
Hold shift + click to select a range
44f5028
quick go at generating a schema from the provided types
aaronpowell a1dbc7c
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell f32a358
moving the schema builder out to a new project
aaronpowell f71a972
following the naming conventions
aaronpowell cf5bfb5
starting tests for query builder
aaronpowell 698356c
fixing some formatting issues
aaronpowell 3f80fa9
getting the docker build working again
aaronpowell 2d57039
more whitespace fixes
aaronpowell 8c872a5
whitespace yet again
aaronpowell f852aa1
started some mutation tests
aaronpowell 05e14b3
initial pass at filter input generation
aaronpowell dabbfc5
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell 581018c
whitespace corrections
aaronpowell 060daf2
missing auth from builder
aaronpowell 8f4030b
Merge remote-tracking branch 'origin/main' into dev/aaronpowell/graph…
aaronpowell c731874
removing a try/catch from earlier testing
aaronpowell 4a05366
labeling nulls to make their usage obvious and another test
aaronpowell 9613e44
minor whitespace issue
aaronpowell d2bcf89
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell 87c5ace
adding a method to handle query naming conventions
aaronpowell 8a5ee30
Merge branch 'dev/aaronpowell/graphql-schema-generation' of https://g…
aaronpowell 81d7e85
Getting the CosmosDB query tests working with the newly generated gra…
aaronpowell 3d14122
formatting
aaronpowell 3b9a14c
fixing query builder tests
aaronpowell 0707385
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell a500c69
Starting work on SQL tests against the generated GraphQL queries
aaronpowell c09fa70
adding AND and OR support to the builder
aaronpowell 61c6663
adding the delete mutation builder and tests
aaronpowell c9c2053
Update mutation builder implemented
aaronpowell aac8f62
Merge branch 'main' of https://github.com/Azure/hawaii-gql into dev/a…
aaronpowell da0a478
fixing build error
aaronpowell f80cb4a
fixing query tests
aaronpowell ad1e0e9
overhaul of mutation tests to use input types and the GraphQL request…
aaronpowell d20f707
having branches depending on what kind of DB engine we're generating for
aaronpowell bb19fca
Using HotChocolate's built-in query parser
aaronpowell 1e676e4
Merge branch 'aaronpowell/graphql-parsing-improvements' into dev/aaro…
aaronpowell d0350bd
handling GraphQL input types for the cosmosdb mutation queries
aaronpowell b3c88d4
starting to fix the mssql query tests with input types
aaronpowell 7e9e2be
proper structure of query
aaronpowell 85aadde
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell 9af9113
fixing query structure for some mysql and postgresql tests
aaronpowell 07f40d5
fixing compile error
aaronpowell 0703bab
Avoiding adding model types to create/update Input type that's generated
aaronpowell 8a25fdb
Changing SQL insert to handle input parameter rather than inline fiel…
aaronpowell d869918
Adding a test for insert with variables
aaronpowell f056395
updating tests on other sql forms
aaronpowell a23cf8c
Adding support for input args on update mutations
aaronpowell 4905bcd
forgot to include the JSON config
aaronpowell c1b31e2
updating tests across all sql engines
aaronpowell 361656d
removing unneeded using
aaronpowell a813b29
bit of improvement in the config checking using consts rather than ma…
aaronpowell 8120add
formatting fix
aaronpowell 740fc16
supporting when you don't have the item field in the params
aaronpowell 67c327b
fixing pagination tests
aaronpowell cd49857
cleaning up the query tests a bit
aaronpowell 823340b
Merge remote-tracking branch 'origin/main' into dev/aaronpowell/graph…
aaronpowell 454757a
reverting name of continuation token to endCursor, which matches more…
aaronpowell 854b761
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell 006bff8
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell 8a35249
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell d9e2070
Fixing compiler error from bad merge
aaronpowell 3b7c79a
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell c3b1e4c
starting to incorporate the new schema config in the GraphQL object b…
aaronpowell 77d6d08
Code cleanup
aaronpowell 43bca3b
small whitespace change
aaronpowell bd3fe75
trying to fix formatting still
aaronpowell 3ad3a31
adding comment to why tests are diabled
aaronpowell 1380816
Trying to force line endings
aaronpowell 54e827b
un-breaking the line endings
aaronpowell 4ec3391
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell 1e1a31c
Merge branch 'dev/aaronpowell/graphql-object-builder' into merge-sql-…
aaronpowell ee77c0e
Fix formatting
Aniruddh25 97020a8
Fixing broken test from bad copy/paste
aaronpowell 19cf1d8
Merge branch 'dev/aaronpowell/graphql-object-builder' into merge-sql-…
aaronpowell 572864e
incorporating the SQL object builder into the GraphQL schema pipeline
aaronpowell dbf8378
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell 2c51a7a
working on integration of runtime config with schema builder
aaronpowell 9c939c9
rollback of the endCursor to after as field name
aaronpowell e0e9814
WIP
aaronpowell b6e4437
Block access to Post on Configuration controller if runtime is alread…
Mathos1432 0b2fbc6
Create `RuntimeConfigProvider` to consume `runtime-config.json` and r…
Aniruddh25 3f5e775
handling when someone disables a relationship in the runtime config
aaronpowell a2f5fe8
making the code clearer
aaronpowell de226d0
Fixing test name
aaronpowell b4d7054
Using config entity to get the naming conventions with overrides
aaronpowell 8902c87
Adding pluralization rules using Humanizer plus tests
aaronpowell 2b2f31f
changing how we identify relationships for a foreign key
aaronpowell c559261
Fixing compile errors across the GraphQL type builder
aaronpowell 9b7a586
refactoring unit tests to work with runtime config
aaronpowell 5435c85
getting the CosmosDB tests working again
aaronpowell 0e8a007
WIP
aaronpowell dcd9fe5
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation
aaronpowell cbe89b5
Starting work on building full schema with object models
aaronpowell c436e0c
Building the GraphQL schema with inputs and connections
aaronpowell 18d19e6
disabling the schema builder in the engine
aaronpowell 26e6123
formatting fixes
aaronpowell ebcc612
restoring old GraphQL schema for tests
aaronpowell ec74eb1
Initialize the GraphQL schema fully
aaronpowell fc37082
reverting the tests to use the old schema structure
aaronpowell b62ff09
reverting more files
aaronpowell 5924a06
Ensure constant default value insertion through graphQL mutation; fix…
abhishekkumams 0c700de
added a .Name to the restvery to string so naming matches with reques…
aaronburtle f0b60fd
OrderBy Support for GQL ++ (#379)
gledis69 7bdb767
Patch #379 since the config was not valid (#391)
gledis69 6c3f5ea
Generating a full GraphQL schema from data models (#250)
aaronpowell 5872c5c
updating the cosmos tests to use the new schema
aaronpowell 5d6cae2
importing partially updated sql test
aaronpowell a7670a2
removing legacy schema generator
aaronpowell 4ed9b95
Merge branch 'main' into dev/aaronpowell/graphql-schema-generation-in…
aaronpowell c16cf18
not needed in DI anymore
aaronpowell fbd312b
Merge origin/main
Aniruddh25 1d2beb4
Fix bad merge
Aniruddh25 201e3fa
Remove sql-config.json altogether
Aniruddh25 a24728b
Comment the relationship subquery part
Aniruddh25 bb58faf
Fix formatting
Aniruddh25 eb1a99d
Fix comma typo
Aniruddh25 ca61b0d
Remove some unneeded validations
Aniruddh25 1e648bc
Resolver config file only for cosmos db
Aniruddh25 e2cfcaf
Remove dependency on GraphQLFileMetadataProvider for SQL
Aniruddh25 5ae3fd6
Remove need for graphql metadata provider when invoked for sql
Aniruddh25 2b403c4
No need of resolver config file
Aniruddh25 36a67f3
ResolverConfigFile is only a cosmos db option
Aniruddh25 166b2d3
Remove the unnecessary validations - since we generate the gql schema…
Aniruddh25 729595d
Fix resolver config
Aniruddh25 f7a3b42
Remove additional validator exceptions
Aniruddh25 8de904a
Fix typo
Aniruddh25 d836192
Remove the old config file validator
Aniruddh25 0385b7d
Fix formatting
Aniruddh25 c416fea
Add RuntimeConfigValidation test
Aniruddh25 fe55389
GraphqlFileMetadataProvider is nullable for GraphQLService
Aniruddh25 6233679
Fix publisher entity name
Aniruddh25 066c114
Handle relationships
Aniruddh25 912a5a6
Infer foreign key only if needed
Aniruddh25 91778a6
Fix SqlQueryStructure to add the correct predicates based on foreign …
Aniruddh25 18fb067
Testing Relationship querying
Aniruddh25 519931f
Fix formatting
Aniruddh25 f5b3da1
Case insensitive comparison so that Graphql entity names match
Aniruddh25 63fe979
Fix bugs
Aniruddh25 10fafe2
AddJoinPredicatesForSubQuery
Aniruddh25 24eb8e7
Move protected functions together
Aniruddh25 2305055
Adding isNull field to standard inputs
aaronpowell 6bb749a
Fix SchemaConverter tests
Aniruddh25 99b9d68
Fix GQLFilter tests
Aniruddh25 9a7e44c
Primary fields can be composite
Aniruddh25 dc70491
Fix additional mssql tests
Aniruddh25 f4ad5a4
Fix reading large JSON result bug on single item Execute
Aniruddh25 7182529
Fix tests
Aniruddh25 1817451
Fix pagination tests
Aniruddh25 2849c87
Fix pagination token argument and field name
Aniruddh25 0364eea
Fix GQL Mutations
Aniruddh25 89e0dbc
Fix UpdateMutation
Aniruddh25 000b50b
Fix target entityname
Aniruddh25 fe72afe
Fix formatting
Aniruddh25 24dcfad
Fix graphql paginated mutation and 1 more list query
Aniruddh25 c828a9d
Keep upper casing of environment file as of now
Aniruddh25 b8adb96
Merge with schema name support
Aniruddh25 b3dee0c
Fix test build errors
Aniruddh25 4ed3d19
Fix SchemaName build issues
Aniruddh25 7955de1
Fix formatting
Aniruddh25 9e5e0be
Remove schema name nullability
Aniruddh25 f40dbb8
Fix incorrect merge
Aniruddh25 48f5127
Fix entity names in GraphQL tests
Aniruddh25 acb9163
Fix runtime config relationships section
Aniruddh25 c29910f
Fix mutation schema generator tests for Cosmos
Aniruddh25 b288553
reset unecessary change
Aniruddh25 ad6b4a3
add new line
Aniruddh25 c7d5514
Fix how to obtain mutation operation name
Aniruddh25 cb2939f
Remove left over Exceptions folder
Aniruddh25 acb548c
fix Cosmos tests to conform to autogen schema
Aniruddh25 8179ba2
Fix Cosmos tests
Aniruddh25 81f812e
Add GraphQLMutationTestBase
Aniruddh25 855cd34
Fix formatting
Aniruddh25 ec04f76
Remove irrelevant query tests
Aniruddh25 049acb4
GraphqlMetadataProvider is required for cosmos
Aniruddh25 85b7790
Refactor Sql mutation tests
Aniruddh25 766d3c3
git hook Fix formatting
Aniruddh25 fc269b3
Fix PostgreSql mutation tests
Aniruddh25 41652b8
Remove unnecessary using
Aniruddh25 4e9b551
Separate out Pagination Token Argument and Field Name
Aniruddh25 b0c7aa0
Assert Total item count retrieved in paginated query without variables
Aniruddh25 47c6a74
Add GraphQLQueryTestBase
Aniruddh25 a7808b6
Remove unnecessary using
Aniruddh25 2b52779
Derive PostgreSqlGraphQLQuery from GraphQLQueryTestBase
Aniruddh25 bf8d398
Remove unnecessary using
Aniruddh25 9c46c92
Merge remote-tracking branch 'origin/main' into dev/anmunde/graphql-s…
Aniruddh25 c91ebcb
Fix MySqlGraphQLQueryTests
Aniruddh25 d1e631f
Fix formatting
Aniruddh25 e419b67
Fix mysql config
Aniruddh25 15e874b
Fix the default config
Aniruddh25 10bdce6
Fix PostgreSql tests
Aniruddh25 2b289d3
Add QuoteIdentifier to interface and fix mysql foreign key query
Aniruddh25 95fae9a
Fix formatting
Aniruddh25 968d72d
Fix MySqlMutation test
Aniruddh25 7dcd01f
Fix stack overflow in test due to calling itself
Aniruddh25 c507dc7
Fix OneToOneJoin query for MySql
Aniruddh25 4d83e08
Fix the field name for website placement
Aniruddh25 6a8f465
Fix column name occurrences
Aniruddh25 6eaf5ed
Fix more field names
Aniruddh25 b2a9a4d
Update DataGateway.Service.GraphQLBuilder/Mutations/DeleteMutationBui…
Aniruddh25 708c743
Update DataGateway.Service.GraphQLBuilder/Mutations/MutationBuilder.cs
Aniruddh25 53ca241
Use private sets
Aniruddh25 f4f6bc9
Merge branch 'dev/anmunde/graphql-schema-generation-integration' of h…
Aniruddh25 ef947fb
Fix formatting
Aniruddh25 91c2ff5
Removed old code and added Datagateway exception
Aniruddh25 0ef523a
Fix Enum to string
Aniruddh25 4c9817f
IgnoreCase while determining MutationOperation
Aniruddh25 bc1cb66
Return a single JSON object for OnetoOneJoinQuery
Aniruddh25 ac50398
Add comments
Aniruddh25 5db5505
Add more comments. to functions and use DataGatewayException
Aniruddh25 727170d
Default primary key name const
Aniruddh25 1ac4244
Fix more comments
Aniruddh25 8351b15
Fix more review comments
Aniruddh25 9c53243
Merge remote-tracking branch 'origin/main' into dev/anmunde/graphql-s…
Aniruddh25 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
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
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.