Skip to content

fix(spp_mis_demo_v2): adapt demo data to re-landed spp_demo/spp_gis_report schemas (#277, #280)#295

Draft
kneckinator wants to merge 1 commit into
19.0from
fix/mis-demo-v2-reland-76-compat
Draft

fix(spp_mis_demo_v2): adapt demo data to re-landed spp_demo/spp_gis_report schemas (#277, #280)#295
kneckinator wants to merge 1 commit into
19.0from
fix/mis-demo-v2-reland-76-compat

Conversation

@kneckinator

@kneckinator kneckinator commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Adapts spp_mis_demo_v2 demo data to two schema changes introduced by the re-lands in #277 and #280. Without this, installing spp_mis_demo_v2 on top of those PRs breaks:

Changes

  • STORY_AREA_MAP remapped to the new PSGC p-code IDs. Ten stories map 1:1 to the same city; four whose original barangay/city is absent from the curated dataset (Bacoor, and the Commonwealth/Poblacion/Real barangays) are reassigned to distinct municipalities so the 14 stories still light up 14 distinct areas on the demo map. Each entry carries a comment naming the city, since the raw p-codes are opaque.
  • demo_gis_reports.xml switched from the removed booleans to dimension_ids referencing the gender and age_group demographic dimensions. The two group-filtered reports also set member_expansion="expand" so demographic dimensions are read off individual members rather than the groups.
  • Explicit spp_metric_service dependency added for the demographic dimension records referenced above (previously only transitive via spp_gis_report).
  • Version bump 19.0.2.0.119.0.2.0.2 + HISTORY entry.

⚠️ Merge order

This PR depends on the new schemas from #277 and #280 and cannot build on 19.0 until both have merged. Please merge those first (and rebase this branch onto the result).

Verification

…eport schemas

The re-lands in #277 and #280 rename the Philippine area external IDs to
curated PSGC p-codes and replace the boolean GIS-report disaggregation flags
with dimension_ids, which silently broke this module's demo data: PHL story
registrants lost their area assignment and the demo GIS reports failed to load.

Remap STORY_AREA_MAP to the new p-code IDs (distinct municipalities for stories
whose barangay or city is absent from the curated set), switch the demo reports
to dimension_ids + member_expansion, and depend on spp_metric_service explicitly.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the demo GIS reports to use the new disaggregation model by replacing the deprecated boolean flags (disaggregate_by_gender and disaggregate_by_age) with dimension_ids referencing demographic dimensions from spp_metric_service. It also adds spp_metric_service as a dependency in the manifest. Additionally, the Philippine story areas in STORY_AREA_MAP are remapped to curated PSGC p-code area external IDs, and the module version is bumped to 19.0.2.0.2 with corresponding history notes. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.43%. Comparing base (bf61488) to head (797d5f2).
⚠️ Report is 1 commits behind head on 19.0.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             19.0     #295       +/-   ##
===========================================
- Coverage   74.86%   53.43%   -21.43%     
===========================================
  Files        1093      118      -975     
  Lines       63718    10902    -52816     
===========================================
- Hits        47701     5826    -41875     
+ Misses      16017     5076    -10941     
Flag Coverage Δ
endpoint_route_handler ?
fastapi ?
spp_aggregation ?
spp_alerts ?
spp_analytics ?
spp_api_v2 ?
spp_api_v2_change_request ?
spp_api_v2_cycles ?
spp_api_v2_data ?
spp_api_v2_entitlements ?
spp_api_v2_gis ?
spp_api_v2_products ?
spp_api_v2_programs ?
spp_api_v2_service_points ?
spp_api_v2_simulation ?
spp_api_v2_vocabulary ?
spp_approval ?
spp_area ?
spp_area_hdx ?
spp_attachment_av_scan ?
spp_audit ?
spp_audit_programs ?
spp_banking ?
spp_base_common 90.26% <ø> (ø)
spp_base_setting ?
spp_case_base ?
spp_case_cel ?
spp_case_demo ?
spp_case_entitlements ?
spp_case_graduation ?
spp_case_programs ?
spp_case_registry ?
spp_case_session ?
spp_cel_domain ?
spp_cel_event ?
spp_cel_registry_search ?
spp_cel_vocabulary ?
spp_change_request_v2 ?
spp_claim_169 ?
spp_cr_type_assign_program ?
spp_cr_types_advanced ?
spp_cr_types_base ?
spp_dci ?
spp_dci_client ?
spp_dci_client_dr ?
spp_dci_client_ibr ?
spp_dci_client_sr ?
spp_dci_compliance ?
spp_dci_demo 0.00% <ø> (-69.24%) ⬇️
spp_dci_indicators ?
spp_dci_server ?
spp_dci_server_social ?
spp_demo ?
spp_demo_phl_luzon ?
spp_disability_registry ?
spp_drims ?
spp_drims_sl ?
spp_drims_sl_demo ?
spp_encryption ?
spp_farmer_registry ?
spp_farmer_registry_cr ?
spp_farmer_registry_demo ?
spp_farmer_registry_vocabularies ?
spp_gis ?
spp_gis_indicators ?
spp_gis_report ?
spp_graduation ?
spp_grm ?
spp_grm_case_link ?
spp_grm_demo ?
spp_hazard ?
spp_hazard_programs ?
spp_hxl_area ?
spp_import_match ?
spp_indicator ?
spp_irrigation ?
spp_land_record ?
spp_metric ?
spp_metric_service ?
spp_metrics_core ?
spp_metrics_services ?
spp_mis_demo_v2 8.39% <ø> (-59.54%) ⬇️
spp_oauth ?
spp_program_geofence ?
spp_programs 65.27% <ø> (ø)
spp_registrant_gis ?
spp_registry 86.83% <ø> (ø)
spp_registry_group_hierarchy ?
spp_scoring ?
spp_scoring_programs ?
spp_security 66.66% <ø> (ø)
spp_service_points ?
spp_simulation ?
spp_starter_disability_registry ?
spp_starter_farmer_registry ?
spp_starter_social_registry ?
spp_starter_sp_mis ?
spp_statistic ?
spp_storage_backend ?
spp_studio ?
spp_studio_change_requests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
spp_mis_demo_v2/__manifest__.py 0.00% <ø> (ø)
spp_mis_demo_v2/models/mis_demo_generator.py 7.04% <ø> (-53.76%) ⬇️

... and 988 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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