Improve table editor UI for arrays of foreign keys (they aren't supported) #11130
Unanswered
CrowhopTech
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Feature request
In the table editor UI, if I try to both mark a field as a foreign key and an array (not supported in Postgres), the UI will allow me to select both options but the create/edit request will fail as expected.
Is your feature request related to a problem? Please describe.
Not really; the request still fails as expected, this is more of a UI improvment to reduce questions/frustration.
Describe the solution you'd like
Ideally the UI should catch this case with a nice UI message like "arrays of foreign keys are not supported", or even better just not allow selecting both at the same time (hide the array option when a foreign key is selected, or hide the foreign key option when array is selected)
Describe alternatives you've considered
N/A
Additional context
UI with both foreign key and array selected

Error returned when I attempt to create/edit a table with this field

All reactions