Skip to content

feat(taxonomy): add political domain with donation/campaign categories#38

Merged
ckrough merged 1 commit into
mainfrom
worktree-prancy-strolling-sphinx
May 11, 2026
Merged

feat(taxonomy): add political domain with donation/campaign categories#38
ckrough merged 1 commit into
mainfrom
worktree-prancy-strolling-sphinx

Conversation

@ckrough
Copy link
Copy Markdown
Owner

@ckrough ckrough commented May 11, 2026

Why

Campaign-donation receipts (ActBlue, WinRed) currently fail taxonomy validation because no canonical domain accepts them. This change adds political as a canonical domain so those receipts resolve as political/donation/receipts/... instead of falling through to fallback or strict-mode failure.

What

Adds to HouseholdTaxonomy:

  • Canonical domain political
  • Domain aliases: politics, election, elections
  • Four subject-level categories under political: advocacy, campaign, donation, voter

Form (receipt/invoice/agreement/etc.) is still carried by the existing receipts doctype — no new doctype required.

Scope

  • src/drover/taxonomy/household.py (+10 lines)

Adds 'political' as a canonical domain in HouseholdTaxonomy with four
subject-level categories (advocacy, campaign, donation, voter) and
domain aliases for politics/election/elections. Form is carried by the
existing 'receipts' doctype, so campaign-donation receipts (ActBlue,
WinRed) now resolve as political/donation/receipts instead of failing
taxonomy validation.
@ckrough ckrough merged commit 6936ed9 into main May 11, 2026
5 checks passed
@ckrough ckrough deleted the worktree-prancy-strolling-sphinx branch May 11, 2026 11:16
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.

1 participant