Skip to content

Remove stale generateApplicationFormJson script - #311

Merged
grant-minor-sntialtech merged 1 commit into
mainfrom
remove-stale-application-form-json
Oct 7, 2026
Merged

grant-minor-sntialtech merged 1 commit into
mainfrom
remove-stale-application-form-json

Conversation

@bickelj-agent

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

Copy link
Copy Markdown
Collaborator

The npm script's fetch of GET /baseFields predates the endpoint returning a bundle instead of a bare array and the endpoint becoming paginated (default _count=10), so it crashes at runtime and would only ever see the first 10 of 282 fields. Delete the script and its npm script entry rather than maintain dead code; nothing else references them.

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

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

@bickelj bickelj left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, but then again I was the one who prompted it.

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

🟢 Approval recommended

No unresolved issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Removes the obsolete application-form JSON generator and its npm script entry.

Changes:

  • Deletes src/generateApplicationFormJson.ts.
  • Removes the corresponding npm script from package.json.
File Description
src/​generateApplicationFormJson.ts Removes stale generator code.
package.json Removes its npm script entry.

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

The script predates two API changes: GET /baseFields now returns a
bundle object instead of a bare array, and it is paginated with a
default _count of 10. As written it crashes on the bundle response
(fields.filter is not a function) and would silently see only 10 of
282 fields even if it did not. Nothing else references the script or
its npm script entry, so delete both rather than maintain dead code.

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 remove-stale-application-form-json branch from d673e38 to 250cf0a Compare October 6, 2026 16:19

@grant-minor-sntialtech grant-minor-sntialtech left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.

@grant-minor-sntialtech
grant-minor-sntialtech merged commit 9a50488 into main Oct 7, 2026
7 checks passed
@grant-minor-sntialtech
grant-minor-sntialtech deleted the remove-stale-application-form-json branch October 7, 2026 14:46
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