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 bug with data access iam member #2397

Conversation

modular-magician
Copy link
Collaborator

Fixes hashicorp/terraform-provider-google#6754

The issue is the iam_member field will translate into user_by_email, group_by_email, domain or special_group. The difference with these fields is that iam_member accepts a string formatted as prefix:value, whereas the other fields don't accept a string with the prefix. However, the backend will use the prefix of iam_member to translate the value into one of those fields and send that back in the response.

I change the request based on what I believe the response will be anyway, it's an assumption that the backend logic is the same. I would prefer to analyze the response instead, but couldn't figure out a good way to do that. Please let me know if there's a better way to address this issue.

Release Note Template for Downstream PRs (will be copied)

bigquery: fixed bug where `dataset_access.iam_member` would produce inconsistent results after apply.

Derived from GoogleCloudPlatform/magic-modules#3741

* fix bug with data access iam member

* update to still allow iam_member if prefix is not in map

* update to add special groups without prefixes to map

* updates post create rather than using customize diff

* clean up map

* undo unnecessary changes to nested_query

* add comment

Signed-off-by: Modular Magician <magic-modules@google.com>
@ghost ghost added size/l labels Aug 18, 2020
@modular-magician modular-magician merged commit 20fccdc into hashicorp:master Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant