-
Notifications
You must be signed in to change notification settings - Fork 279
Multiple Create - Database Query Generation and Selection Set Resolution #1994
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
severussundar
merged 275 commits into
main
from
dev/shyamsundarj/nested-inserts-db-query-generation
Apr 26, 2024
Merged
Changes from all commits
Commits
Show all changes
275 commits
Select commit
Hold shift + click to select a range
f4adfff
Merge branch 'dev/agarwalayush/AuthZForNestedInsertions' of https://g…
ayush3797 797db23
Moving role extraction logic to authz resolver
ayush3797 02fdfdc
Adding comments/examples
ayush3797 f225e10
updating comments
ayush3797 5dca094
using tryadd
ayush3797 887dd79
format fix
ayush3797 82b0c7f
Fixing failures due to tests
ayush3797 33fca99
fixing format
ayush3797 2073c48
Moving linking entity logic to sqlmetadataprovider
ayush3797 2c96a8b
fixing typo
ayush3797 fe05132
Moving linking entity logic to sqlmdpvdr
ayush3797 11bb3d4
fixing format
ayush3797 d6f6949
fixing failures
ayush3797 1c0ce60
Preventing serialisation/deserialization of islinkingentity property
ayush3797 cba8072
Fixing dwsql
ayush3797 162f2de
god please fix this formatting error
ayush3797 e9d8b8e
fixing tests
ayush3797 c58f3ea
Refining logic to create linking objects
ayush3797 613f386
refining code
ayush3797 6757208
refactor schema converter for clear code
ayush3797 9e4b732
adding/removing comments
ayush3797 f133f1f
resolving merge conflicts
severussundar c53f4ce
nits
ayush3797 a07f567
adds sequential logic for query execution, adds logic for multiple in…
severussundar 87d8b2c
adds logic for resolving selection set
severussundar ff3e952
Merge with main
ayush3797 450da35
update branch
ayush3797 8b6e365
adds logic for selection set resolution
severussundar 3e4aae4
fix formatting
severussundar 076d0b2
removes unused model class
severussundar 7a503d6
Addressing review
ayush3797 27a45c1
addressing review
ayush3797 baa0bb8
adding param name
ayush3797 f5237fe
Logic to find names of src/target entities from linking entity name
ayush3797 e963d40
update comment
ayush3797 80a7e79
addressing comments
ayush3797 143624a
updates HC input parsing logic
severussundar ea99a9c
fixes complex policy scenario
severussundar 61ec896
adds descriptions to fields
severussundar af60e25
updating branch
ayush3797 2007b3e
updating branch
ayush3797 09055ab
fixing bug
ayush3797 9262b36
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 e850ead
Adding validation to disallow multiple relationships between same sou…
ayush3797 3b824d6
adding summary/reusing existing methods
ayush3797 29c2a1a
Initial progress
ayush3797 422630d
initial prgress
ayush3797 47def99
saving progress for fk directive
ayush3797 783464c
Logic to add FK directive for custom relationships
ayush3797 9cb61d6
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 d68d311
separating naming logic for mutations
ayush3797 68b780c
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 be7831f
making rel fields nullable
ayush3797 daeae37
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 4142fd9
Merge branch 'main' into dev/NestedMutations
severussundar a5f3654
adding tests
ayush3797 b63aed6
nit
ayush3797 8583106
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 5089f90
Adding test summaries
ayush3797 97e6878
refactoring test
ayush3797 d345a5f
updating comment
ayush3797 2e03f43
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 9625095
rearranging code
ayush3797 f4743de
updating branch
ayush3797 4c7cb74
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 fbd9001
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 ce0c49f
Merge branch 'dev/NestedMutations' into dev/agarwalayush/schemaGenera…
ayush3797 baa0956
starting tests
ayush3797 ce8cc98
Adding test
ayush3797 adcdeab
reverting exception throwing on multiple relationships between same e…
ayush3797 6453ed5
addressing review
ayush3797 c44dda9
addressing review
ayush3797 7820551
Merge branch 'dev/agarwalayush/schemaGenerationTests' into dev/agarwa…
ayush3797 6b2f055
reverting conn string change
ayush3797 a9bb393
addressing review
ayush3797 be28782
addressing review
ayush3797 60ae0af
adding comment
ayush3797 55912f4
adding comment
ayush3797 ee30cdb
Order helper class for nested insertions
ayush3797 ad0d0f7
resolving conflicts
ayush3797 6827c9f
Merge branch 'dev/agarwalayush/AuthZForNestedInsertions' into dev/aga…
ayush3797 8e35c5b
Merge branch 'main' into dev/NestedMutations
severussundar effc380
addressing comments
ayush3797 adfcab9
updating mton function logic
ayush3797 9e377c3
refining logic
ayush3797 8db211c
addressing review
ayush3797 5ca4171
addressing review
ayush3797 a6ae8aa
Adding test asserting absence of ref field directive on non-ref columns
ayush3797 02c79bc
renaming set
ayush3797 7624675
formatting fix
ayush3797 559025f
formatting fix
ayush3797 78c8f7b
Merge branch 'dev/NestedMutations' into dev/agarwalayush/schemaGenera…
ayush3797 96c4a36
formatting fix
ayush3797 0c4fc3d
Refactoring cosmos create input generation into a different methof
ayush3797 fa9bcab
fixing test setup
ayush3797 e0a2b92
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 69cc7ce
Merge branch 'dev/agarwalayush/AuthZForNestedInsertions' into dev/aga…
ayush3797 207d114
Addressing review
ayush3797 957058a
nit
ayush3797 328e8ee
Adding test class
ayush3797 c308d50
starting tests
ayush3797 694fead
adding test IP
ayush3797 2d2fc79
Adding unit tests for referencing entity determination based on metadata
ayush3797 449908f
Adding similar tests to Pg/MySql
ayush3797 8e269a9
Identifying more invalid cases
ayush3797 95ff1b1
nits
ayush3797 f008c24
addressing review/adding comments
ayush3797 fac35d3
adding example
ayush3797 5763a11
Addressing review
ayush3797 d94c265
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 7d95cab
fixing bug
ayush3797 35e895a
Adding test for determining order in custom relationships
ayush3797 9e441c7
Merge branch 'main' into dev/NestedMutations
severussundar 04fbfae
Merge branch 'main' into dev/NestedMutations
severussundar f7bc95d
Feature Flag for Nested Mutations: CLI changes (#1983)
severussundar db967d5
Merge branch 'main' into dev/NestedMutations
severussundar b34c9f1
Addressing review
ayush3797 cb7d185
removing stale logic code
ayush3797 6eea6b0
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 2ef2ac6
Merge branch 'dev/agarwalayush/AuthZForNestedInsertions' into dev/aga…
ayush3797 70ce608
Adding tests
ayush3797 cb67327
mering latest schema gen changes
severussundar fd3dfb9
merge latest authz changes
severussundar 428114f
merge order determination latest changes
severussundar 27c6a23
updating exception msgs
ayush3797 52f28bb
Updating tests
ayush3797 c9f1d7c
updating config
ayush3797 76b851b
updating mssql config generator
ayush3797 89522f0
Adding tests to pgsql
ayush3797 c3615d1
tests for mysql
ayush3797 b44463c
updating verfied config for mysql
ayush3797 58ae7c6
updating test category
ayush3797 de9d6ea
Adding tests
ayush3797 e622a7e
Adding tests
ayush3797 f9c30f6
Updating config
ayush3797 b1d5aca
Rename nested-mutations and nested-create to multiple-mutations and m…
severussundar ad40fb2
format
seantleonard 12acb29
Merge branch 'main' into dev/NestedMutations
ayush3797 09b8d98
Merge branch 'dev/NestedMutations' into dev/agarwalayush/schemaGenera…
ayush3797 32e6fe9
Merge branch 'dev/NestedMutations' of https://github.com/Azure/data-a…
ayush3797 75534f1
Merge branch 'dev/NestedMutations' into dev/agarwalayush/schemaGenera…
ayush3797 0ca28f1
updating branch
ayush3797 cecc1de
Removing duplicate entities
ayush3797 d0801b7
updating used entities
ayush3797 549f427
updating mysql entities
ayush3797 a104573
updating for pg
ayush3797 7b28340
updating for pg
ayush3797 3bf3ae0
merge latest changes from schema gen
severussundar 7d19860
Merge branch 'dev/agarwalayush/nestedInsertionOrderHelper' into dev/s…
severussundar 104248b
fixing failures
ayush3797 9d7441b
minor refactors
severussundar eb3238b
cleaning up test
ayush3797 658b22f
Fixing dwsql failure
ayush3797 b8872a7
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 0ad5561
formatting fix
ayush3797 e2f9418
Multiple-create: Schema generation (#1902)
ayush3797 e34cf14
Merge branch 'dev/NestedMutations' into dev/agarwalayush/schemaGenera…
ayush3797 be3c31b
Merge branch 'dev/agarwalayush/schemaGeneration' into dev/agarwalayus…
ayush3797 147043b
Moving failing negative unit tests to integration testss
ayush3797 a7d36a0
Merge branch 'dev/agarwalayush/AuthZForNestedInsertions' into dev/aga…
ayush3797 0a3b3aa
Formatting fix
ayush3797 7a6b6b1
Formatting fix
ayush3797 e777c8a
fixing test
ayush3797 033a82b
Merge branch 'main' into dev/NestedMutations
ayush3797 cd601a1
Merge branch 'dev/agarwalayush/AuthZForNestedInsertions' into dev/shy…
severussundar caeabf8
Merge branch 'dev/agarwalayush/nestedInsertionOrderHelper' into dev/s…
severussundar 9a8e805
Added more tests
ayush3797 0e9eb1e
updating config gen
ayush3797 f3efbf0
Merge branch 'dev/agarwalayush/AuthZForNestedInsertions' into dev/aga…
ayush3797 9233c41
Multiple-create: Authorization (#1943)
ayush3797 6451db8
Merge branch 'dev/NestedMutations' into dev/agarwalayush/nestedInsert…
ayush3797 f1b19ba
Removing duplicate roles
ayush3797 68839c9
update branch
ayush3797 fecfa62
Merge branch 'dev/agarwalayush/nestedInsertionOrderHelper' into dev/s…
severussundar 45d7a5f
pulling latest changes from related branches
severussundar 4246354
add debugger displaynames to objects in DatabaseObject.cs classes to …
seantleonard 9a90ca1
Enable or Disable Multiple Create operation based on feature flag val…
severussundar d08001c
merge latest changes from main
severussundar 75b06c0
adds logic to throw exp when source is null; got missed during merge …
severussundar 9a54f5d
Merge branch 'main' into dev/NestedMutations
severussundar b866883
Addressing review
ayush3797 3c335e5
Merge branch 'dev/agarwalayush/nestedInsertionOrderHelper' into dev/s…
severussundar eba4778
merging latest changes from dev/NestedMutations
severussundar 0de3e1a
updating cmt
ayush3797 d311e09
updating branch
ayush3797 25a8bd8
adds logic to accomodate relationship only through config file
severussundar 0d9a55d
renames vars, adds comments
severussundar d03b3e7
Merge branch 'main' into dev/NestedMutations
severussundar 8a1e61a
Merge branch 'dev/agarwalayush/nestedInsertionOrderHelper' into dev/s…
severussundar c4edd45
merge latest changes from dev/NestedMutations
severussundar abf1259
enables multiple create feature for tests
severussundar 266f0f6
merging latest changes from main
severussundar 5301d46
enables new flow when multiple create enabled, adds new method for fo…
severussundar 95612b3
fix formatting
severussundar 60c7972
accounts for mappings
severussundar 7b0b4da
updates logic for optional fields, uses latest logic to prepare db co…
severussundar 5bc44e8
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
severussundar b780527
adds multiple create integration tests
severussundar 33c0bf8
merging latest changes from main
severussundar a749f7d
fixing failing tests as a side of effect of changing db schema
severussundar 11f13f0
resolving merge conflicts from main
severussundar a9c780d
addressing review comments
severussundar cab2a90
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
severussundar 569efa7
adds tests for relationship defined only through config file
severussundar 5dc7717
fixing tests, unignoring ignored tests
severussundar df709c5
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
severussundar 8fc49a7
fixing tests
severussundar 838af53
Merge branch 'dev/shyamsundarj/nested-inserts-db-query-generation' of…
severussundar d6de41c
Merge branch 'main' into dev/agarwalayush/nestedInsertionOrderHelper
ayush3797 a9a9e4a
addressing review comments
severussundar 5f92590
fix formatting
severussundar 914289c
update exception msg
severussundar c16978f
adds linking table validations
severussundar 6f4da03
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
severussundar bc96a95
adds helper method for fk population, adds helpful comments
severussundar 70cc854
renames ReferencingEntities/ReferencedEntities to ReferencingRelation…
severussundar df6aa6c
updates logic to populate fks, removes defensive code checks, removes…
severussundar 6baddd8
re-writes logic to remove higherLevelEntityPK from MultipleCreateStru…
severussundar 6af3f54
adds test for 1:1 relationship
severussundar d4b269c
updates method summary
severussundar c480536
Merge branch 'dev/agarwalayush/nestedInsertionOrderHelper' into dev/s…
severussundar eee77de
renames CurrentEntityPKs to CurrentEntityCreatedValues
severussundar c83fec9
incorporating review feedback
severussundar 62c9894
removes redundant check
severussundar 8fb1a62
moves query execution logic to helper function
severussundar ae13eab
adds logic to fetch valid fkdefinition
severussundar c47dd23
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
severussundar 89898a1
addressing review
severussundar 8e17717
re-uses TryGetFkDefinitions, uses TryGetExposedFieldToBackingFieldMap
severussundar 0787a9a
throws exp when pk value is null, re-organizes policy tests
severussundar 2b1f0c4
some cosmetic changes
severussundar c859289
adds nesting level to exception msg
severussundar 9020843
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
severussundar 0ba1578
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
severussundar cbc5f2e
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
seantleonard 24c69e9
incorporating review feedback
severussundar 1d8e519
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
severussundar e7184e3
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
severussundar d41e3ee
improves comments for multiple mutation tests
severussundar 4a40670
renames HigherLevelEntityName -> ParentEntityName
severussundar f40a43e
adds helpful comments about new sqlquerystructure ctor
severussundar 88b18c6
incorporates suggestions
severussundar 247fe00
renames methods, variables; updates comments
severussundar 5fae197
removes redundant param from PopulateCurrentAndLinkingEntityParams()
severussundar 4f360e2
Merge branch 'main' into dev/shyamsundarj/nested-inserts-db-query-gen…
severussundar cfd0e6d
unignoring test, adds more details in test summary
severussundar e13165a
uses contextual var names, renames function name
severussundar 1023343
adds comments, renames vars in parsing functions
severussundar cb86b90
maintains state in sqlquerystructure
severussundar b1f4adb
updates param summary
severussundar 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.