Skip to content

Enabling management of default Dialogflow resources without terraform import: is_default_x fields#589

Merged
modular-magician merged 1 commit intoterraform-google-modules:masterfrom
modular-magician:downstream-pr-58d0735cfa46a3668a0c5af3181ce6443ab22d91
Nov 3, 2023
Merged

Enabling management of default Dialogflow resources without terraform import: is_default_x fields#589
modular-magician merged 1 commit intoterraform-google-modules:masterfrom
modular-magician:downstream-pr-58d0735cfa46a3668a0c5af3181ce6443ab22d91

Conversation

@modular-magician
Copy link
Copy Markdown
Collaborator

Fixes hashicorp/terraform-provider-google#16308, read that bug for more context 😅

An alternative version of GoogleCloudPlatform/magic-modules#9359 because designing a good API is hard and I want someone else to make that decision 😅.

Release Note Template for Downstream PRs (will be copied)

dialogflowcx: added `is_default_welcome_intent` and `is_default_negative_intent` fields to `google_dialogflow_cx_intent` resource to allow management of default intent resources via Terraform
dialogflowcx: added `is_default_start_flow` field to `google_dialogflow_cx_flow` resource to allow management of default flow resources via Terraform

Derived from GoogleCloudPlatform/magic-modules#9336

… import: `is_default_x` fields (#9336)

* Enabling management of Default Start Flow + Default Welcome Intent + Default Negative Intent, without terraform import

Fixes hashicorp/terraform-provider-google#16308

* Basic tests for default flow + intents

* Tests asserting resource IDs

* Making Flow + Intent import respect is_default_X; fixing description on examples

* Bah, making isFallback output-only might break users that'd imported the Default Negative Intent :(

* Update mmv1/templates/terraform/pre_create/dialogflowcx_set_location_skip_default_obj.go.erb

Co-authored-by: Sarah French <15078782+SarahFrench@users.noreply.github.com>

* Adding callout notes about multiple is_default_x resources

* More words around the pre-create + pre-delete code

* Adding more tests around Default Start Flow

* Adding more tests around Default Welcome Intent and Default Negative Intent

---------

Co-authored-by: Sarah French <15078782+SarahFrench@users.noreply.github.com>
[upstream:58d0735cfa46a3668a0c5af3181ce6443ab22d91]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit fd828c0 into terraform-google-modules:master Nov 3, 2023
@modular-magician modular-magician deleted the downstream-pr-58d0735cfa46a3668a0c5af3181ce6443ab22d91 branch November 18, 2024 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't easily update DialogflowCX "Default start flow" or "Default welcome intent"

1 participant