Skip to content

UI changes for check constraint support#979

Merged
asthamohta merged 8 commits intoGoogleCloudPlatform:masterfrom
ollionorg:check_constraints_ui
Jan 7, 2025
Merged

UI changes for check constraint support#979
asthamohta merged 8 commits intoGoogleCloudPlatform:masterfrom
ollionorg:check_constraints_ui

Conversation

@taherkl
Copy link
Contributor

@taherkl taherkl commented Dec 30, 2024

Users can view details of check constraints in the Check Constraint tab.
Users will be able to add, delete, and edit check constraints.
Deletion of a column is restricted if it is used in a check constraint.
Validation is performed to prevent adding duplicate expressions or constraint names in check constraints.
Check constraints have been incorporated into the Spanner DDL query.
Integration with Verify Expression API

Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to README are included in PR

@asthamohta
Copy link
Contributor

Please checkout package json file

akashthawaitcc and others added 3 commits January 2, 2025 11:37
* remove the block which will not execute

* refactor the code
1. remove the unreachable code
2.  remvoe the node-sql-parser package

* refactor the code
1. rename the generateId method

---------

Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
@taherkl taherkl marked this pull request as ready for review January 3, 2025 04:49
@taherkl taherkl requested a review from a team as a code owner January 3, 2025 04:49
@taherkl taherkl requested review from Deep1998 and darshan-sj and removed request for a team January 3, 2025 04:49
@taherkl
Copy link
Contributor Author

taherkl commented Jan 6, 2025

Hello @asthamohta Can you please merge the PR if everything looks good?

akashthawaitcc and others added 2 commits January 7, 2025 15:51
* verification API and dump flow changes to support MySQL CHECK CONSTRAINTS (GoogleCloudPlatform#978) (#30)

* verification ap and dump flow changes

* fixed IT issue

* Check constraints verificartion api v2 (#24)

* handled function not found

* added unhandled error

* updated the error msg

---------



* fix IT issue

* comment addressed (#27)

* comment addressed
1. rename the functionNotFound
2. added condition to call verification api

* spell checked

---------



* refactor the DbDumpImpl struct (#28)

* refactor the DbDumpImpl struct

* remove the GenerateCheckConstrainstExprId method

---------



* fixed if condition

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>

* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984) (#35)

Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>
@asthamohta asthamohta merged commit 6892b44 into GoogleCloudPlatform:master Jan 7, 2025
5 checks passed
akashthawaitcc added a commit to ollionorg/spanner-migration-tool-fork that referenced this pull request Jan 8, 2025
* feat: default values final PR (GoogleCloudPlatform#976)

* changes

* changes

* changes

* changes

* verification API and dump flow changes to support MySQL CHECK CONSTRAINTS (GoogleCloudPlatform#978)

* verification ap and dump flow changes

* fixed IT issue

* Check constraints verificartion api v2 (#24)

* handled function not found

* added unhandled error

* updated the error msg

---------

Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

* fix IT issue

* comment addressed (#27)

* comment addressed
1. rename the functionNotFound
2. added condition to call verification api

* spell checked

---------

Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

* refactor the DbDumpImpl struct (#28)

* refactor the DbDumpImpl struct

* remove the GenerateCheckConstrainstExprId method

---------

Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

* fixed if condition

---------

Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>

* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984)

* UI changes for check constraint support (GoogleCloudPlatform#979)

* UI changes for check constraint support

* removed url changed for testing

* Check UI cmt (#29)

* remove the block which will not execute

* refactor the code
1. remove the unreachable code
2.  remvoe the node-sql-parser package

* refactor the code
1. rename the generateId method

---------

Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

* updated the dist file and package.lock file

* Develop (#36)

* verification API and dump flow changes to support MySQL CHECK CONSTRAINTS (GoogleCloudPlatform#978) (#30)

* verification ap and dump flow changes

* fixed IT issue

* Check constraints verificartion api v2 (#24)

* handled function not found

* added unhandled error

* updated the error msg

---------



* fix IT issue

* comment addressed (#27)

* comment addressed
1. rename the functionNotFound
2. added condition to call verification api

* spell checked

---------



* refactor the DbDumpImpl struct (#28)

* refactor the DbDumpImpl struct

* remove the GenerateCheckConstrainstExprId method

---------



* fixed if condition

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>

* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984) (#35)

Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Astha Mohta <35952883+asthamohta@users.noreply.github.com>
Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>
akashthawaitcc added a commit to ollionorg/spanner-migration-tool-fork that referenced this pull request Jan 8, 2025
* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984)

* UI changes for check constraint support (GoogleCloudPlatform#979)

* UI changes for check constraint support

* removed url changed for testing

* Check UI cmt (#29)

* remove the block which will not execute

* refactor the code
1. remove the unreachable code
2.  remvoe the node-sql-parser package

* refactor the code
1. rename the generateId method

---------

Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

* updated the dist file and package.lock file

* Develop (#36)

* verification API and dump flow changes to support MySQL CHECK CONSTRAINTS (GoogleCloudPlatform#978) (#30)

* verification ap and dump flow changes

* fixed IT issue

* Check constraints verificartion api v2 (#24)

* handled function not found

* added unhandled error

* updated the error msg

---------



* fix IT issue

* comment addressed (#27)

* comment addressed
1. rename the functionNotFound
2. added condition to call verification api

* spell checked

---------



* refactor the DbDumpImpl struct (#28)

* refactor the DbDumpImpl struct

* remove the GenerateCheckConstrainstExprId method

---------



* fixed if condition

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>

* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984) (#35)

Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Manit Gupta <manitgupta@google.com>
Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
akashthawaitcc added a commit to ollionorg/spanner-migration-tool-fork that referenced this pull request Jan 8, 2025
* verification API and dump flow changes to support MySQL CHECK CONSTRAINTS (GoogleCloudPlatform#978) (#30)

* verification ap and dump flow changes

* fixed IT issue

* Check constraints verificartion api v2 (#24)

* handled function not found

* added unhandled error

* updated the error msg

---------



* fix IT issue

* comment addressed (#27)

* comment addressed
1. rename the functionNotFound
2. added condition to call verification api

* spell checked

---------



* refactor the DbDumpImpl struct (#28)

* refactor the DbDumpImpl struct

* remove the GenerateCheckConstrainstExprId method

---------



* fixed if condition

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>

* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984) (#35)

Co-authored-by: Manit Gupta <manitgupta@google.com>

* sync upstream/master (#42)

* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984)

* UI changes for check constraint support (GoogleCloudPlatform#979)

* UI changes for check constraint support

* removed url changed for testing

* Check UI cmt (#29)

* remove the block which will not execute

* refactor the code
1. remove the unreachable code
2.  remvoe the node-sql-parser package

* refactor the code
1. rename the generateId method

---------

Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

* updated the dist file and package.lock file

* Develop (#36)

* verification API and dump flow changes to support MySQL CHECK CONSTRAINTS (GoogleCloudPlatform#978) (#30)

* verification ap and dump flow changes

* fixed IT issue

* Check constraints verificartion api v2 (#24)

* handled function not found

* added unhandled error

* updated the error msg

---------



* fix IT issue

* comment addressed (#27)

* comment addressed
1. rename the functionNotFound
2. added condition to call verification api

* spell checked

---------



* refactor the DbDumpImpl struct (#28)

* refactor the DbDumpImpl struct

* remove the GenerateCheckConstrainstExprId method

---------



* fixed if condition

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>

* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984) (#35)

Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Manit Gupta <manitgupta@google.com>
Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>
bharadwaj-aditya pushed a commit that referenced this pull request Jan 17, 2025
* verification API and dump flow changes to support MySQL CHECK CONSTRAINTS (#978) (#30)

* verification ap and dump flow changes

* fixed IT issue

* Check constraints verificartion api v2 (#24)

* handled function not found

* added unhandled error

* updated the error msg

---------



* fix IT issue

* comment addressed (#27)

* comment addressed
1. rename the functionNotFound
2. added condition to call verification api

* spell checked

---------



* refactor the DbDumpImpl struct (#28)

* refactor the DbDumpImpl struct

* remove the GenerateCheckConstrainstExprId method

---------



* fixed if condition

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>

* Replace ReadOnlyTransaction() with Single() (#984) (#35)

Co-authored-by: Manit Gupta <manitgupta@google.com>

* sync upstream/master (#42)

* Replace ReadOnlyTransaction() with Single() (#984)

* UI changes for check constraint support (#979)

* UI changes for check constraint support

* removed url changed for testing

* Check UI cmt (#29)

* remove the block which will not execute

* refactor the code
1. remove the unreachable code
2.  remvoe the node-sql-parser package

* refactor the code
1. rename the generateId method

---------

Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

* updated the dist file and package.lock file

* Develop (#36)

* verification API and dump flow changes to support MySQL CHECK CONSTRAINTS (#978) (#30)

* verification ap and dump flow changes

* fixed IT issue

* Check constraints verificartion api v2 (#24)

* handled function not found

* added unhandled error

* updated the error msg

---------



* fix IT issue

* comment addressed (#27)

* comment addressed
1. rename the functionNotFound
2. added condition to call verification api

* spell checked

---------



* refactor the DbDumpImpl struct (#28)

* refactor the DbDumpImpl struct

* remove the GenerateCheckConstrainstExprId method

---------



* fixed if condition

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>

* Replace ReadOnlyTransaction() with Single() (#984) (#35)

Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Manit Gupta <manitgupta@google.com>
Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

* added updated build file

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>
akashthawaitcc added a commit to ollionorg/spanner-migration-tool-fork that referenced this pull request Jan 23, 2025
* verification API and dump flow changes to support MySQL CHECK CONSTRAINTS (GoogleCloudPlatform#978) (#30)

* verification ap and dump flow changes

* fixed IT issue

* Check constraints verificartion api v2 (#24)

* handled function not found

* added unhandled error

* updated the error msg

---------



* fix IT issue

* comment addressed (#27)

* comment addressed
1. rename the functionNotFound
2. added condition to call verification api

* spell checked

---------



* refactor the DbDumpImpl struct (#28)

* refactor the DbDumpImpl struct

* remove the GenerateCheckConstrainstExprId method

---------



* fixed if condition

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>

* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984) (#35)

Co-authored-by: Manit Gupta <manitgupta@google.com>

* sync upstream/master (#42)

* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984)

* UI changes for check constraint support (GoogleCloudPlatform#979)

* UI changes for check constraint support

* removed url changed for testing

* Check UI cmt (#29)

* remove the block which will not execute

* refactor the code
1. remove the unreachable code
2.  remvoe the node-sql-parser package

* refactor the code
1. rename the generateId method

---------

Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

* updated the dist file and package.lock file

* Develop (#36)

* verification API and dump flow changes to support MySQL CHECK CONSTRAINTS (GoogleCloudPlatform#978) (#30)

* verification ap and dump flow changes

* fixed IT issue

* Check constraints verificartion api v2 (#24)

* handled function not found

* added unhandled error

* updated the error msg

---------



* fix IT issue

* comment addressed (#27)

* comment addressed
1. rename the functionNotFound
2. added condition to call verification api

* spell checked

---------



* refactor the DbDumpImpl struct (#28)

* refactor the DbDumpImpl struct

* remove the GenerateCheckConstrainstExprId method

---------



* fixed if condition

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>

* Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984) (#35)

Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>

---------

Co-authored-by: Manit Gupta <manitgupta@google.com>
Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <105432992+VivekY1098@users.noreply.github.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>

* updated the build and resolve the issue
1. verify api issue
2. drop column issue
3. updated the build

* updated the build

---------

Co-authored-by: Taher Lakdawala <78196491+taherkl@users.noreply.github.com>
Co-authored-by: Akash Thawait <aakash@ollion.com>
Co-authored-by: taherkl <taher.lakdawala@ollion.com>
Co-authored-by: Vivek Yadav <vivek.yadav@ollion.com>
Co-authored-by: Manit Gupta <manitgupta@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants