Skip to content

CP-8003: Document filtering Cases by Case Form question answers - #150

Merged
abdul-devops01 merged 1 commit into
MakerbleDev:mainfrom
lokesh-k-12:CP-8003-case-filter-fields
Nov 17, 2026
Merged

abdul-devops01 merged 1 commit into
MakerbleDev:mainfrom
lokesh-k-12:CP-8003-case-filter-fields

Conversation

@lokesh-k-12

Copy link
Copy Markdown
Contributor

Companion to the Rails change for CP-8003: MakerbleDev/makerble#17559 (API v2) and MakerbleDev/makerble#17560 (the Manage Cases page).

What & why

On the Manage Cases page, people can now filter Cases by their answers to Case Form questions. This PR documents the API side.

  • GET /cases: new custom_field_definition_hash query parameter (deepObject), keyed by question ID. The description lists the value for each filter format.
  • New GET /cases/filter_fields (listCaseFilterFields): the paginated list of questions Cases can be filtered by, with the CaseFilterField and PaginatedCaseFilterFields schemas and an example.
  • server.js: the matching endpointCard entries in the Cases section, because the docs page isn't generated from openapi.yaml.

The openapi.yaml change is identical to the vendored spec/support/api_schemas/openapi.yaml in MakerbleDev/makerble#17559, which the Rails contract specs check the endpoints against.

When to merge

While the API docs are pre-launch, this can be merged once reviewed. Once they have launched publicly, hold it until MakerbleDev/makerble#17559 is live on production, because every push to main goes live on Vercel.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 12, 2026

Copy link
Copy Markdown

@lokesh-k-12 is attempting to deploy a commit to the Makerble's projects Team on Vercel.

A member of the Team first needs to authorize it.

lokesh-k-12 added a commit to lokesh-k-12/api-docs that referenced this pull request Nov 12, 2026
 + Add the 'custom_field_definition_hash' query parameter to 'GET /cases'.
 + Add 'GET /cases/filter_fields' with the 'CaseFilterField' and 'PaginatedCaseFilterFields' schemas.
 + Add the matching endpoint cards to the Cases section of 'server.js'.
@lokesh-k-12
lokesh-k-12 force-pushed the CP-8003-case-filter-fields branch from 681c3a7 to 0cbb536 Compare November 12, 2026 07:58
@lokesh-k-12
lokesh-k-12 marked this pull request as ready for review November 12, 2026 07:59
 + Add the 'custom_field_definition_hash' query parameter to 'GET /cases'.
 + Add 'GET /cases/filter_fields' with the 'CaseFilterField' and 'PaginatedCaseFilterFields' schemas.
 + Add the matching endpoint cards to the Cases section of 'server.js'.
@lokesh-k-12
lokesh-k-12 force-pushed the CP-8003-case-filter-fields branch from 0cbb536 to 11674be Compare November 16, 2026 04:21
@abdul-devops01
abdul-devops01 merged commit 16d5343 into MakerbleDev:main Nov 17, 2026
1 of 2 checks passed
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.

3 participants