Skip to content

fix(site/src/testHelpers): point MCP server ACL msw handlers at v2 paths - #28659

Merged
ibetitsmike merged 2 commits into
mainfrom
mike/fix-mcp-acl-v2-paths
Aug 26, 2026
Merged

fix(site/src/testHelpers): point MCP server ACL msw handlers at v2 paths#28659
ibetitsmike merged 2 commits into
mainfrom
mike/fix-mcp-acl-v2-paths

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

test-js is failing on main Main is fixed: #28657 landed the same api.test.ts expectation update, so this PR no longer unbreaks anything and is not urgent.

What remains here is the other half of the original fix: site/src/testHelpers/handlers.ts still registers the MCP server ACL GET/PATCH msw handlers at /api/experimental/..., but since #28498 the client calls /api/v2/..., so those handlers can never intercept a request. Any future test or story that exercises the ACL endpoints through the shared msw handlers would hit an unhandled-request error instead of the mock. This points them at the v2 paths the client actually uses.

Validation: pnpm exec vitest run --project=unit src/api/api.test.ts passes 43/43 on this branch (merged with current main).

Xum acted on Mike's behalf.

@ibetitsmike

Copy link
Copy Markdown
Collaborator Author

@codex review

Please review current head a8123040abed1fa244e70fd44640b8bef99b6cd5.

Xum acted on Mike's behalf.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: a8123040ab

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@linear-code

linear-code Bot commented Aug 26, 2026

Copy link
Copy Markdown

CODAGT-991

@ibetitsmike ibetitsmike changed the title fix(site/src): expect v2 MCP server ACL paths fix(site/src/testHelpers): point MCP server ACL msw handlers at v2 paths Aug 26, 2026
@ibetitsmike
ibetitsmike merged commit 78d0571 into main Aug 26, 2026
30 checks passed
@ibetitsmike
ibetitsmike deleted the mike/fix-mcp-acl-v2-paths branch August 26, 2026 21:38
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants