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: renames in update operations #2702

Merged
merged 8 commits into from
Apr 18, 2024

Conversation

sfc-gh-jcieslak
Copy link
Collaborator

This change fixes all of the Updates that were performing re-names to always setId at the end of the rename operation as well as updating id that was used in the later operations. Also, the ForceNews were removed in cases where rename was also handled in the Update. Test cases were added to show that rename is going through Update and not DeleteAndCreate operation + additional param is always changed to see if other operations are affected by the previous rename operation. The table constraint was adjusted and cannot support the rename for now (until the Read operation is working #2683). Migration guide updated for behavioral changes.

Copy link

gitguardian bot commented Apr 12, 2024

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
9467623 Triggered Generic Password 1f80645 pkg/resources/password_policy_acceptance_test.go View secret
9467623 Triggered Generic Password 1f80645 pkg/resources/password_policy_acceptance_test.go View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

Copy link

Integration tests failure for d084e27ed2a1fb8a8046ae881cdc4fac579623c6

Copy link

Integration tests failure for 1f806454b935900ea745f364c8b5453a25950e8f

Copy link

Integration tests failure for d084e27ed2a1fb8a8046ae881cdc4fac579623c6

pkg/resources/file_format_acceptance_test.go Show resolved Hide resolved
pkg/resources/function_acceptance_test.go Outdated Show resolved Hide resolved
pkg/resources/function_acceptance_test.go Outdated Show resolved Hide resolved
pkg/resources/password_policy_acceptance_test.go Outdated Show resolved Hide resolved
pkg/resources/procedure.go Show resolved Hide resolved
pkg/resources/table_acceptance_test.go Outdated Show resolved Hide resolved
pkg/resources/user_acceptance_test.go Outdated Show resolved Hide resolved
Copy link

Integration tests failure for 7217ab72d3d674cd0dc90bb266021a4596ed3824

Copy link

Integration tests failure for c5c3ab623c2c8e220456b03a9e137c704446641a

1 similar comment
Copy link

Integration tests failure for c5c3ab623c2c8e220456b03a9e137c704446641a

Copy link

Integration tests success for 0501ff30d5c7c5f7d56970a8e02f7b42f59ed2f1

@sfc-gh-jcieslak sfc-gh-jcieslak merged commit 793c879 into main Apr 18, 2024
9 checks passed
@sfc-gh-jcieslak sfc-gh-jcieslak deleted the fix-renames-in-update-operations branch April 18, 2024 08:57
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.

2 participants