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

fix: Fix bad detect_and_copy_new_topics state mapping on read for aws_msk_replicator #35966

Conversation

acwwat
Copy link
Contributor

@acwwat acwwat commented Feb 24, 2024

Description

This PR fixes the issue where the value of detect_and_copy_new_topics is incorrectly set to the value of CopyAccessControlListsForTopics from the API when reading the state (flattening).

Relations

Closes #35964

References

n/a

Output from Acceptance Testing

$ make testacc TESTS=TestAccKafkaReplicator_update PKG=kafka
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/kafka/... -v -count 1 -parallel 20 -run='TestAccKafkaReplicator_update'  -timeout 360m
=== RUN   TestAccKafkaReplicator_update
=== PAUSE TestAccKafkaReplicator_update
=== CONT  TestAccKafkaReplicator_update
--- PASS: TestAccKafkaReplicator_update (7517.64s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/kafka      7517.820s

$

Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added size/XS Managed by automation to categorize the size of a PR. service/kafka Issues and PRs that pertain to the kafka service. labels Feb 24, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Feb 24, 2024
@acwwat acwwat force-pushed the b-aws_msk_replicator-fix_detect_and_copy_new_topics_flatten branch from fd347d4 to c9f91da Compare February 24, 2024 07:14
@acwwat acwwat force-pushed the b-aws_msk_replicator-fix_detect_and_copy_new_topics_flatten branch from c9f91da to 67cccc5 Compare February 24, 2024 07:15
@jar-b jar-b added bug Addresses a defect in current functionality. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 26, 2024
Copy link
Member

@jar-b jar-b left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

% make testacc PKG=kafka TESTS=TestAccKafkaReplicator_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/kafka/... -v -count 1 -parallel 20 -run='TestAccKafkaReplicator_'  -timeout 360m

--- PASS: TestAccKafkaReplicator_update (6240.55s)
--- PASS: TestAccKafkaReplicator_disappears (6241.15s)
--- PASS: TestAccKafkaReplicator_basic (6241.52s)
--- PASS: TestAccKafkaReplicator_tags (6244.27s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/kafka      6251.524s

@jar-b jar-b merged commit 20bf8f1 into hashicorp:main Feb 26, 2024
43 checks passed
@jar-b
Copy link
Member

jar-b commented Feb 26, 2024

Thanks for your contribution, @acwwat! 👍

@github-actions github-actions bot added this to the v5.39.0 milestone Feb 26, 2024
@cobbr2
Copy link

cobbr2 commented Feb 26, 2024

Thanks for the quick fix, both @acwwat and @jar-b !

Copy link

github-actions bot commented Mar 1, 2024

This functionality has been released in v5.39.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@acwwat acwwat deleted the b-aws_msk_replicator-fix_detect_and_copy_new_topics_flatten branch March 1, 2024 05:07
Copy link

github-actions bot commented Apr 1, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/kafka Issues and PRs that pertain to the kafka service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: aws_msk_replicator not tracking correct state of detect_and_copy_new_topics
3 participants