Skip to content

docs(spp_farmer_registry_demo,spp_mis_demo_v2): sync descriptions with code#131

Open
emjay0921 wants to merge 5 commits into19.0from
demo-readme-sync
Open

docs(spp_farmer_registry_demo,spp_mis_demo_v2): sync descriptions with code#131
emjay0921 wants to merge 5 commits into19.0from
demo-readme-sync

Conversation

@emjay0921
Copy link
Contributor

Why is this change needed?

  • spp_farmer_registry_demo had no readme/DESCRIPTION.md at all
  • spp_mis_demo_v2 DESCRIPTION.md was out of sync with the actual code (wrong program count, missing seeded generation details)

How was the change implemented?

  • Created new DESCRIPTION.md for spp_farmer_registry_demo documenting seeded generator, 8 story farms, ~730 volume farms, 5 programs
  • Updated spp_mis_demo_v2 DESCRIPTION.md: 6 -> 7 programs (added Conditional Child Grant), documented seeded volume generation, multi-locale support, geographic data loading

New unit tests

N/A (documentation only)

Unit tests executed by the author

N/A

How to test manually

Review the DESCRIPTION.md files for accuracy against the code.

Related links

…h code

- Create DESCRIPTION.md for spp_farmer_registry_demo (was missing)
- Fix spp_mis_demo_v2: 6 programs -> 7, document seeded generation,
  add Conditional Child Grant, multi-locale, geographic data loading
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on synchronizing and enhancing the documentation for two demo data generators, spp_farmer_registry_demo and spp_mis_demo_v2. The changes ensure that the DESCRIPTION.md files accurately reflect the current capabilities and configurations of these modules, providing clearer guidance on their use, particularly regarding seeded data generation, updated program counts, and supported features like multi-locale and geographic data.

Highlights

  • New Documentation for spp_farmer_registry_demo: A new DESCRIPTION.md file was added for spp_farmer_registry_demo, comprehensively detailing its demo data generator capabilities, including 8 fixed story farms, approximately 730 volume farms generated via a seeded random generator, and 5 agricultural subsidy programs with CEL eligibility expressions.
  • Updated Documentation for spp_mis_demo_v2: The existing DESCRIPTION.md for spp_mis_demo_v2 was updated to reflect an increase from 6 to 7 social protection programs (now including a 'Conditional Child Grant'), document seeded volume generation for approximately 730 deterministic households, and highlight new features such as multi-locale support and geographic data loading.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

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

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 documentation for spp_farmer_registry_demo and spp_mis_demo_v2. A new DESCRIPTION.md is added for the farmer registry demo, and the existing one for the MIS demo is updated to reflect new features like additional programs and seeded data generation. The changes are accurate and improve the documentation. I have a couple of suggestions to further improve the documentation's consistency and formatting.

Comment on lines +17 to +19
| Model | Description |
| ------------------------------ | --------------------------------------------------- |
| `spp.farmer.demo.generator` | Core demo generator wizard with all generation logic |

Choose a reason for hiding this comment

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

medium

The markdown table formatting is a bit messy. For better readability and maintainability of the source, please align the columns.

Suggested change
| Model | Description |
| ------------------------------ | --------------------------------------------------- |
| `spp.farmer.demo.generator` | Core demo generator wizard with all generation logic |
| Model | Description |
|-------------------------------|------------------------------------------------------|
| `spp.farmer.demo.generator` | Core demo generator wizard with all generation logic |

All programs use CEL expressions with activated registry variables:

- **Universal Child Grant**: `r.is_group == true and child_count > 0` (member aggregation)
- **Conditional Child Grant**: First 1,000 days targeting for young children

Choose a reason for hiding this comment

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

medium

The newly added 'Conditional Child Grant' program is missing its CEL eligibility expression, unlike the other programs in this list. For consistency and completeness, please add the CEL expression.

@codecov
Copy link

codecov bot commented Mar 23, 2026

Codecov Report

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

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             19.0     #131    +/-   ##
========================================
  Coverage   69.96%   69.97%            
========================================
  Files         832      835     +3     
  Lines       48813    49061   +248     
========================================
+ Hits        34154    34331   +177     
- Misses      14659    14730    +71     
Flag Coverage Δ
spp_base_common 90.26% <ø> (ø)
spp_case_demo 94.34% <ø> (ø)
spp_dci_demo 69.23% <ø> (ø)
spp_farmer_registry_demo 54.01% <ø> (ø)
spp_grm_demo 81.16% <ø> (+1.29%) ⬆️
spp_mis_demo_v2 69.73% <ø> (-0.09%) ⬇️
spp_programs 45.51% <ø> (ø)
spp_security 66.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 15 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.

Include auto-generated README.rst and index.html from
oca-gen-addon-readme (Python 3.11) to match CI expectations.
- spp_case_demo: mention 3 background cases, clarify non-deterministic generation
- spp_grm_demo: list all 8 personas, add missing dependencies (spp_grm_registry, spp_grm_programs), clarify non-deterministic generation
Include auto-generated README.rst and index.html from
oca-gen-addon-readme (Python 3.11) to match CI expectations.
Delete README.md — its content is covered by readme/DESCRIPTION.md
(module description) and docs/USE_CASES.md (developer guide).
Fix "6 programs" -> "7 programs" in USE_CASES.md overview.
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