Skip to content

fix: fall back to full list endpoints when -lite routes 404 on self-hosted CE- #173 - #1

Open
tulayha wants to merge 2 commits into
grayhatdevelopers:mainfrom
refract99:fix/lite-endpoint-404-on-self-hosted-ce
Open

fix: fall back to full list endpoints when -lite routes 404 on self-hosted CE- #173#1
tulayha wants to merge 2 commits into
grayhatdevelopers:mainfrom
refract99:fix/lite-endpoint-404-on-self-hosted-ce

Conversation

@tulayha

@tulayha tulayha commented Jul 28, 2026

Copy link
Copy Markdown

No description provided.

refract99 and others added 2 commits July 11, 2026 09:07
…osted CE

list_projects, list_cycles, list_modules, and get_workspace_members call
the *-lite endpoints added in 0.2.10 (projects-lite, cycles-lite,
modules-lite, members-lite) for Cloud performance. Self-hosted Plane
Community Edition instances don't register these routes, so all four
tools 404 even though the workspace, auth, and the non-lite endpoints
work fine.

Add a lite_or_fallback() helper that retries via the full endpoint on a
404 and reshapes its response into the lite envelope the tool
advertises, then wire it into the four affected tools.

Fixes makeplane#172, makeplane#170, makeplane#169, makeplane#126

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- projects.py: filter archived projects client-side in the fallback path,
  since the full /projects/ endpoint's PaginatedQueryParams has no
  include_archived toggle, matching the lite path's default.
- workspaces.py: document why the get_members fallback can't forward
  cursor/per_page (the endpoint is unpaginated by design).
- lite_fallback.py: use model_validate for the bare-list branch, consistent
  with the paginated branch.
- tests: cover full_call raising after a 404 and an empty bare-list fallback.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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