community_membership:
- Tiers get a fixed-term period (term_years), minimum age, a
proof-document flag, a family-member flag and a signup description.
- Members get first/last name (composing the contact name), month and
year of birth with computed age, board approval state with
approve/reject buttons, terms acceptance, a proof-of-eligibility upload
and an inline family members list. Birth date and proof document are
restricted to Membership Managers.
- Constraints: plausible birth year; a tier's minimum age is enforced
when the birth year is known.
- Fix pre-existing tests that collided with deployment-seeded tier codes
and member ID format.
tncsc_deployment:
- Five Yes/No eligibility questions from the tncsc.com registration form
(manager-only), shown in an Eligibility section of the member form.
- Tiers now match tncsc.com/membership-registration: Annual/Family $30,
Long-Term (10 yr) $250, Life $500, Senior Annual (65+) $15, Senior Life
(60+) $250, Student Annual $10 (CAD).
- 19.0.1.1.0 post-migrate rewrites existing tiers (noupdate data) and
archives the unused Individual tier.
scripts/migrate_wp_members.py maps WordPress levels to the new LONG and
SENLIFE tiers. .mcp.json (holds credentials) is now gitignored.
Verified on the local Docker stack: -u on tncsc_site ran the migration
cleanly, and a fresh install with --test-enable passed 32/32 tests for
community_membership and tncsc_deployment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds scripts/migrate_wp_members.py to import TNCSC's real WordPress
member export (data/raw/users.csv, gitignored - real PII, never
committed) into Community OS Membership. Separate from
migrate_members.py, which expects a clean documented schema - this one
reads the real WooCommerce export's messy shape directly: duplicate
"Country"/"State" columns (read by position, not name, to get the real
profile ones instead of empty leftover checkout-form columns), free-text
membership levels mapped to tier codes, and legacy WordPress
"Membership ID"s preserved as a chatter note rather than reused as the
new member ID (229 of 493 rows didn't have one at all).
Test/spam rows (@abbuzz.com) are skipped; date of birth and the
citizenship/immigration-eligibility columns in the source export are
never read anywhere - no field for them and they're sensitive with no
operational purpose here. Ambiguous multi-value Levels are imported
without a tier and flagged 'needs_review' in the report rather than
guessed.
Run against tncsc_site and verified: 474 real members created (472 with
a resolved tier or legacy-ID note), 10 junk rows skipped, 8 flagged for
manual tier review, 1 non-member org inbox correctly excluded. Re-run
confirmed idempotent (474 updated, zero duplicates).