Skip to content

Paginate standalone baseFields fetches - #312

Merged
bickelj merged 1 commit into
mainfrom
paginate-base-fields-fetches
Oct 7, 2026
Merged

bickelj merged 1 commit into
mainfrom
paginate-base-fields-fetches

Conversation

@bickelj-agent

@bickelj-agent bickelj-agent commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

GET /baseFields became paginated with a default _count of 10, so the pdc-optimize-field-matching retrieve-base-fields command silently downloaded only the 10 newest base fields, and the pdc-process-base-fields docstring examples invited the same mistake. Request the whole collection with _page=1 and _count=2147483647 (max int32), mirroring the service repo copyBaseFields fix, and update the examples.

Issue PhilanthropyDataCommons/service#2619 Base Fields Sync description did not update

GLM-5.3-Flash, an LLM supervised and prompted by @bickelj

Copilot AI 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.

Copilot review overview

🔵 Needs a closer look

generateApplicationFormJson still fetches only the default first 10 base fields.

Review effort: Lite
Findings: None

What changed in this PR

Updates standalone base-field retrieval and documentation to account for API pagination.

Changes:

  • Requests the full collection in the optimization command.
  • Updates curl examples with pagination parameters.
File Reviewed change
standalone/​pdc-process-base-fields Updates documented base-field requests.
standalone/​pdc-optimize-field-matching Retrieves all base fields; another consumer still uses an unpaginated request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bickelj

bickelj commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Copilot review overview

generateApplicationFormJson still fetches only the default first 10 base fields.

See #311 which removes that old/broken script.

@bickelj
bickelj requested a review from kfogel October 6, 2026 16:09
GET /baseFields became paginated with a default _count of 10, so
pdc-optimize-field-matching silently downloaded only the 10 newest
base fields into data/baseFields.json for field-matching work, and
the pdc-process-base-fields docstring examples invited the same
mistake. Request the whole collection with _page=1 and
_count=2147483647 (max int32), mirroring the copyBaseFields fix in
the service repository, and fix the examples.

GLM-5.3-Flash, an LLM supervised and prompted by @bickelj

Issue PhilanthropyDataCommons/service#2619 Base Fields Sync description did not update
@bickelj-agent
bickelj-agent force-pushed the paginate-base-fields-fetches branch from 0811acb to 942b6b2 Compare October 6, 2026 16:20
@bickelj
bickelj requested a review from chriszs October 7, 2026 15:26
@bickelj
bickelj merged commit 0c4df82 into main Oct 7, 2026
7 checks passed
@bickelj
bickelj deleted the paginate-base-fields-fetches branch October 7, 2026 17:06
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.

4 participants