-
Notifications
You must be signed in to change notification settings - Fork 151
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/do not use computed #564
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amazing set of tests! LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I smoke tested this on the latest TFC and it behaved nicely, with and without the beta feature enabled.
CHANGELOG.md
Outdated
@@ -3,6 +3,7 @@ | |||
ENHANCEMENTS: | |||
* d/agent_pool: Improve efficiency of reading agent pool data when the target organization has more than 20 agent pools ([#508](https://github.com/hashicorp/terraform-provider-tfe/pull/508)) | |||
* Added warning logs for 404 error responses ([#538](https://github.com/hashicorp/terraform-provider-tfe/pull/538)) | |||
* r/tfe_workspace: Fix `trigger-prefixes` could not be updated because of the conflict with `trigger-patterns` in some cases - as described in this [GitHub Issue](https://github.com/hashicorp/terraform-provider-tfe/issues/552) ([#564](https://github.com/hashicorp/terraform-provider-tfe/pull/564/)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this to a new Bug Fixes heading?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻 1a89a9b
Description
Addresses issue described in this GitHub issue.
It should prevent sending trigger-patterns and trigger-prefixes in the same request, which is currently causing failures for the Terraform Enterprise with version
v202205-1
. The issues is occurring because this version of TFE checks for an invariant thattrigger-patterns
andtrigger-prefixes
should NOT be present at the same time. The latest Atlas codebase (and newer versions of TFE) is checking that these values (arrays) are not populated rather for the presence, meaning the issues is not present in newer versions.The above fix is using raw configuration reading, and for that we had to bump up the SDK version to
v2.8.0
This PR also addresses some other quirks we were experiencing because the fields
trigger-patterns
andtrigger-prefixes
were marked ascomputed
. Thecomputed
trait has been removed for these fields and we introduced a more comprehensive test suite.Remember to:
Update the Change Log
Update the Documentation
Testing plan
TFE
versionv202205-1
or checkout the Atlas codebase with the same git tagtrigger-prefixes
settrigger-prefixes
andtrigger-patterns
External links
Include any links here that might be helpful for people reviewing your PR. If there are none, feel free to delete this section.
Output from acceptance tests
Please run applicable acceptance tests locally and include the output here. See TESTS.md to learn how to run acceptance tests.
If you are an external contributor, your contribution(s) will first be reviewed before running them against the project's CI pipeline.