Skip to content

don't call PATCH /contents on first deploy#1237

Merged
mslynch merged 2 commits intopccfrom
pcc-no-update-on-first-publish
Oct 23, 2025
Merged

don't call PATCH /contents on first deploy#1237
mslynch merged 2 commits intopccfrom
pcc-no-update-on-first-publish

Conversation

@mslynch
Copy link
Member

@mslynch mslynch commented Oct 22, 2025

Our PATCH /contents API, when called with new_bundle=true, creates a new revision that we can attach our bundle to. Previously, we were calling the PATCH endpoint even for newly created content, which resulted in two revisions being created.

We were also relying on the PATCH to handle updating the secrets, so I updated the POST to create secrets as well.

Resolves #1232.

@mslynch mslynch changed the title pcc no update on first publish don't call PATCH /contents on first deploy Oct 22, 2025
@mslynch mslynch changed the base branch from main to pcc October 22, 2025 20:56
@mslynch mslynch marked this pull request as ready for review October 22, 2025 21:10
@mslynch mslynch merged commit 2ef2d68 into pcc Oct 23, 2025
1 check passed
@mslynch mslynch deleted the pcc-no-update-on-first-publish branch October 23, 2025 20:21
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.

2 participants