Repository navigation
Accept every read_gifts source in check and train --task leadership (supersedes #359) - #372
Merged
Merged
Conversation
check and train --task leadership read raw gift exports through a _raw_gift_readers() registry covering every GIFT_SOURCES entry, so an export from a newly added source can no longer be read as CiviCRM by accident. Bloomerang, DonorPerfect, Blackbaud CRM, Little Green Light and Ellucian CRM Advance each get a _<source>_received_rows helper that their *_to_features aggregator also calls, so the CLI and features count the same rows. Supersedes #359 with the review points applied. Co-authored-by: Sudhakar7J <[email protected]>
The source choices were still the four-name _FEATURE_SOURCES tuple, so argparse rejected the new sources before _read_raw_gifts saw them.
This was referenced Nov 5, 2026
7 tasks done
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.
Supersedes #359 by @Sudhakar7J, carrying their registry and row-filter helpers with the open review points applied. Their commits are squashed in with a
Co-authored-bytrailer, and their CHANGELOG and CONTRIBUTORS entries are kept.philanthropy checkandphilanthropy train --task leadershipread a raw gift export through_read_raw_gifts, which only knew four sources and quietly read anything else as CiviCRM. This change:_raw_gift_readers()registry covering everyGIFT_SOURCESname, so an unknown source now stops with "Unknown gift source" instead. A test fails if a new source is added toGIFT_SOURCESwithout a reader._bloomerang_received_rows,_donorperfect_received_rows,_blackbaud_crm_received_rows,_little_green_light_received_rowsand_ellucian_advance_received_rows, the same split the Raiser's Edge, NPSP and Nonprofit Cloud helpers already use. Each*_to_featurescalls its helper, so the CLI andfeaturescount the same rows. The missing-type-column warnings live only in the helpers, withstacklevel=3, so they point at the caller._RAW_GIFT_EXPORTS, sotest_raw_gift_log_drops_the_rows_features_dropscovers all nine.Changes from #359's last push:
exclude_transaction_typestoDEFAULT_EXCLUDED_ADVANCE_TRANSACTION_TYPESand passesNonethrough, soexclude_transaction_types=Nonedisables filtering again (it was being reset to the default, which failed three existing tests).Union/Optionalannotations in_ellucian_advance.py(flake8 F821) in favour of the module's ownX | Nonestyle.cli.py,tests/test_cli.pyand the Little Green Light alias table.ellucian_advancecase to_RAW_GIFT_EXPORTS.make ciandmake riskcovpass locally.Closes #341.