This bug was fixed by not allowing the deletion of such fields. Let's support it!
Old:
_TypeORM is throwing an error due to the fact that we are asking the ORM to delete a column that does not exist. This is expected since composite fields are not simply 1:1 with the fieldMetadata but result in different columns. For example, an ADDRESS field will be mapped to multiple columns (xxx_street, xxxstate, ...).
Technical inputs
We should update the field_metadata service to handle composite fields.
We can use utils such as isCompositeFieldMetadataType and CompositeFieldsDefinitionFunction to get the correct column names.
Context
This bug was fixed by not allowing the deletion of such fields. Let's support it!
Old: _TypeORM is throwing an error due to the fact that we are asking the ORM to delete a column that does not exist. This is expected since composite fields are not simply 1:1 with the fieldMetadata but result in different columns. For example, an ADDRESS field will be mapped to multiple columns (xxx_street, xxxstate, ...).
Technical inputs
We should update the field_metadata service to handle composite fields. We can use utils such as isCompositeFieldMetadataType and CompositeFieldsDefinitionFunction to get the correct column names.