Tags: twentyhq/twenty
Tags
Fix array field migration (#12874) Fixes #12726 ## Context Regression introduced in #12639 We now run raw queries for some migrations (column creations for example) and we created a `typeormBuildCreateColumnSql` util for that. The issue is that previously we were using typeorm methods which was using isArray from the input to create $type[] (text[], number[]) properly which was not done in the new `typeormBuildCreateColumnSql` util (so the type was text, number, etc...) Edit: actually this was correctly implemented for Enum types (multi select fields) but not Array type, I've updated the code accordingly
Fix array field migration (#12874) Fixes #12726 ## Context Regression introduced in #12639 We now run raw queries for some migrations (column creations for example) and we created a `typeormBuildCreateColumnSql` util for that. The issue is that previously we were using typeorm methods which was using isArray from the input to create $type[] (text[], number[]) properly which was not done in the new `typeormBuildCreateColumnSql` util (so the type was text, number, etc...) Edit: actually this was correctly implemented for Enum types (multi select fields) but not Array type, I've updated the code accordingly
Force readonly for deletedAt field (#12840) Fixes #12839 ## Context We now force readonly mode for deletedAt datepicker as permissions don't handle well this use case. The frontend should call softDelete endpoint in this case. For a user, they should select the record and click on the trash icon instead <img width="467" alt="Screenshot 2025-06-24 at 17 30 03" src="https://github.com/user-attachments/assets/0a8a0709-305b-440f-91c2-d5e3f23ca213" />
Add graphql queries error codes metrics (#12833) ## Context Added to the existing useGraphQLErrorHandlerHook yoga hook to increment metrics after all query executions based on their error codes. I originally wanted to create a new useMetrics hook but most of the error handling was done in useGraphQLErrorHandlerHook so we decided to keep it there for now. <img width="1310" alt="Screenshot 2025-06-24 at 15 58 26" src="https://github.com/user-attachments/assets/498d3754-851a-4051-a5c2-23ac8253aa6a" />
PreviousNext