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

Use DeploymentActionSlugPackage for external feed triggers and add resource schema for primary package references #634

Merged
merged 14 commits into from
May 6, 2024

Conversation

kevjt
Copy link
Collaborator

@kevjt kevjt commented May 2, 2024

Changes in this PR

  • Use the new version of the go-octopusdeploy library following the renaming of the DeploymentAction field to DeploymentActionSlug for package references.
  • Add a new primary_package resource schema for external feed triggers. This will make it easier to distinguish between the two types of packages in Octopus deployment steps, and is easier to remember than otherwise having to set package_reference = null for primary packages.
  • Make the space_id field optional for the external feed trigger resource. This is in line with every other resource in the Octopus TF provider. [sc-77155]
  • Includes a fix in the go-octopusdeploy library to use the space_id in the request to fetch project triggers. This fixes the bug where triggers weren't being successfully retrieved on any space other than the default space. [sc-76114]
  • Includes new version of the TF testing framework which stops the tests from sending telemetry to Amplitude
  • Adds the computed property slug on DeploymentActions so that it can be referenced and used in the specification of external feed triggers

Copy link

@eddymoulton eddymoulton left a comment

Choose a reason for hiding this comment

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

A couple of description changes that you can take or leave. I tried to take the wording from the UI where it made sense.

I think we could clean up the tests a little though. The better we get the tests now, the easier bringing this provider up to date will be.

docs/resources/variable.md Show resolved Hide resolved
integration_test.go Outdated Show resolved Hide resolved
integration_test.go Outdated Show resolved Hide resolved
kevjt and others added 4 commits May 3, 2024 15:46
Co-authored-by: EddyMoulton <eddy@moulton.com.au>
Co-authored-by: EddyMoulton <eddy@moulton.com.au>
Copy link

@eddymoulton eddymoulton left a comment

Choose a reason for hiding this comment

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

Very nice, those changes are fantastic

@kevjt kevjt enabled auto-merge (squash) May 6, 2024 01:00
Copy link
Collaborator

@rain-on rain-on left a comment

Choose a reason for hiding this comment

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

Approving on the basis of Eddy's review

@kevjt kevjt merged commit c6da48f into main May 6, 2024
37 checks passed
@kevjt kevjt deleted the kevjt/use-deploymentactionslug-for-external-feed-triggers branch May 6, 2024 01:18
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.

None yet

3 participants