Skip to content

docs: group-sync mapping filter, patch-by-project-key, empty-body 400 - #307

Open
pablohashescobar wants to merge 1 commit into
makeplane:masterfrom
pablohashescobar:update/group-sync-api-docs
Open

docs: group-sync mapping filter, patch-by-project-key, empty-body 400#307
pablohashescobar wants to merge 1 commit into
makeplane:masterfrom
pablohashescobar:update/group-sync-api-docs

Conversation

@pablohashescobar

@pablohashescobar pablohashescobar commented Aug 7, 2026

Copy link
Copy Markdown
Member

Description

Documents the group-sync external API changes shipped in makeplane/plane-ee#8476:

  • List project mappings — documents the new project_identifier query parameter (case-insensitive filter on the project identifier; unknown identifiers return an empty list).
  • New page: Update project group mapping by key — covers PATCH /workspaces/{workspace_slug}/group-sync/project-mappings/{project_key}/{idp_group_name}/, including path/body parameters, scopes, 404 conditions, and the fact that all_projects: true mappings cannot be addressed by project key.
  • Empty PATCH bodies — documents the 400 {"error": "Request body cannot be empty."} response on the project-mapping and workspace-mapping update endpoints.
  • Adds the new page to the IDP Group Sync sidebar in config.mts.

Behavior verified against the merged implementation on plane-ee@preview (URL patterns, query param normalization, serializer fields, scopes, and error responses).

Checks

  • pnpm check:format passes
  • pnpm build passes

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added API documentation for updating project-scoped identity provider mappings by project key and group name.
    • Documented optional, case-insensitive project filtering when listing mappings.
    • Clarified partial-update behavior and validation errors for empty update requests.
    • Added examples, parameters, supported scopes, error responses, and success payloads.

Document the group-sync external API changes from makeplane/plane-ee#8476:

- Add project_identifier query param to the list project mappings page
  (case-insensitive filter, empty list on unknown identifier)
- Add new page for PATCH by project key + IdP group name, including
  404 conditions and the all_projects exclusion
- Document 400 on empty PATCH bodies for project and workspace
  mapping update endpoints
- Add the new page to the IDP Group Sync sidebar

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

@pablohashescobar is attempting to deploy a commit to the Marketing at Plane Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The documentation adds project filtering to the listing endpoint, documents updates by project key, clarifies empty-body validation, and adds the new endpoint to the API sidebar.

Changes

IDP Group Sync documentation

Layer / File(s) Summary
Project mapping listing filter
docs/api-reference/idp-group-sync/list-project-mappings.md
Documents the optional project_identifier filter, case-insensitive matching, uppercase identifiers, and empty results for unknown identifiers.
Project mapping update documentation
docs/api-reference/idp-group-sync/update-project-mapping-by-key.md, docs/api-reference/idp-group-sync/update-project-mapping.md, docs/api-reference/idp-group-sync/update-workspace-mapping.md, docs/.vitepress/config.mts
Adds the key-based update reference, documents parameters, validation, errors, examples, and responses, clarifies partial-update behavior, and adds the page to the sidebar.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: pushya22

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the documented group-sync mapping filter, project-key PATCH endpoint, and empty-body 400 responses.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/api-reference/idp-group-sync/update-project-mapping-by-key.md`:
- Around line 99-103: Move the alternate OAuth authentication comment out of the
continued curl command in the documentation example, placing it before the curl
invocation or presenting it as a separate complete command. Ensure every line in
the primary command remains part of the same shell command without an
intervening comment.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c0212ef3-8285-4006-97cd-385dd6760d41

📥 Commits

Reviewing files that changed from the base of the PR and between e5dc631 and a06d565.

📒 Files selected for processing (5)
  • docs/.vitepress/config.mts
  • docs/api-reference/idp-group-sync/list-project-mappings.md
  • docs/api-reference/idp-group-sync/update-project-mapping-by-key.md
  • docs/api-reference/idp-group-sync/update-project-mapping.md
  • docs/api-reference/idp-group-sync/update-workspace-mapping.md

Comment on lines +99 to +103
curl -X PATCH \
"https://api.plane.so/api/v1/workspaces/my-workspace/group-sync/project-mappings/ENG/engineering/" \
-H "X-API-Key: $PLANE_API_KEY" \
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
-H "Content-Type: application/json" \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Move the alternate authentication comment outside the continued command.

The API-key header line ends with \, so the shell continues into the next line. The # Or use ... comment then interrupts the command. A copied request can execute -H "Content-Type: application/json" as a separate command.

Move the comment above curl, or show the alternate authentication header in a separate complete command.

Suggested layout
+# Use one authentication header:
+# -H "X-API-Key: $PLANE_API_KEY"
+# -H "Authorization: Bearer $PLANE_OAUTH_TOKEN"
 curl -X PATCH \
   "https://api.plane.so/api/v1/workspaces/my-workspace/group-sync/project-mappings/ENG/engineering/" \
   -H "X-API-Key: $PLANE_API_KEY" \
-  # Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
   -H "Content-Type: application/json" \
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
curl -X PATCH \
"https://api.plane.so/api/v1/workspaces/my-workspace/group-sync/project-mappings/ENG/engineering/" \
-H "X-API-Key: $PLANE_API_KEY" \
# Or use -H "Authorization: Bearer $PLANE_OAUTH_TOKEN" \
-H "Content-Type: application/json" \
# Use one authentication header:
# -H "X-API-Key: $PLANE_API_KEY"
# -H "Authorization: Bearer $PLANE_OAUTH_TOKEN"
curl -X PATCH \
"https://api.plane.so/api/v1/workspaces/my-workspace/group-sync/project-mappings/ENG/engineering/" \
-H "X-API-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/api-reference/idp-group-sync/update-project-mapping-by-key.md` around
lines 99 - 103, Move the alternate OAuth authentication comment out of the
continued curl command in the documentation example, placing it before the curl
invocation or presenting it as a separate complete command. Ensure every line in
the primary command remains part of the same shell command without an
intervening comment.

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.

1 participant