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

TF-9651 update varset enforced attribute to priority attribute #779

Merged

Conversation

rberecka
Copy link
Contributor

@rberecka rberecka commented Sep 26, 2023

Description

Rename the enforced field on varsets to be priority instead. This feature has not been released yet anywhere, so there's no concern about breaking changes here.

This pr simply renames the field added in this PR by @Netra2104: #778

External links

Output from tests

Including output from tests may require access to a TFE instance. Ignore this section if you have no environment to test against.

➜  go-tfe git:(TF-9651-update-varsets-enforced-field-to-priority-field) TFE_ADDRESS=http://localhost:21080/ TFE_TOKEN=<local token> go test -run TestVariableSetsWithPriorityCreate                              
PASS
ok      github.com/hashicorp/go-tfe     0.185s
➜  go-tfe git:(TF-9651-update-varsets-enforced-field-to-priority-field) TFE_ADDRESS=http://localhost:21080/ TFE_TOKEN=<local token> go test -run TestVariableSetsUpdateWithPriority                                  
PASS
ok      github.com/hashicorp/go-tfe     0.205s

@rberecka rberecka marked this pull request as ready for review September 26, 2023 22:40
@rberecka rberecka requested a review from a team as a code owner September 26, 2023 22:40
@rberecka rberecka requested a review from a team September 27, 2023 23:26
Netra2104
Netra2104 previously approved these changes Oct 3, 2023
CHANGELOG.md Outdated
@@ -3,7 +3,7 @@
<!-- Please also include if this is a Bug Fix, Enhancement, or Feature -->

## Enhancements
* Added BETA support for including `enforced` attribute to variable_set on create and update by @Netra2104 [#778](https://github.com/hashicorp/go-tfe/pull/778)
* Added BETA support for including `priority` attribute to variable_set on create and update by @Netra2104 [#778](https://github.com/hashicorp/go-tfe/pull/778)
Copy link
Contributor

@Uk1288 Uk1288 Oct 10, 2023

Choose a reason for hiding this comment

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

Looks like go-tfe was already released with the name enforced: https://github.com/hashicorp/go-tfe/releases/tag/v1.35.0.
Is this right?

If this is the case we may need to make the update to priority backward compatibility so user code doesn't break after upgrade.

Copy link
Contributor

Choose a reason for hiding this comment

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

Had discussions and turns out it can be renamed without backward compatibility since the field is marked BETA.

Uk1288
Uk1288 previously approved these changes Oct 10, 2023
Copy link
Contributor

@Uk1288 Uk1288 left a comment

Choose a reason for hiding this comment

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

LGTM

@rberecka rberecka dismissed stale reviews from Uk1288 and Netra2104 via 4f4bd53 October 24, 2023 16:43
@rberecka rberecka merged commit d99df4c into main Oct 24, 2023
9 checks passed
@rberecka rberecka deleted the TF-9651-update-varsets-enforced-field-to-priority-field branch October 24, 2023 18:02
@github-actions
Copy link

Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes.

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