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

feat: Add a resource to manage sequences #582

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

dfedde
Copy link
Contributor

@dfedde dfedde commented Jun 18, 2021

Addresses feature-request #509

Test Plan

  • acceptance tests
  • used terraform to run test creates, updates, destroys and fixing changes made outside of terraform.
  • has been run and is working in rxrevu's infrastructure

References

@dfedde dfedde requested a review from a team as a code owner June 18, 2021 13:38
@dfedde dfedde requested a review from alldoami June 18, 2021 13:38
@dfedde dfedde changed the title [feature] Add a resource to manage sequences feat: Add a resource to manage sequences Jun 18, 2021
pkg/resources/sequence.go Outdated Show resolved Hide resolved
@alldoami
Copy link
Contributor

I'm not totally familiar with sequences, but should we try and provide a start optional parameter?

@alldoami
Copy link
Contributor

/ok-to-test sha=c983e34

@github-actions
Copy link

Integration tests success for c983e34

@dfedde
Copy link
Contributor Author

dfedde commented Jun 22, 2021

We could add a start but it is a little confusing on how to implement it. It is only useful on create. On an update we don't want to regress the counter back to its start. We would also need to be smart in the cases where the sequence is recreated.

I was unable to figure out a way to implement it so that it would be obvious what would happen if it was used so I left it out.

@alldoami
Copy link
Contributor

@dfedde cool, wanna update your branch and commit the change I suggested above?

@alldoami
Copy link
Contributor

/ok-to-test sha=4f30f92

@github-actions
Copy link

Integration tests success for 4f30f92

@alldoami alldoami merged commit 7fab82f into Snowflake-Labs:main Jun 23, 2021
jtzero pushed a commit to rxrevu/terraform-provider-snowflake that referenced this pull request Aug 19, 2021
anton-chekanov pushed a commit to anton-chekanov/terraform-provider-snowflake that referenced this pull request Jan 25, 2022
daniepett pushed a commit to daniepett/terraform-provider-snowflake that referenced this pull request Feb 9, 2022
@jtzero jtzero deleted the add-sequance branch March 14, 2022 17:30
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