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: Adds case statement for ObjectTypeUser in ShowObjectParameter. #2675

Conversation

cmonty-paypal
Copy link
Contributor

@cmonty-paypal cmonty-paypal commented Apr 4, 2024

When issuing object_type = "USER" via the snowflake_object_parameter resource the ShowObjectParameter function did not handle the ObjectTypeUser which led to invalid ObjectType errors.

Test Plan

  • acceptance tests

References

@sfc-gh-asawicki
Copy link
Collaborator

Hey @cmonty-paypal. Thanks for the contribution.

We will review it next week and provide feedback.

@cmonty-paypal cmonty-paypal force-pushed the cmonty/fix-user-object-parameter branch 2 times, most recently from d3dbfca to 57c6953 Compare April 9, 2024 17:12
Copy link
Collaborator

@sfc-gh-jcieslak sfc-gh-jcieslak left a comment

Choose a reason for hiding this comment

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

Hey, looks good. Thank you for the contribution :)

Copy link
Collaborator

@sfc-gh-asawicki sfc-gh-asawicki left a comment

Choose a reason for hiding this comment

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

I like the change, only one small comment left.

pkg/acceptance/testing.go Outdated Show resolved Hide resolved
@cmonty-paypal
Copy link
Contributor Author

I like the change, only one small comment left.

Thanks for the feedback, I refactored the test user.

@cmonty-paypal cmonty-paypal force-pushed the cmonty/fix-user-object-parameter branch from 8891919 to a0d8595 Compare April 10, 2024 21:58
@sfc-gh-asawicki sfc-gh-asawicki changed the title Adds case statement for ObjectTypeUser in ShowObjectParameter. feat: Adds case statement for ObjectTypeUser in ShowObjectParameter. Apr 11, 2024
@sfc-gh-asawicki sfc-gh-asawicki changed the title feat: Adds case statement for ObjectTypeUser in ShowObjectParameter. fix: Adds case statement for ObjectTypeUser in ShowObjectParameter. Apr 11, 2024
@sfc-gh-asawicki
Copy link
Collaborator

/ok-to-test sha=a0d8595870f1e37c4223141e96139a96331b6623

Copy link

Integration tests success for a0d8595870f1e37c4223141e96139a96331b6623

@sfc-gh-asawicki sfc-gh-asawicki merged commit 23a3341 into Snowflake-Labs:main Apr 11, 2024
9 of 10 checks passed
@sfc-gh-asawicki
Copy link
Collaborator

Merged. Thanks for the contribution @cmonty-paypal! 🎉

sfc-gh-jcieslak pushed a commit that referenced this pull request Apr 18, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.89.0](v0.88.0...v0.89.0)
(2024-04-18)


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

* Update target objects for privilege-granting resources
([#2688](#2688))
([74e2b6b](74e2b6b))


### 🔧 **Misc**

* Handle generic check destroy in acceptance tests
([#2716](#2716))
([63a5324](63a5324))
* Initialize the SDK client in fewer places
([#2710](#2710))
([382bfc1](382bfc1))


### 🐛 **Bug fixes:**

* Adds case statement for ObjectTypeUser in ShowObjectParameter.
([#2675](#2675))
([23a3341](23a3341))
* diffs always occurring when multiple columns exist
([#2686](#2686))
([3275ad4](3275ad4))
* Fix issues
[#2679](#2679)
[#2721](#2721)
([#2723](#2723))
([b0c9dd4](b0c9dd4))
* Fix several small issues
([#2697](#2697))
([e3f6a15](e3f6a15))
* granting ownership on database roles
([#2703](#2703))
([88944e7](88944e7))
* network policy update
([#2647](#2647))
([8126b28](8126b28))
* Rename grants_redesign_desgin_decisions.md to grants_redesign_design_…
([#2691](#2691))
([5000b2b](5000b2b))
* renames in update operations
([#2702](#2702))
([793c879](793c879))
* showbyid method tests
([#2648](#2648))
([ff5e617](ff5e617))

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

snowflake_object_parameter parsing error
3 participants