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

chore: apply minor database changes #2872

Merged
merged 6 commits into from
Jun 25, 2024
Merged

Conversation

sfc-gh-jcieslak
Copy link
Collaborator

@sfc-gh-jcieslak sfc-gh-jcieslak commented Jun 17, 2024

Apply the rest of the changes requested in #2842

  • Moved out a schema for the show database output
  • Throw error in state upgrader for certain cases we cannot upgrade to
  • Update state upgrader to map account locators to the recommended account identifier format
  • Use more strict mapping functions in update functions for all databases (+ test them)

To add (in this pr)

  • Better documentation for old database from_share field

TODO

  • Find out which test is setting data retention time in days on the account and doesn't call unset (causing TestAcc_Database_IntParameter to fail).

@sfc-gh-asawicki sfc-gh-asawicki self-requested a review June 17, 2024 13:16
Copy link

Integration tests failure for b2587a8997cf0b9c4464a371b1a5024a75388cf2

Copy link

Integration tests failure for 0e4d8a6d2b84d5f243dc18cb21509ffb9d17abb5

MIGRATION_GUIDE.md Show resolved Hide resolved
pkg/datasources/databases.go Outdated Show resolved Hide resolved
pkg/datasources/databases.go Outdated Show resolved Hide resolved
pkg/datasources/databases.go Show resolved Hide resolved
pkg/sdk/common_types_test.go Outdated Show resolved Hide resolved
Copy link

Integration tests failure for 37300257740650416225b24bad2699453e982d06

pkg/schemas/database.go Outdated Show resolved Hide resolved
pkg/schemas/database.go Outdated Show resolved Hide resolved
pkg/schemas/database_parameters.go Show resolved Hide resolved
pkg/resources/helpers.go Outdated Show resolved Hide resolved
pkg/datasources/databases.go Outdated Show resolved Hide resolved
Copy link

Integration tests failure for 016f1fc6e9639717d2e2f259e67f3b1c88025223

func DatabaseParametersToSchema(parameters []*sdk.Parameter) map[string]any {
databaseParametersValue := make(map[string]any)
for _, param := range parameters {
if slices.Contains(databaseParameters, sdk.AccountParameter(param.Key)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't like initializing sdk.AccountParameter like this, I like the warehouse impl more but it does not matter that much for now, we will soon generate them 🤷

Copy link

Integration tests failure for 482e8d9d2a4a07c7a828bcc974e208925296e7ac

Copy link

Integration tests failure for 05422e78aaec2524932e139e4a04669d5847dd67

@sfc-gh-asawicki sfc-gh-asawicki merged commit 6ccac59 into main Jun 25, 2024
8 of 9 checks passed
@sfc-gh-asawicki sfc-gh-asawicki deleted the databases-minor-changes branch June 25, 2024 18:09
sfc-gh-jcieslak pushed a commit that referenced this pull request Jul 10, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.93.0](v0.92.0...v0.93.0)
(2024-07-10)


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

* Add OAUTH integration for custom clients
([#2908](#2908))
([d9b557f](d9b557f))
* Add oauth integration for partner applications
([#2912](#2912))
([91788e5](91788e5))
* Add support for cortex search service
([#2860](#2860))
([43aa89f](43aa89f))
* API Authentication integration v1 readiness
([#2898](#2898))
([91931da](91931da))
* External Oauth integration v1 readiness
([#2907](#2907))
([ed237c3](ed237c3))
* Generate show outputs with mappers
([#2886](#2886))
([1cada88](1cada88))
* Introduce security integrations datasource
([#2892](#2892))
([7f6c657](7f6c657))
* SAML2 integration v1 readiness
([#2868](#2868))
([d0c136d](d0c136d))
* SCIM integration v1 readiness
([#2846](#2846))
([269df6b](269df6b))
* Security integrations datasource v1 readiness
([#2913](#2913))
([d10474a](d10474a))
* standard database v1 readiness
([#2842](#2842))
([3c11953](3c11953))
* Warehouse redesign final touches
([#2900](#2900))
([0eab636](0eab636))
* Warehouse redesign part1
([#2864](#2864))
([6664457](6664457))
* Warehouse redesign part2
([#2887](#2887))
([1aaf417](1aaf417))
* Warehouse redesign part3
([#2890](#2890))
([873a1ed](873a1ed))
* Warehouse redesign part4
([#2893](#2893))
([d525fd9](d525fd9))


### 🔧 **Misc**

* Add documentation on unset and defaults
([#2882](#2882))
([85a7836](85a7836))
* apply minor database changes
([#2872](#2872))
([6ccac59](6ccac59))
* Apply new resource conventions to scim integration
([#2891](#2891))
([e11e608](e11e608))
* Improve generator template organization
([#2820](#2820))
([5035e2f](5035e2f))
* Nuke stale objects
([#2869](#2869))
([9c4a117](9c4a117))
* Show a possible solution for
[#2877](https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/2877)
([#2878](#2878))
([6fb437b](6fb437b))
* Validations cleanup and old grants removal
([#2884](#2884))
([05b7eee](05b7eee))


### 🐛 **Bug fixes:**

* Add disclaimers and fix tests
([#2905](#2905))
([1deaedc](1deaedc))
* Fix cortex search service
([#2904](#2904))
([763d06c](763d06c))
* use suppressQuoting to fix stage file_format permadiff
([#2885](#2885))
([fd70f6e](fd70f6e))

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