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] Add shares to grant ResourceData #263

Merged

Conversation

andybeeswax
Copy link
Contributor

@andybeeswax andybeeswax commented Oct 2, 2020

Grants don't recognize when privileges are already granted to a share. So the grant resources are recreated on every apply. This should resolve that. The shares weren't being added to the ResourceData.

This should fix #226.
It may fix #248 as well.

Test Plan

  • acceptance tests

@andybeeswax andybeeswax requested a review from a team as a code owner October 2, 2020 04:00
@andybeeswax andybeeswax requested review from alldoami and removed request for a team October 2, 2020 04:00
@andybeeswax andybeeswax closed this Oct 2, 2020
@andybeeswax andybeeswax reopened this Oct 2, 2020
@alldoami
Copy link
Contributor

alldoami commented Oct 5, 2020

Could you write tests for this? Thanks for the great work! 😄

@andybeeswax
Copy link
Contributor Author

@alldoami You're welcome! Added some tests.

@ryanking ryanking changed the base branch from master to main October 7, 2020 20:12
@alldoami
Copy link
Contributor

alldoami commented Oct 9, 2020

Passed test-acceptance-ci. Thanks @andybeeswax ! 🥳

@andybeeswax andybeeswax changed the title Add shares to grant ResourceData [fix] Add shares to grant ResourceData Oct 13, 2020
@alldoami alldoami merged commit 9ea90d9 into Snowflake-Labs:main Oct 14, 2020
@andybeeswax andybeeswax deleted the add_shares_to_grant_resource_data branch October 14, 2020 21:54
gjv9491 pushed a commit to gjv9491/terraform-provider-snowflake that referenced this pull request Mar 19, 2021
anton-chekanov pushed a commit to anton-chekanov/terraform-provider-snowflake that referenced this pull request Jan 25, 2022
daniepett pushed a commit to daniepett/terraform-provider-snowflake that referenced this pull request Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants