-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add support for the save-plan
run attr and save_plan
operation filter
#724
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.
Looks fine. Can you add beta godocs, changelog, skipifbeta?
@@ -203,6 +211,17 @@ func TestRunsCreate(t *testing.T) { | |||
assert.Equal(t, true, r.AllowEmptyApply) | |||
}) | |||
|
|||
t.Run("with save-plan", func(t *testing.T) { | |||
options := RunCreateOptions{ |
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.
Probably needs a SkipUnlessBeta(t) ?
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 knew I must be forgetting something 🤦
@brandonc Done! Thanks for the reminders. 💖 |
c814dd2
to
1d36470
Compare
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.
Looking good!
Minor comment,
- add
planned_and_saved_at
toRunStatusTimestamps
Oh dang good catch |
…lter This feature is a work in progress, and is currently behind a feature flag in production. (It's not, however, a secret, as we're developing the Terraform core component of the feature in the open.)
1d36470
to
cae98cb
Compare
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.
🎉
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. |
Description
This feature is a work in progress, and is currently behind a feature flag in production. (It's not, however, a secret, as we're developing the Terraform core component of the feature in the open.)
Testing plan
saved-cloud-plans
feature, use the client to create a run withSavePlan: true
.SavePlan
field is true.Operation: RunOperationSavePlan
in the list opts; note that your run is in the list, but normal runs aren't.External links
As this feature is feature-flagged, there's no docs for it yet.
Output from tests
This is with tfc running in local dev with the un-merged filter PR applied.