Skip to content

Get Charity Navigator data for existing EINs#242

Merged
bickelj merged 1 commit intomainfrom
7-charity-navigator-import
Feb 4, 2026
Merged

Get Charity Navigator data for existing EINs#242
bickelj merged 1 commit intomainfrom
7-charity-navigator-import

Conversation

@bickelj
Copy link
Copy Markdown
Collaborator

@bickelj bickelj commented Jan 13, 2026

Point this script to a PDC instance with a Charity Navigator GraphQL API key and PDC Keycloak client/secret, and it will get changemakers from PDC, use (valid) EINs to fetch some data from Charity Navigator and post the results to ChangemakerFieldValues.

Issue #7 Make a charity navigator data import script

@bickelj bickelj requested a review from slifty January 13, 2026 20:04
if (changemaker !== null) {
Object.entries(baseFieldMap).map(async ([cnAttributeName, baseFieldShortCode]) => {
const cnAttribute = e[cnAttributeName as keyof NonprofitPublic];
if (cnAttribute !== undefined && cnAttribute !== null) {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This actually can be null which is why the null check exists. So something is wrong with the code here or the types here or the types upstream.

@bickelj
Copy link
Copy Markdown
Collaborator Author

bickelj commented Feb 3, 2026

The next push adds an ignore rule for the variable that actually could be null even though types say it cannot.

Point this script to a PDC instance with a Charity Navigator GraphQL
API key and PDC Keycloak client/secret, and it will get changemakers
from PDC, use (valid) EINs to fetch some data from Charity Navigator
and post the results to ChangemakerFieldValues.

Issue #7 Make a charity navigator data import script

Co-Authored-By: Dan Schultz <slifty@gmail.com>
@bickelj bickelj force-pushed the 7-charity-navigator-import branch from 89f18ec to 974174e Compare February 3, 2026 16:17
@bickelj bickelj merged commit bcd2659 into main Feb 4, 2026
4 checks passed
@bickelj bickelj deleted the 7-charity-navigator-import branch February 4, 2026 15:52
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