Skip to content

Default behaviour for project.carts.delete_days_after_last_modification #630

@borisvankatwijk

Description

@borisvankatwijk

Update on CT side

This is the effect of a Commerce Tools update:
https://docs.commercetools.com/api/releases/2026-02-02-retention-based-deletion-for-carts-and-shopping-lists

Version information

  • terraform: 1.8.5
  • terraform provider: 1.14

Describe the bug

Whilst not updating terraform, we got the following error.

Error: Provider produced inconsistent result after apply

When applying changes to
module.commercetools-config.commercetools_project_settings.project,
provider "provider["registry.terraform.io/labd/commercetools"]" produced
an unexpected new value: .carts[0].delete_days_after_last_modification: was
null, but now cty.NumberIntVal(365250).

This is a bug in the provider, which should be reported in the provider's
own issue tracker.

To Reproduce

We believe that when you go from "default" (90), to a different version, the provider 'fails'.

  • Have a CT project with default setting for project.carts.delete_days_after_last_modification.
  • Terraform apply with the provider, without providing this parameter.
  • Then update it through the API on the CT side.
  • Re-apply terraform without change, should create this error.

Expected behavior

delete_days_after_last_modification to correctly fallback if 'null' is given (maybe assume default value?)

Docs

https://docs.commercetools.com/api/projects/project#cartsconfiguration

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions