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 #7047

Conversation

modular-magician
Copy link
Collaborator

Fixes #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 <[email protected]>
@ghost ghost added size/l labels Aug 18, 2020
@modular-magician modular-magician merged commit 83fd684 into hashicorp:master Aug 18, 2020
@ghost
Copy link

ghost commented Sep 18, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 18, 2020
@modular-magician modular-magician deleted the downstream-pr-c591599428e00fadb7635843dbb5e90fbd36fae1 branch November 17, 2024 00:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
1 participant