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 views permadiff #3079

Merged
merged 7 commits into from
Sep 17, 2024
Merged

fix: Fix views permadiff #3079

merged 7 commits into from
Sep 17, 2024

Conversation

sfc-gh-jmichalak
Copy link
Collaborator

@sfc-gh-jmichalak sfc-gh-jmichalak commented Sep 16, 2024

  • fix permadiff when columns are not specified
  • adjust row access policy signature in describe_output and move parsing to sdk
  • adjust the identifier doc - add procedure id

Test Plan

  • acceptance tests

References

#3073
#2994

Copy link

Integration tests failure for 6bfcef35b8ae54080fb97a7ff15c9c53a1cd13c6

Copy link

Integration tests failure for 634bada461d1674574cdd28c45cc7303dd9f0d49

Copy link

Integration tests failure for 1b92b97d9e6e7d28caf9fee65d66a25b55232ed1

Copy link

Integration tests failure for a8c1461e27d7ecefa1cf6e751ba341ec9591c9d4

pkg/resources/diff_suppressions.go Outdated Show resolved Hide resolved
pkg/resources/view.go Outdated Show resolved Hide resolved
Copy link

Integration tests failure for 54f0be74b999a992f397707364acd6c9f708083e

@sfc-gh-jmichalak sfc-gh-jmichalak merged commit c2d3e5c into main Sep 17, 2024
8 of 9 checks passed
@sfc-gh-jmichalak sfc-gh-jmichalak deleted the views-fix branch September 17, 2024 13:36
Copy link

Integration tests failure for c4cf1a5ccd0a54d6b54ad8d323ccf0ae38b861b2

sfc-gh-jmichalak added a commit that referenced this pull request Sep 18, 2024
<!-- Feel free to delete comments as you fill this in -->
- SDK
  - improve validations
  - add tests
  - improve options parsing (also, get rid of a 3rd party library)
- add a TODO to reuse parsing from row access policies after merging
#3079
- resource
  - use new id handling
  - rename/remove some fields to be consistent with other resources
  - better ACC tests
-  misc
  - adjust helper clients
  - generate config and assertion builders
  - adjust docs
<!-- summary of changes -->

## Test Plan
<!-- detail ways in which this PR has been tested or needs to be tested
-->
* [x] acceptance tests
* [x] integration tests
* [x] unit tests 

## References
<!-- issues documentation links, etc  -->
https://docs.snowflake.com/en/sql-reference/sql/create-masking-policy

## TODO
- add tests for issues
- rework data source
sfc-gh-fbudzynski pushed a commit that referenced this pull request Sep 19, 2024
<!-- Feel free to delete comments as you fill this in -->
- fix permadiff when columns are not specified
- adjust row access policy signature in describe_output and move parsing
to sdk
- adjust the identifier doc - add procedure id 
<!-- summary of changes -->

## Test Plan
<!-- detail ways in which this PR has been tested or needs to be tested
-->
* [x] acceptance tests
<!-- add more below if you think they are relevant -->
* [ ] …

## References
<!-- issues documentation links, etc  -->

#3073
#2994
sfc-gh-fbudzynski pushed a commit that referenced this pull request Sep 19, 2024
<!-- Feel free to delete comments as you fill this in -->
- SDK
  - improve validations
  - add tests
  - improve options parsing (also, get rid of a 3rd party library)
- add a TODO to reuse parsing from row access policies after merging
#3079
- resource
  - use new id handling
  - rename/remove some fields to be consistent with other resources
  - better ACC tests
-  misc
  - adjust helper clients
  - generate config and assertion builders
  - adjust docs
<!-- summary of changes -->

## Test Plan
<!-- detail ways in which this PR has been tested or needs to be tested
-->
* [x] acceptance tests
* [x] integration tests
* [x] unit tests 

## References
<!-- issues documentation links, etc  -->
https://docs.snowflake.com/en/sql-reference/sql/create-masking-policy

## TODO
- add tests for issues
- rework data source
sfc-gh-jmichalak pushed a commit that referenced this pull request Sep 19, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.96.0](v0.95.0...v0.96.0)
(2024-09-18)

Essential GA object readiness for V1:
[link](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/v1-preparations/ESSENTIAL_GA_OBJECTS.MD)
([Roadmap
reference](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/ROADMAP.md#preparing-essential-ga-objects-for-the-provider-v1)).

:exclamation: Migration guide: [v0.95.0 ->
v0.96.0](https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#v0950--v0960)

### 🎉 **What's new:**

* V1 redesign of resources and data sources
* Row access policy
([#3066](#3066))
([#3063](#3063))
* Resource monitor
([#3052](#3052))
([#3064](#3064))
* Masking policy
([#3078](#3078))
([#3083](#3083))
* SDK upgrades
* External volume
([#3033](#3033))
* Authentication policy
([#2937](#2937))
([#3068](#3068))
([#3061](#3061))


### 🔧 **Misc**

* Clean up old test object helpers
([#3049](#3049))
* Add example of granting role to multiple objects
([#3047](#3047))
* Update readme and objects rework state
([#3046](#3046))

### 🐛 **Bug fixes:**

* Fix model grants
([#3070](#3070))
* Fix database show by and resource logic
([#3055](#3055))
* Fix default secondary roles option import
([#3041](#3041))
* Fix sweepers for warehouse and database
([#3057](#3057))
* Fix views permadiff
([#3079](#3079))
* Update v0.95.0 migration guide
([#3062](#3062))

Co-authored-by: snowflake-release-please[bot] <105954990+snowflake-release-please[bot]@users.noreply.github.com>
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.

2 participants