You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stored Procedure support for new Execute operation - REST and GraphQL (#1107)
* prelim changes.
* Updating operation/action handling in validation and ensuring SP's are only allowed to define execute. Also, GraphQL field generation properly prefixes execute
* Proper operation resolution and execute field naming for SP's
* Updates for adding Operation configuraiton for StoredProcedure GraphQL entity settings.
* updated processing.
* Updated Authorization and REST processing of EXECUTE for SPs.
* Revisions and helper methods, and method comments added.
* Add tests.
* Added more comments.
* Added more GraphQL tests and added more comments referencing GraphQL specification to note different behavior between QueryBuilder and MutationBuilder
* Fixed spacing and usings.
* update reference configuration for stored procedures.
* remove whitespace. and fix broken query generation logic.
* updated tests.
* Fix permissions operations to be execute for stored procedure entities created via CLI
* Updated CLI handling of execute operation.
* Fix CLI tests to be compatible with Execute operation for stored procedures.
* fix permissions on mssqlcommands script.
* Updated tests and Configuration handling.
* Addressing PR feedback.
* fix formatting
* fixed test.
* CLI - Execute action for stored procedures (#1129)
* adds CLI options --rest.methods, --graph.operations
* Adds options --rest.methods, --graphql.operation
* adds execute as a valid operation
* changes required in add command
* changes for add command
* skipping update command test
* adding unit tests for add command
* adding tests, schema changes
* few modifications, more tests
* adds method summary
* changes to method summary
* improves helptext for both the options
* Apply suggestions from code review
applied from Ani's suggestions.
Co-authored-by: Aniruddh Munde <[email protected]>
* Addressed PR feedback.
* Removing instances where "operation" appeared in non-stored procedure entity configuration JSON as null.
* Add verbose config settings for GraphQL in order to not have operation in non-sp entity types.
---------
Co-authored-by: Sean Leonard <[email protected]>
Co-authored-by: Aniruddh Munde <[email protected]>
* updates for compatibility
* Addressing PR feedback.
* refining logic.
* added code comments.
* Updated spacing.
* Execute Action - Update Command (#1139)
* changes to creation of rest and graphql objects in CLI
* adds rest.methods and graphql.operation options to update command
* adds de-serialization to more places
* fix formatting
* using singular,plural names from config
* chaning graphql operation of GetBooks to query
* adding rest method to rest api test helper functions
* Adding summary for methods
* adding more tests for sp rest, graphql options
* adding more tests
* fix formatting
* fix formatting
* fixing typo
* renaming variables
* adding tests for update command
* updating tests, removing debug print statements
* fix formatting
* adding dab commands needed for tests
* Ignoring breaking tests
* updating dab command
* updated from Feedback
* Remove stored procedure entities from sql reference json schema since not all SQL databases are supported for those entities. Added to MSSQL json schema reference.
* REST json key `method` to `methods`
* Clean up nits and add comments to methods without descriptions.
* added comments
* added Sales table back to reference.
* remove changed file.
* more concise switch + code comments.
* more code comments, renames for clarification and removal of empty lines.
* remove using.
* addressing nits
* fixing deserialization of graphql operation, removing ignore in querybuilder mutationbuilder tests
* fixing deserialization test
* fix formatting
* updating rest methods for GetBook, GetBooks
* Including REST find tests for SPs
* adding rest methods to find api tests
* enabling source type conversion
* fixing formatting
* updating logic for update rest,grapql options
* remove rest command from cosmos db commands
* fix return type from 403 to 405 to match HTTP spec and fix type casting.
* resolve nits in PR feedback.
* Address feedback from PR
* address feedback for renaming GetGraphQLType() to GetGraphQLEnabledOrPath()
* CLI resolve operations for permission based on SourceType, special handling for StoredProcedure
* fix empty code
* additional check for stored proc
* Fix flip flopped valid ops
* Update return types and remove unnecessary method.
* update valid RestMethod calculation.
* Additional Stored Procedure Check.
* Remove dupe code and address feedback. removed unneeded logging.
* nit: remove ending tabs from line 243:249
* Extra line
* update check.
* address comment.
* adding method summary, modifying a check
---------
Co-authored-by: Shyam Sundar J <[email protected]>
Co-authored-by: Aniruddh Munde <[email protected]>
0 commit comments