Skip to content
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

Add logging_settings and speech_settings to dialogflow_cx_agent/flow #11940

Conversation

averbuks
Copy link
Member

@averbuks averbuks commented Oct 8, 2024

Add advanced_settings.logging_settings and advanced_settings.speech_settings to dialogflowcx_agent and dialogflowcx_flow resources

Fixes hashicorp/terraform-provider-google#15980

-->

Release Note Template for Downstream PRs (will be copied)

dialogflowcx: added `advanced_settings.logging_settings` and `advanced_settings.speech_settings` to `google_dialogflow_cx_agent` and `google_dialogflow_cx_flow`

Copy link

github-actions bot commented Oct 8, 2024

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@github-actions github-actions bot requested a review from slevenick October 8, 2024 11:41
@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 8 files changed, 720 insertions(+), 18 deletions(-))
google-beta provider: Diff ( 8 files changed, 720 insertions(+), 18 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 244 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 32 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 29
Passed tests: 25
Skipped tests: 0
Affected tests: 4

Click here to see the affected service packages
  • dialogflowcx

Action taken

Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccDialogflowCXAgent_dialogflowcxAgentFullExample
  • TestAccDialogflowCXAgent_update
  • TestAccDialogflowCXFlow_dialogflowcxFlowFullExample
  • TestAccDialogflowCXFlow_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDialogflowCXAgent_dialogflowcxAgentFullExample[Debug log]
TestAccDialogflowCXFlow_dialogflowcxFlowFullExample[Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🔴 Tests failed during RECORDING mode:
TestAccDialogflowCXAgent_update[Error message] [Debug log]
TestAccDialogflowCXFlow_update[Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 8 files changed, 720 insertions(+), 18 deletions(-))
google-beta provider: Diff ( 8 files changed, 720 insertions(+), 18 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 244 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 32 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 29
Passed tests: 27
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • dialogflowcx

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccDialogflowCXAgent_update
  • TestAccDialogflowCXFlow_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🔴 Tests failed during RECORDING mode:
TestAccDialogflowCXAgent_update[Error message] [Debug log]
TestAccDialogflowCXFlow_update[Error message] [Debug log]

🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR.

View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

google provider: Diff ( 8 files changed, 717 insertions(+), 27 deletions(-))
google-beta provider: Diff ( 8 files changed, 717 insertions(+), 27 deletions(-))
terraform-google-conversion: Diff ( 2 files changed, 244 insertions(+))
Open in Cloud Shell: Diff ( 2 files changed, 32 insertions(+), 2 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 29
Passed tests: 27
Skipped tests: 0
Affected tests: 2

Click here to see the affected service packages
  • dialogflowcx

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
  • TestAccDialogflowCXAgent_update
  • TestAccDialogflowCXFlow_update

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

🟢 Tests passed during RECORDING mode:
TestAccDialogflowCXAgent_update[Debug log]
TestAccDialogflowCXFlow_update[Debug log]

🟢 No issues found for passed tests after REPLAYING rerun.


🟢 All tests passed!

View the build log or the debug log for each test

dtmf_settings {
enabled = true
max_digits = 1
finish_digit = "#"
}
logging_settings {
enable_stackdriver_logging = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you set some of these to false in a separate step? Sometimes we see issues setting booleans to false values

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or is that impossible to verify based on the ignore_read functionality? Have you tested setting the false value and seeing that it correctly sets it in the API?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @slevenick, I tested setting all values to true/false and it all works. The only issue is that one of the fields enableInteractionLogging automatically set to true if you completely remove logging_settings {} block which triggers permadiff. I have internal bug open and will keep an eye on it.
Indeed given that we have ignore_read, testing change to one of the fields does not make sense, but I tested it by hands back and force with curl and gcloud to make sure fields change after change to the TF config

@slevenick slevenick merged commit db99455 into GoogleCloudPlatform:main Oct 9, 2024
14 checks passed
@averbuks averbuks deleted the dialogflow-cx-agent-logging-settings branch October 9, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Agent.advancedSettings + Agent.textToSpeechSettings
3 participants