Skip to content

CP-8788: Document the Field Visibility endpoints - #130

Merged
mattkepple merged 4 commits into
mainfrom
CP-8788-field-visibility
Nov 4, 2026
Merged

mattkepple merged 4 commits into
mainfrom
CP-8788-field-visibility

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

Jira: https://makerble.atlassian.net/browse/CP-8788
Rails PR: https://github.com/MakerbleDev/makerble/pull/17341

This PR documents the new endpoints:

  • openapi.yaml: a new Field Visibility tag, plus GET, PATCH and PUT /field_visibility_rules. They use security: [{tokenAuth: []}], the shared Page / PerPage parameters and the Unauthorized / NotFound / UnprocessableEntity responses, with request and response examples. The descriptions are in front-end terms.
    • LastSyncDatetime is left out on purpose: a field returned to default has no record to sync.
  • server.js: a Field Visibility section with endpoint cards and a nav link. No styles, <head> or assets are touched.

Release timing: the docs are pre-launch, so this can merge once it's been reviewed, without waiting for the Rails PR to reach production.

Checks: npm run check passes. I parsed the new path with js-yaml. Strict parsing of the whole file fails on a duplicate "422" key that is already on main (around line 8487), not in this change.


Generated by Claude Code

Adds GET, PATCH and PUT /field_visibility_rules to openapi.yaml under a
new Field Visibility tag, with a matching section of endpoint cards and
a nav link on the docs page. CP-8788.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1a5xob9JFU7VBHYg7vQnM
@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs Ready Ready Preview Nov 4, 2026 3:57pm UTC

Field Visibility hides a field from some users: list it with restricted: true
and a null value, null hidden built-in fields and name them in
restricted_fields, and refuse a write to a hidden field with 422.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1a5xob9JFU7VBHYg7vQnM
@mattkepple
mattkepple marked this pull request as ready for review November 4, 2026 15:57
@mattkepple
mattkepple merged commit eb86629 into main Nov 4, 2026
3 checks passed

Copy link
Copy Markdown
Contributor Author

Merged into main with Matt's authorisation (CP-8788 approved; the API docs are pre-launch). I merged main in first, and npm run check passes. The diff touches only openapi.yaml and the endpoint cards in server.js.

The endpoints documented here reach production with the next Rails release.


Generated by Claude Code

This branch was successfully deployed

1 active deployment
Preview — 87b8e860 Deployed Nov 4, 2026 by vercel[bot]
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