You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model version publishes the new UK firm entity as a person #764
policyengine-core flags any root population with no members as is_person. policyengine-uk's new firm entity (PolicyEngine/policyengine-uk#2940) is one, so _populate_entities in src/policyengine/tax_benefit_models/common/model_version.py would publish two person entities for UK: person and firm.
Effects once a policyengine-uk release with firm is certified against this package:
tests/test_model_entities.py fails, which blocks UK release certification.
The policyengine-api v2 catalog check for "exactly one person entity" (data/v2/catalog/extraction.py) fails.
app-v2 would offer firm inputs as person variables.
Proposed fix: publish is_person only for the system's person entity (the first core entity flagged is_person, matching core's person_entity rule), compared by key so cloned systems still work.
Activity