Skip to content

Conversation

@bickelj
Copy link
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

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

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