-
Notifications
You must be signed in to change notification settings - Fork 2.8k
console: handle generated and identity columns in console data section (close #4552, #4863) #4761
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
Conversation
|
Review app for commit b42cb77 deployed to Heroku: https://hge-ci-pull-4761.herokuapp.com |
|
Review app for commit 026ac56 deployed to Heroku: https://hge-ci-pull-4761.herokuapp.com |
|
Review app for commit 406f6c9 deployed to Heroku: https://hge-ci-pull-4761.herokuapp.com |
|
Review app for commit 33794c0 deployed to Heroku: https://hge-ci-pull-4761.herokuapp.com |
|
Review app for commit 3526e2b deployed to Heroku: https://hge-ci-pull-4761.herokuapp.com |
|
Deploy preview for hasura-docs ready! Built with commit 992b8a0 |
|
Review app for commit 77c8048 deployed to Heroku: https://hge-ci-pull-4761.herokuapp.com |
Co-authored-by: Tirumarai Selvan <tirumarai.selvan@gmail.com>
rikinsk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@beerose I am seeing an error while trying to edit a row of a table which has a generated always type column. generated by default seems to work.
Table def:
CREATE TABLE people_identity_always (
id integer primary key generated always as identity,
name text
);
|
Review app for commit 4ab7d65 deployed to Heroku: https://hge-ci-pull-4761.herokuapp.com |
… into generated-columns
|
Review app for commit a1e5cc9 deployed to Heroku: https://hge-ci-pull-4761.herokuapp.com |
|
@rikinsk yes, I missed slight difference in the behaviour between |
soorajshankar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good!
left a small review comment
Tested with PG v12 locally working as expected.
|
Review app for commit d0d6dd3 deployed to Heroku: https://hge-ci-pull-4761.herokuapp.com |
|
Review app for commit 55b7d16 deployed to Heroku: https://hge-ci-pull-4761.herokuapp.com |
|
Review app https://hge-ci-pull-4761.herokuapp.com is deleted |
Solves #4552, #4863
Description
If
is_generatedis set to true, editing a column is disabled in the console inEdit RowandInsert Rowsections.I also did a small refactor and moved code that was shared between
EditRowandInsertRowto the separate component.Changelog
CHANGELOG.mdis updated with user-facing content relevant to this PR.Affected components