Allow the front end to add rows to a table with a PK column that has no dynamic default #2124
Labels
ready
Ready for implementation
type: enhancement
New feature or request
work: frontend
Related to frontend code in the mathesar_ui directory
Milestone
Current behavior
If the PK column in a table has a dynamic default, then the user is able to add new rows just fine.
If the PK column in a table has
null
as its default, then the user gets stuck in this state when attempting to add a new rowHere, the front end is performing client-side validation before sending an API request to create the record, and seeing that the
id
column defaults tonull
but has a not-NULL constraint (by virtue of having a primary key). The front end also prohibits editing PK cells. So the user is stuck without the ability to enter a new value into theid
cell.Desired behavior
The text was updated successfully, but these errors were encountered: