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: Minor fixes 2 #3230

Merged
merged 15 commits into from
Dec 10, 2024
Merged

fix: Minor fixes 2 #3230

merged 15 commits into from
Dec 10, 2024

Conversation

sfc-gh-jmichalak
Copy link
Collaborator

@sfc-gh-jmichalak sfc-gh-jmichalak commented Nov 27, 2024

  • prove that using network policy with lowercase characters in oauth integration fails in Snowflake
  • update the migration guide regarding migrating provider configuration
  • rename datasource to data source
  • add missing examples and fix some examples in the docs
  • add notes about missing fields (they will be done in SNOW-1844996)
  • adjust documentation for provider configuration
  • improve quoting with import and resource configuration examples
    • some examples of replication and grants were not changed because they show a nicer setup, IMO - can discuss about this
  • add info about external changes not being detected for certain fields or resource types
  • change infobox format for some notes ([!WARNING] -> !> Note) because it isn't rendered properly in the registry
  • fix empty using in view masking policies
  • add links to documentation of the referenced resources
  • adjust enum validations to use sdkValidation with SDK converter function instead of StringInSlice
  • address feat: Use new data types in sql builder for functions and procedures #3247 by improving the documentation
  • update lists in v1-preparations files

Test Plan

  • acceptance tests
  • integration tests

References

#3198
#3251

TODO (next PRs):

  • check the migration guide once again

Copy link

Integration tests cancelled for 8124496ad14651194b20fa927222ebd21029a5c7

Copy link

Integration tests cancelled for 11698ee662b3c495cac2be38c66175629cce5902

Copy link

Integration tests failure for db308146853fab572d383ecf2b6384af16c92152

@sfc-gh-jmichalak sfc-gh-jmichalak changed the title chore: Prove issue 3229 fix: Minor fixes 2 Nov 29, 2024
Copy link

Integration tests failure for 8395c609a4a9bd5a738062e2b2f32f824d1f3580

Copy link

github-actions bot commented Dec 2, 2024

Integration tests failure for de2fb0d661bdd12a45d12bac08f7728fdf5b80db

Copy link

github-actions bot commented Dec 3, 2024

Integration tests failure for 666e998418b6e83586f8e622cffb6795a6b72e2c

Copy link

github-actions bot commented Dec 5, 2024

Integration tests failure for d4eab0a3b5f388957bd5e61d8cb1ee85fe008584

@sfc-gh-jmichalak sfc-gh-jmichalak requested review from sfc-gh-asawicki and sfc-gh-jcieslak and removed request for sfc-gh-asawicki December 5, 2024 21:11
@sfc-gh-jmichalak sfc-gh-jmichalak marked this pull request as ready for review December 5, 2024 21:25
Copy link

github-actions bot commented Dec 5, 2024

Integration tests failure for ba2df04197584223a2d5847a4ae6fe9e0adcd6f9

docs/guides/unassigning_policies.md Show resolved Hide resolved
docs/guides/unassigning_policies.md Show resolved Hide resolved
docs/resources/grant_account_role.md Outdated Show resolved Hide resolved
docs/resources/secondary_connection.md Show resolved Hide resolved
docs/resources/stream_on_view.md Outdated Show resolved Hide resolved
pkg/resources/stream_on_view.go Outdated Show resolved Hide resolved
pkg/resources/task.go Show resolved Hide resolved
projectionPolicy, projectionPolicyCleanup := acc.TestClient().ProjectionPolicy.CreateProjectionPolicy(t)
t.Cleanup(projectionPolicyCleanup)

// generators currently don't handle lists of objects, so use the old way
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think they do now, but I'm fine with leaving this for now as is

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Probably, but this was reworked a while ago. Let's leave this for now.

pkg/resources/view_acceptance_test.go Outdated Show resolved Hide resolved
pkg/resources/diff_suppressions_test.go Outdated Show resolved Hide resolved
docs/resources/grant_database_role.md Outdated Show resolved Hide resolved
docs/resources/row_access_policy.md Show resolved Hide resolved
docs/resources/secondary_connection.md Show resolved Hide resolved
docs/resources/stream_on_external_table.md Outdated Show resolved Hide resolved
docs/resources/stream_on_view.md Outdated Show resolved Hide resolved
docs/resources/task.md Outdated Show resolved Hide resolved
docs/resources/warehouse.md Show resolved Hide resolved
pkg/resources/database_commons.go Outdated Show resolved Hide resolved
pkg/resources/diff_suppressions_test.go Outdated Show resolved Hide resolved
v1-preparations/LIST_OF_STABLE_RESOURCES_FOR_V1.md Outdated Show resolved Hide resolved
Copy link

Integration tests cancelled for 6f39bbed4c1fb79c3501d2c03ca4375efe7542c7

@@ -9,6 +9,9 @@ description: |-

!> **Note** The provider does not detect external changes on database type. In this case, remove the database of wrong type manually with `terraform destroy` and recreate the resource. It will be addressed in the future.

!> **Note** A database cannot be dropped successfully if it contains network rule-network policy associations. The error looks like `098507 (2BP01): Cannot drop database DATABASE as it includes network rule - policy associations.
`. Currently, the provider does not unassign such objects automatically. Before dropping the resource, first unassign the network rule from the relevant objects. See [guide](https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/guides/unassigning_policies) for more details.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Question: Will this be rendered as one note? + I would leave ` in the :12 line

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just checked in https://registry.terraform.io/tools/doc-preview and it looks correct. But I agree this should be improved - will do in the next PR.

pkg/resources/diff_suppressions_test.go Outdated Show resolved Hide resolved
Copy link

Integration tests failure for 00cf7babed2a6dfbef805a4be3debaa28daa11af

@sfc-gh-jmichalak sfc-gh-jmichalak merged commit 73b7e74 into main Dec 10, 2024
8 of 9 checks passed
@sfc-gh-jmichalak sfc-gh-jmichalak deleted the prove-issue-3229 branch December 10, 2024 15:46
sfc-gh-jcieslak pushed a commit that referenced this pull request Dec 12, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.100.0](v0.99.0...v0.100.0)
(2024-12-12)


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

* Account v1 readiness
([#3236](#3236))
([5df33a8](5df33a8))
* Account v1 readiness generated files
([#3242](#3242))
([3df59dd](3df59dd))
* Account v1 readiness resource
([#3252](#3252))
([8f5698d](8f5698d))
* Add a new account roles data source
([#3257](#3257))
([b3d6b9e](b3d6b9e))
* Add account data source
([#3261](#3261))
([6087fc9](6087fc9))
* Add all other functions and procedures implementations
([#3275](#3275))
([7a6f68d](7a6f68d))
* Basic functions implementation
([#3269](#3269))
([6d4a103](6d4a103))
* Basic procedures implementation
([#3271](#3271))
([933335f](933335f))
* Docs, test, and missing parameter
([#3280](#3280))
([10517f3](10517f3))
* Functions and procedures schemas and generated sources
([#3262](#3262))
([9b70f87](9b70f87))
* Functions sdk update
([#3254](#3254))
([fc1eace](fc1eace))
* Handle missing fields in function and procedure
([#3273](#3273))
([53e7a0a](53e7a0a))
* Procedures schemas and generated sources
([#3263](#3263))
([211ad46](211ad46))
* Procedures sdk update
([#3255](#3255))
([682606a](682606a))
* Rework account parameter resource
([#3264](#3264))
([15aa9c2](15aa9c2))
* Rework data types
([#3244](#3244))
([05ada91](05ada91))
* support table data type
([#3274](#3274))
([13401d5](13401d5))
* Tag association v1 readiness
([#3210](#3210))
([04f6d54](04f6d54))
* Test imports and small fixes
([#3276](#3276))
([a712195](a712195))
* Unsafe execute v1 readiness
([#3266](#3266))
([c4f1e8f](c4f1e8f))
* Use new data types in sql builder for functions and procedures
([#3247](#3247))
([69f677a](69f677a))


### 🔧 **Misc**

* Add ShowByID filtering generation
([#3227](#3227))
([548ec42](548ec42))
* Adress small task-related todos
([#3243](#3243))
([40de9ae](40de9ae))
* Apply masking
([#3234](#3234))
([c209a8a](c209a8a))
* fix missing references in toOpts and changes with newlines
([#3240](#3240))
([246547f](246547f))
* function tests
([#3279](#3279))
([5af6efb](5af6efb))
* Improve config builders
([#3207](#3207))
([425787c](425787c))
* Revert to proper env
([#3238](#3238))
([5d4ed3b](5d4ed3b))
* Use service user for ci
([#3228](#3228))
([2fb50d7](2fb50d7))


### 🐛 **Bug fixes:**

* Make blocked_roles_field optional in OAuth security integrations
([#3267](#3267))
([7197b57](7197b57))
* Minor fixes
([#3231](#3231))
([1863bf6](1863bf6))
* Minor fixes 2
([#3230](#3230))
([73b7e74](73b7e74))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

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.

3 participants