[BUDI-7559] Postgres Update Row action step - incorrectly triggers required field validation #11887
Open
1 task done
Labels
bb-automations
Budibase Automations related work
bug
Something isn't working
env - production
Bug found in production
firestorm
Data/Infra/Revenue Team
Medium priority
Created by Linear-GitHub Sync
warn
A high priority bug needs looked at
Checklist
Hosting
Describe the bug
When using the Update Row action step in automations, required field validation is incorrectly triggered.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
An Update Row action step in automations should not trigger validation for a required field if that field is left untouched.
Screenshots
![Screenshot 2023-09-26 at 09 44 27](https://private-user-images.githubusercontent.com/101575380/270594336-c7bc80e4-52c4-4958-a4ae-9824aaa7764b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTUwNDksIm5iZiI6MTczOTI5NDc0OSwicGF0aCI6Ii8xMDE1NzUzODAvMjcwNTk0MzM2LWM3YmM4MGU0LTUyYzQtNDk1OC1hNGFlLTk4MjRhYWE3NzY0Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQxNzI1NDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MDFjOGUwN2M3NzJiMjlkMGMzNWY4NTU1NzExNmNiYmJmYTE5ODY3NWQ4ODg5YjRkZDBjNzc4OTc1ZGRhNjRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.hCVOCOiRPgGUdGR-LhfYFDLaHe9rDxd7FlLQChsVBtY)
Field is empty in the automation step, and should be ignored
Additional context
Having a quick look at the code, it appears that the update row step may need to pass in the allowEmpty flag.
The text was updated successfully, but these errors were encountered: