Skip to content

Commit

Permalink
Merge branch 'consent-ref-set-empty-fix' into 'master'
Browse files Browse the repository at this point in the history
State inconsistency issue fix for empty consent_refs

See merge request cidaas-management/terraform!127
  • Loading branch information
Tujit Bora committed Jan 3, 2025
2 parents c101ec0 + 35ce470 commit 4d67af0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

### 3.3.8

#### Bugfix

- Fixed issue where empty `consent_refs` array was being omitted from API requests causing state inconsistency

### 3.3.7

#### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion helpers/cidaas/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type AppModel struct {
AllowedMfa []string `json:"allowed_mfa,omitempty"`
CaptchaRef string `json:"captcha_ref,omitempty"`
CaptchaRefs []string `json:"captcha_refs,omitempty"`
ConsentRefs []string `json:"consent_refs,omitempty"`
ConsentRefs []string `json:"consent_refs"`
CommunicationMediumVerification string `json:"communication_medium_verification,omitempty"`
EmailVerificationRequired *bool `json:"email_verification_required,omitempty"`
MobileNumberVerificationRequired *bool `json:"mobile_number_verification_required,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions internal/resources/app_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ var resourceAppSchema = schema.Schema{
"consent_refs": schema.SetAttribute{
ElementType: types.StringType,
Optional: true,
Computed: true,
Default: setdefault.StaticValue(types.SetValueMust(types.StringType, []attr.Value{})),
},
"communication_medium_verification": schema.StringAttribute{
Optional: true,
Expand Down

0 comments on commit 4d67af0

Please sign in to comment.