Repository navigation
feat(cli): accept every read_gifts source in check and leadership - #359
Sudhakar7J wants to merge 4 commits into
Conversation
|
Thanks, this is a clean change: the
Once those are in and CI is green, this is ready to merge. |
52b5ef5 to
7095ad9
Compare
|
Thanks for turning this around so fast, and for the Little Green Light helper. Three things before it can merge:
The registry, the loud failure for an unknown source, and the coverage test are still exactly right. |
|
Hi @shivamlalakiya — thanks for the detailed feedback. I've rebased on main and addressed both points:
All 54 tests in |
|
Thanks @Sudhakar7J. Your reply covers my first review, but the branch has no commits since 2026-11-04 18:38 UTC, so the second review (posted at 22:53) is still open and the PR now conflicts with On So the three points from the second review still stand:
Once that's pushed and CI is green, this is ready to merge. The registry and the loud unknown-source failure are the right design. |
`philanthropy check` and `philanthropy train --task leadership` only accepted the four sources hardcoded in the CLI. Add Bloomerang, DonorPerfect and Blackbaud CRM by giving each bridge a private `_<crm>_received_rows` helper (the pattern PhilanthroPy-Project#337 added) and looking the reader up through one `_raw_gift_readers` registry so a new `GIFT_SOURCES` name cannot silently fall through to CiviCRM. Extend `test_raw_gift_log_drops_the_rows_features_drops` to all seven sources and add a test that the registry covers every `GIFT_SOURCES` name. Closes PhilanthroPy-Project#341
7095ad9 to
f0f0c83
Compare
…uses helper (rebase on main, PhilanthroPy-Project#341)
|
Thanks @shivamlalakiya — all three points from the second review are now addressed:
Rebased on current main (5f74baf), 55 tests pass in test_cli.py. CI should be green now — the previous failure was the missing |
|
Thanks for the quick turnaround. The rebase and the Little Green Light change look right. CI is still red on three things:
Run |
…372) check and train --task leadership read raw gift exports through a registry covering every GIFT_SOURCES name, with a received-rows helper per source shared with its *_to_features aggregator. Supersedes #359. Co-authored-by: Sudhakar7J <[email protected]>
|
Thanks @Sudhakar7J for the registry and the received-rows helpers. This landed in #372 with your commits squashed in under a |
Summary
philanthropy checkandphilanthropy train --task leadershiponly accepted the four sources hardcoded in the CLI. This adds Bloomerang, DonorPerfect and Blackbaud CRM, so both commands accept everyread_giftspreset and read each one through the same row filterfeaturesuses.Changes
_bloomerang.py,_donorperfect.py,_blackbaud_crm.py: added private_<crm>_received_rowshelpers (same pattern as the bug:philanthropy checkandtrain --task leadershipcount pledges and cancelled gifts thatfeaturesdrops #337 helpers), and their*_to_featuresfunctions now call them.cli.py: added a_raw_gift_readers()registry covering everyingest.GIFT_SOURCESname;_read_raw_giftslooks the source up there instead of an if/elif chain (an unknown source now fails loudly instead of falling through to CiviCRM).checkandtrain --sourcechoices are nowGIFT_SOURCES.tests/test_cli.py:test_raw_gift_log_drops_the_rows_features_dropsnow covers all seven sources; addedtest_raw_gift_readers_cover_every_gift_sourceand an unknown-source rejection test.CHANGELOG.md/CONTRIBUTORS.md: entry and credit.Testing
Related
checkandtrain --task leadershipaccept everyread_giftssource #341Checklist