Skip to content

fix(destinations): make deployment public and idempotent - #329

Open
caiopizzol wants to merge 2 commits into
amp-labs:mainfrom
caiopizzol:fix/destination-idempotency
Open

fix(destinations): make deployment public and idempotent#329
caiopizzol wants to merge 2 commits into
amp-labs:mainfrom
caiopizzol:fix/destination-idempotency

Conversation

@caiopizzol

Copy link
Copy Markdown
Contributor

What

Makes deploy:destination public and safely reconciles an existing destination by ID or name. URL changes update only metadata.url, preserving server-managed metadata.

Why

Running destination deployment more than once could attempt a duplicate create and return HTTP 409.

Verification

  • go test ./...
  • go vet ./...
  • golangci-lint run -c .golangci.yml
  • Deployed the same HubSpot destination twice in production and received identical YAML output

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.

1 participant