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

Change the default value of unique_writer_identity in resource logging_project_sink to true. #8847

Conversation

pengq-google
Copy link
Contributor

Change the default value of unique_writer_identity in resource logging_project_sink to true. unique_writer_identity = false is legacy behavior. New sinks should always set this field to be true.

Release Note Template for Downstream PRs (will be copied)

Change the default value of unique_writer_identity in resource logging_project_sink to true. unique_writer_identity = false is legacy behavior. New sinks should always set this field to be true.

maxi-cit and others added 30 commits August 28, 2023 13:48
* first draft for new Network Attachment resource

* updated NetworkAttachment specification file

* added usage example for Network Attachment with GCE Instance

* verified attributes and descriptions

* enhanced network attachment examples
* Add: BigLake api Database Resource

* add: database example

* add: database update test

* update: test fields

* update: mark `catalog_id` required + immutable

* update: `type` field. use string, mark required

* update: mark hiveoptions req
…rations (GoogleCloudPlatform#8690)

* Add `artifactRules` to all build configurations

* Set logging ENVs on builds via `TerraformLoggingParameters`

* Fix copy+paste error in function signature

* Remove space in parameter name

* Add `PROVIDER_NAME`

* Fix logging-related parameters to be environment varaibles, not configuration parameters

* Change log files to use .txt extension, so they open in browser without downloading
* Update dataplex_datascan_full_profile.tf.erb

Add an export table

* Add env vars for export table

* Fix datascan and dataset references for full datascan example.

* Use a var for datascan name across all the examples.

* update resource name

* update resource name for IAM
…form#8757)

* Fully supporting Dialogflow CX Page and Flow objects

This fills out a bunch of stuff that was missing including:
- repromptEventHandlers (hashicorp/terraform-provider-google#14573)
- setParameterActions (hashicorp/terraform-provider-google#14572)
- payload, and other fulfillment messages (hashicorp/terraform-provider-google#12946)

* Allowing JSON values to actually be values (instead of just objects)

* Adding "basic" Flow creation, filling out "full" Flow creation with (I hope) all params

* Oops, missed Flow messages.response_type example

* Adding "basic" Page creation, filling out "full" Page creation with (I hope) all params

* Oops, missed response_type and had an extra level of nested messages{} somehow

* Adding return_partial_response + webhook (?!)

* Fixing conditionalCases: it's now a JSON encoded list, instead of a list of JSON encoded objects

* Normalizing whitespace in examples + tests; it's now all spaces (I hope)

* Fixing examples / tests

* Normalizing whitespace in basic examples

* Fixing examples: empty conditions are supposed to be null / missing

* Fixing examples: tag should only be set when webhook is set (we'll see if I need to set webhook everywhere)

* Fixing code: responseType is ignored when creating/updating resources
…loudPlatform#8790)

* Switched biglake database to use parent field implementation

* Added custom import

* Switched to id_format / import_format

* Fixed biglake database test file path

* Fixed function names
…rm#8786)

* Renamed breaking-change-detector -> diff-processor

* Removed printf statements

* Removed debugging lines
…s.customerManagedEncryption to google_secret_manager_secret resource (GoogleCloudPlatform#8755)
…code between packages to allow tests (GoogleCloudPlatform#8797)

* Add initial version of plugin framework provider config test affected by inaccessible functions

* Move `ReplaceVarsForFrameworkTest` to `fwresource` package

This mirrors how old, ReplaceVars* functions are in the `tpgresource` package

* Move functions for changing ENVs in tests to `acctest` package, update usage

* Move `GenerateFakeCredentialsJson` function to `acctest` package, update usage

* Refactor provider config tests to use plugin-framework types

* Add all test cases to match equivalent SDK provider config tests

Some test cases currently fail due to different handling of empty values by the SDK and plugin framework

* Add test case about handling of Unknown values for `project`

* Update tests to check values in BOTH the data model and provider config struct after `LoadAndValidateFramework` runs
* initial request_timeout test in providerConfigure

* initial requestReason test in providerConfigure

* initial batching test in providerConfigure

* complete requestTimeout test

* complete requestReason test

* batch block testing

* complete batching test

* add more info in test cases

* typos

* remove redundant SDKDefault_RequestReason test

* refactor ExpectedEnableBatchingValue

* add ExpectedSendAfterValue check when enable_batching is only set

* add info about default sendafter value and new edgecase

* add valid request_timeout test case

* Update mmv1/third_party/terraform/provider/provider_internal_test.go

Co-authored-by: Sarah French <[email protected]>

* Update mmv1/third_party/terraform/provider/provider_internal_test.go

Co-authored-by: Sarah French <[email protected]>

* Update mmv1/third_party/terraform/provider/provider_internal_test.go

Co-authored-by: Sarah French <[email protected]>

* Update mmv1/third_party/terraform/provider/provider_internal_test.go

Co-authored-by: Sarah French <[email protected]>

* Update mmv1/third_party/terraform/provider/provider_internal_test.go

Co-authored-by: Sarah French <[email protected]>

* Update mmv1/third_party/terraform/provider/provider_internal_test.go

Co-authored-by: Sarah French <[email protected]>

* add credentials into batching tests

* go fmt

* add missing credentials in config tests

* Add missing refactoring changes, add credentials info

---------

Co-authored-by: Sarah French <[email protected]>
Co-authored-by: Sarah French <[email protected]>
…tform#8641)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20221014081412-f15817d10f9b to 0.7.0.
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@pengq-google pengq-google changed the base branch from main to FEATURE-BRANCH-major-release-5.0.0 September 2, 2023 00:47
@modular-magician
Copy link
Collaborator

Hello! I am a robot. It looks like you are a: Community Contributor Googler Core Contributor. Tests will run automatically.

@trodge, 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.

@pengq-google pengq-google changed the base branch from FEATURE-BRANCH-major-release-5.0.0 to main September 2, 2023 00:49
@pengq-google
Copy link
Contributor Author

@shuyama1
I know this is a breaking change. however, if I keep [pengq-google](https://github.com/pengq-google) wants to merge 1 commit into [GoogleCloudPlatform:main](https://github.com/GoogleCloudPlatform/magic-modules/tree/main) from [pengq-google:b9](https://github.com/pengq-google/magic-modules/tree/b9), it will only show 2 files changed.

If I change it to the 5.0.0 branch, will be 129 files changes, but i didn't do anything...

@pengq-google
Copy link
Contributor Author

even with newly create clean branch, if I made a pr to 5.0.0, it will have many changed files, seems the user experience changed today.
#8849

@modular-magician
Copy link
Collaborator

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

Breaking Change(s) Detected

The following breaking change(s) were detected within your pull request.

  • Field unique_writer_identity default value changed from false to true on google_logging_project_sink - reference

If you believe this detection to be incorrect please raise the concern with your reviewer. If you intend to make this change you will need to wait for a major release window. An override-breaking-change label can be added to allow merging.

Diff report

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

Terraform GA: Diff ( 2 files changed, 3 insertions(+), 21 deletions(-))
Terraform Beta: Diff ( 2 files changed, 3 insertions(+), 21 deletions(-))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3008
Passed tests 2704
Skipped tests: 296
Affected tests: 8

Action taken

Found 8 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccHealthcareDatasetIamPolicy|TestAccLoggingProjectSink_described|TestAccLoggingProjectSink_disabled|TestAccLoggingProjectSink_updatePreservesUniqueWriter|TestAccLoggingProjectSink_described_update|TestAccLoggingProjectSink_heredoc|TestAccLoggingProjectSink_updateBigquerySink|TestAccLoggingProjectSink_basic

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccHealthcareDatasetIamPolicy[Debug log]
TestAccLoggingProjectSink_described[Debug log]
TestAccLoggingProjectSink_disabled[Debug log]
TestAccLoggingProjectSink_updatePreservesUniqueWriter[Debug log]
TestAccLoggingProjectSink_described_update[Debug log]
TestAccLoggingProjectSink_heredoc[Debug log]
TestAccLoggingProjectSink_updateBigquerySink[Debug log]
TestAccLoggingProjectSink_basic[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$
View the build log or the debug log for each test

@pengq-google pengq-google changed the base branch from main to FEATURE-BRANCH-major-release-5.0.0 September 5, 2023 17:09
@trodge
Copy link
Contributor

trodge commented Sep 5, 2023

even with newly create clean branch, if I made a pr to 5.0.0, it will have many changed files, seems the user experience changed today. #8849

Can you try rebasing on the 5.0.0 branch?

@pengq-google
Copy link
Contributor Author

I just made a new pr: #8875 and will close this one. Thanks!

@pengq-google pengq-google deleted the b9 branch October 26, 2023 19:18
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.