Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
22.62k stars 1.56k forks source link

[BUDI-7568] One to Many relationship is incorrectly inverted #11904

Closed melohagan closed 1 year ago

melohagan commented 1 year ago

Checklist

Hosting

Describe the bug I'm getting the error "Null value not allowed for a column." when updating a Postgres table row. I don't know which column is the problem, and my table has a lot of rows so it's not clear which column is triggered the validation error.

Expected behavior The automations update row action step should tell you which column is triggered validation errors.

Screenshots Screenshot 2023-09-27 at 10 05 06

Which column ??

BUDI-7568

melohagan commented 1 year ago

Screenshot 2023-09-27 at 11 15 35

The automations were a red-herring. There is a bug with relationships being inverted. Above is a relationship defined as One client -> Many Audit

But in the data grid the relationship is incorrectly inverted. (This is fine in v2.10)

Screenshot 2023-09-27 at 11 16 59

And the Null value not allowed for a column error toast is thrown when attempting to save a client row via a form.