-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type change in custom type does not actually change the type in CT #40
Comments
This is no bug. According to the code, this is just not implemented. We only respect enum changes not type changes from X to Y. In your example, the actions are zero. terraform-provider-commercetools/commercetools/resource_type.go Lines 471 to 508 in 7ae634e
Besides that, it's important no note that in commercetools, custom field definitions(identified by its name) are "singletons". As soon as a field definition is used by more than one custom type it's not possible to change the type of the field without changing the name. Therefore in that scenario, it's always required to create a new field if we want to update the type. This could be tricky to check. WDYT? |
Commercetools doesn't support changing the type of a field. I think we now show an error in terraform that you need to delete the field and add it again. We need to check this |
Just checked; we are raising an error |
Changing a custom type value from f.e. Enum -> String says it succeeded but doesn't actually change it in CommerceTools (formatting here is borked...):
Before
After
TF output:
The text was updated successfully, but these errors were encountered: