Repositories
Code organization
PBMS is developed as a single consolidated repository. All the components that make up PBMS — the Odoo application, the decoupled background-task engine, the portal APIs, the Docker packaging, and the Helm chart — live together in one monorepo.
Repository: OpenG2P/pbms
odoo/
The main PBMS application built on Odoo — benefit program definition, benefit codes, geographies, service providers, rules and cycles, and beneficiary-list creation. Includes the core modules, the extension modules (target registry names & models, eligibility & entitlement summary views, and the UI theme under odoo/extensions/), and the bundled community addons under odoo/community-addons/.
core/
The decoupled eligibility & entitlement engine — the Celery Beat Producers and Celery Worker tasks that perform all asynchronous processing (beneficiary lists, entitlements, summaries, disbursement envelopes and batches), together with the shared PBMS and background-task data models.
extensions/
Registry adapter extensions for the background-task engine — the registry models and the APIs behind the eligibility & entitlement summary views.
apis/
The FastAPI portal services — the Beneficiary (self-service) Portal API and the Staff Portal API.
docker/
Dockerfiles that build the PBMS runtime images (Odoo, the two Celery runtimes, and the portal APIs) from the local source in this repository.
deployment/
The single Helm chart (openg2p-pbms) that installs and runs all of PBMS.
Other repositories used by PBMS
Besides its own repository, PBMS builds on a small number of shared OpenG2P libraries and services. These are not part of PBMS and are consumed as external dependencies:
Shared FastAPI base libraries (configuration, controllers, authentication, and crypto/signing) used by the portal APIs and the background-task engine.
Shared Odoo addons baked into the PBMS Odoo (core) image at build time.
Provides the G2P Bridge data models used by the Celery workers, and is the downstream component PBMS hands disbursements to.
The OpenG2P Helm chart repository from which the published PBMS chart is served.
PBMS also depends at runtime on shared OpenG2P commons services (PostgreSQL, Keycloak, MinIO, Keymanager, mail) and reads from a Social Registry (e.g. national-social-registry). These are deployed separately and are not part of the PBMS build.
Previous (pre-consolidation) repositories
PBMS was previously developed across several separate repositories, which have now been consolidated into the single OpenG2P/pbms repository. Those repositories will be archived on GitHub. For reference, see Pre-Consolidation Repositories in the archive.
Last updated
Was this helpful?