Get Charity Navigator data for existing EINs#242
Merged
Conversation
bickelj
commented
Jan 13, 2026
| if (changemaker !== null) { | ||
| Object.entries(baseFieldMap).map(async ([cnAttributeName, baseFieldShortCode]) => { | ||
| const cnAttribute = e[cnAttributeName as keyof NonprofitPublic]; | ||
| if (cnAttribute !== undefined && cnAttribute !== null) { |
Collaborator
Author
There was a problem hiding this comment.
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.
42af222 to
89f18ec
Compare
Collaborator
Author
|
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>
89f18ec to
974174e
Compare
slifty
approved these changes
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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