Skip to content

Commit 2983985

Browse files
refactor(spp_dci_openg2p): relabel user-facing strings from "OpenG2P" to "Social Registry"
Operators see neutral terminology in the SR-import wizard and the DCI configuration screens; vendor identity stays in technical slugs (xml ids, vendor='openg2p' dispatcher key, code='openg2p_dr', Python class names) so the routing layer is unaffected. Touched UI strings only: data source / data provider names, CEL variable labels and descriptions, UIN id-type definition, wizard form title, and the Source Registry field's help tooltip.
1 parent cdbce38 commit 2983985

6 files changed

Lines changed: 12 additions & 11 deletions

File tree

spp_dci_openg2p/data/openg2p_cel_variables.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@
6464
-->
6565
<record id="var_is_poor" model="spp.cel.variable">
6666
<field name="name">is_poor</field>
67-
<field name="label">Is Poor (OpenG2P SR income_level)</field>
67+
<field name="label">Is Poor (Social Registry income_level)</field>
6868
<field
6969
name="description"
70-
>Poverty proxy sourced from OpenG2P SR's `income_level` field. CEL rules match `is_poor == "low"` (or other income tiers). The variable surfaces the raw `income_level` string, not a boolean — the eligibility rule decides which level counts as poor. See ADR-024 for the federated topology and CONFIGURE.md for the field-mapping rationale.</field>
70+
>Poverty proxy sourced from the Social Registry's `income_level` field. CEL rules match `is_poor == "low"` (or other income tiers). The variable surfaces the raw `income_level` string, not a boolean — the eligibility rule decides which level counts as poor. See ADR-024 for the federated topology and CONFIGURE.md for the field-mapping rationale.</field>
7171
<field name="category_id" ref="spp_studio.variable_category_economic" />
7272
<field name="value_type">string</field>
7373
<field name="source_type">external</field>
@@ -87,10 +87,10 @@
8787
<field name="name">has_dependent_under_school_age</field>
8888
<field
8989
name="label"
90-
>Has Dependent Under School Age (DEFERRED — OpenG2P does not expose)</field>
90+
>Has Dependent Under School Age (DEFERRED — Social Registry does not expose)</field>
9191
<field
9292
name="description"
93-
>Deferred: OpenG2P's SR `reg_records[0]` does not include household composition or dependent birth dates, so this variable cannot be sourced today. Kept as an inactive placeholder for the demo rule's eventual revival. See CONFIGURE.md "Deferred features" for the path forward.</field>
93+
>Deferred: the Social Registry's `reg_records[0]` does not include household composition or dependent birth dates, so this variable cannot be sourced today. Kept as an inactive placeholder for the demo rule's eventual revival. See CONFIGURE.md "Deferred features" for the path forward.</field>
9494
<field name="category_id" ref="spp_studio.variable_category_demographics" />
9595
<field name="value_type">boolean</field>
9696
<field name="source_type">external</field>

spp_dci_openg2p/data/openg2p_data_provider.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
of 300s for the demo; production deployments may raise this.
99
-->
1010
<record id="openg2p_dr_provider" model="spp.data.provider">
11-
<field name="name">OpenG2P Disability Registry</field>
11+
<field name="name">Social Registry</field>
1212
<field name="code">openg2p_dr</field>
1313
<field name="active" eval="True" />
1414
<field name="dci_data_source_id" ref="openg2p_dr_source" />

spp_dci_openg2p/data/openg2p_data_source.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
(e.g., is_poor, has_dependent_under_school_age) into CEL.
2222
-->
2323
<record id="openg2p_dr_source" model="spp.dci.data.source">
24-
<field name="name">OpenG2P Social Registry</field>
24+
<field name="name">Social Registry</field>
2525
<field name="code">openg2p_dr</field>
2626
<field name="registry_type">SR</field>
2727
<field name="vendor">openg2p</field>
@@ -45,6 +45,6 @@
4545
<field name="state">draft</field>
4646
<field
4747
name="notes"
48-
>OpenG2P playground preset (Social Registry role). Routed through the bridge's _handler_sr by registry_type=SR; the vendor-specific service (services/openg2p_social_service.py) is selected by vendor=openg2p. See ADR-024 for the federated demo topology.</field>
48+
>Social Registry DCI source preset. Routed through the bridge's _handler_sr by registry_type=SR; the vendor-specific service (services/openg2p_social_service.py) is selected by vendor=openg2p. See ADR-024 for the federated demo topology.</field>
4949
</record>
5050
</odoo>

spp_dci_openg2p/data/openg2p_id_types.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<field name="target_type">individual</field>
2626
<field
2727
name="definition"
28-
>Universal Identification Number — the canonical SPDCI identifier sent to OpenG2P's DCI search endpoint as the `id_type` field.</field>
28+
>Universal Identification Number — the canonical SPDCI identifier sent to the Social Registry's DCI search endpoint as the `id_type` field.</field>
2929
<field name="sequence">20</field>
3030
</record>
3131
</odoo>

spp_dci_openg2p/views/sr_import_wizard_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<field name="name">spp.dci.sr.import.wizard.form</field>
1111
<field name="model">spp.dci.sr.import.wizard</field>
1212
<field name="arch" type="xml">
13-
<form string="Import Registrants from SR">
13+
<form string="Import Registrants from Social Registry">
1414
<field name="state" invisible="1" />
1515
<!-- =========================================== -->
1616
<!-- Step 1: Configure -->

spp_dci_openg2p/wizards/sr_import_wizard.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ class SppDciSrImportWizard(models.TransientModel):
6262
required=True,
6363
domain="[('registry_type', '=', 'SR'), ('vendor', '=', 'openg2p'), ('active', '=', True)]",
6464
default=lambda self: self._default_data_source(),
65-
help="DCI data source to query. Restricted to vendor=openg2p SR "
66-
"sources — this wizard uses OpenG2P-specific request semantics.",
65+
help="DCI data source to query. Restricted to active Social Registry "
66+
"(SR) sources configured with the vendor-specific request semantics "
67+
"used by this wizard.",
6768
)
6869

6970
discovery_mode = fields.Selection(

0 commit comments

Comments
 (0)