Skip to content

feat: add Fragment publish and unpublish methods [DX-929]#3002

Merged
Michael Pham (michaelphamcf) merged 1 commit intofeat/exofrom
feat/exo-fragment-publish
Apr 29, 2026
Merged

feat: add Fragment publish and unpublish methods [DX-929]#3002
Michael Pham (michaelphamcf) merged 1 commit intofeat/exofrom
feat/exo-fragment-publish

Conversation

@michaelphamcf
Copy link
Copy Markdown
Contributor

Summary

  • Add publish (PUT /fragments/:id/published) and unpublish (DELETE /fragments/:id/published) to Fragment REST adapter
  • Both send X-Contentful-Version header for optimistic locking
  • Unit tests for both methods, verifying URL and version header

Test plan

  • tsc --noEmit passes
  • npx vitest --project unit --run test/unit/adapters/REST/endpoints/fragment.test.ts — 9 tests pass (full Fragment suite)

Stacked PR — targets feat/exo-fragment-crud (DX-928). Will auto-retarget when parent merges.

🤖 Generated with Claude Code

@michaelphamcf Michael Pham (michaelphamcf) requested a review from a team as a code owner April 27, 2026 23:24
@bito-code-review
Copy link
Copy Markdown

bito-code-review Bot commented Apr 27, 2026

Bito Automatic Review Skipped - Branch Excluded

Bito didn't auto-review because the source or target branch is excluded from automatic reviews.
No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the branch exclusion settings here, or contact your Bito workspace admin at michael.pearce@contentful.com.

@michaelphamcf Michael Pham (michaelphamcf) force-pushed the feat/exo-fragment-crud branch 2 times, most recently from 5caac23 to 690ba30 Compare April 29, 2026 15:54
Base automatically changed from feat/exo-fragment-crud to feat/exo April 29, 2026 16:44
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@michaelphamcf Michael Pham (michaelphamcf) merged commit 89e52b0 into feat/exo Apr 29, 2026
14 of 16 checks passed
@michaelphamcf Michael Pham (michaelphamcf) deleted the feat/exo-fragment-publish branch April 29, 2026 18:15
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