Skip to content

Commit aa6da89

Browse files
committed
fix(spp_mis_demo_v2,spp_programs): eligibility CEL, CR approval workflow, use case accuracy
Fix eligibility managers not getting CEL expressions set (get_manager doesn't handle MANAGER_ELIGIBILITY — use program.eligibility_manager_ids directly instead). Fix CR approval workflow using with_user() for the correct validator users (local + HQ) to pass multi-tier approval checks. Fix eligibility UI summary showing "Configured" instead of actual CEL. spp_mis_demo_v2: - Fix _configure_eligibility_manager to access wrapper directly - Fix _configure_logic_studio to always set CEL on eligibility manager - Fix _set_cr_state to use demo_cr_local_validator and demo_cr_hq_validator for multi-tier approval (approve, reject, revision) - Change Rosa Garcia exit CR from applied to pending (prevents enrollment deletion) - Update use case: Santos 5 members (add Lola), Reyes multi-generational 8 members, 13 CRs with accurate types/states, fix Rosa Garcia and Lorna Pascual references spp_programs: - Show "CEL Expression" as eligibility type when mode is cel - Show actual CEL expression in eligibility summary (was just "Configured") spp_demo: - Fix Rosa Garcia age 67 → 72 - Fix Lorna Pascual age 32 → 55
1 parent bef7ecc commit aa6da89

4 files changed

Lines changed: 223 additions & 184 deletions

File tree

spp_demo/models/demo_stories.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
"story_description": "Demonstrate targeting and multi-program enrollment",
194194
"profile": {
195195
"gender": "female",
196-
"age": 67,
196+
"age": 72,
197197
"education": "none",
198198
"marital_status": "widowed",
199199
"household_size": 1,
@@ -709,14 +709,14 @@
709709
"type": "individual",
710710
"story_title": "Rejected Application",
711711
"story_description": "Shows eligibility rules",
712-
"profile": {"gender": "female", "age": 32},
712+
"profile": {"gender": "female", "age": 55},
713713
"journey": [
714714
{"action": "register", "days_back": 60},
715715
{
716716
"action": "apply_program",
717717
"program": "Elderly Social Pension",
718718
"status": "rejected",
719-
"reason": "Age requirement not met",
719+
"reason": "Age requirement not met (55 < 65)",
720720
"days_back": 55,
721721
},
722722
],

0 commit comments

Comments
 (0)