Repository navigation
fix(kit): the WordPress case syncs an Author's or Contributor's posts - #206
Merged
Merged
Conversation
WordPress refuses an author or a contributor the pages list with a private status (HTTP 400, 403 inside), and the refusal failed the whole post sync. The case's pages call now names optional.needs on capabilities.edit_pages (cli-core 0.710.0) and checks edit_others_pages for a partial read; posts keep edit_others_posts. The content seed tests every call with optional.needs: a sign-in without that right never sends it (the fake would list it in refusals) and the sync completes with the gap. cli-core 0.707.0 -> 0.710.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…0.0) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
FIND-2812: a WordPress CLI made from the template's config case could not sync posts for an Author or Contributor sign-in.
Why
WordPress refuses both roles the pages list with a private status: HTTP 400, with 403 inside. The refusal failed the whole
postkind, and every later run stopped at the same call.What
kit/test/from-config/wordpress/wirecat.config.ts): the pages call namesoptional.needsoncapabilities.edit_pages(cli-core 0.710.0, #3154). Pages checkedit_others_pagesinstead ofedit_others_posts. The config is now the same as wordpress-cli's.optional.needs. A sign-in without that right never sends the call (the fake would record it inrefusals), and the sync endscompletewith the gap. A CLI withoutneedsregisters no test.Testing
docs:checkandkit/test/from-config.test.tspass.🤖 Generated with Claude Code