Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

UK metadata: moduleName is empty for every variable, and modelled_policies is a file path

Aperta
#3,956 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
api

Direzione di ricerca

Start by tracing the UK metadata response for GET /uk/metadata and compare it with the US response, focusing on how variables' module paths populate moduleName and how programs.yaml is loaded into modelled_policies. Check the relevant API tests and add coverage for both fields. Done means UK variables expose module names and modelled_policies contains parsed YAML data.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

Two fields in GET /uk/metadata (policyengine-uk 2.130.1) differ from /us/metadata:

  1. moduleName is empty for every UK variable. All 1,163 variables have moduleName: "". For the US, 6,104 of 6,167 variables have it (for example household.income.person.tip_income). The app groups household inputs by module, so every UK input lands in one "Other" group.
  2. modelled_policies is a file path, not data. It is the string /opt/venv/lib/python3.12/site-packages/policyengine_uk/programs.yaml. For the US it is the parsed object. It looks like the path to programs.yaml is returned without the file being loaded.

Request

  1. Fill moduleName for UK variables the same way as for the US (from the variable's module path in policyengine-uk).
  2. Return the parsed programs.yaml content in modelled_policies for the UK.

Context

The app works around (1) with a list of UK inputs keyed by name, and skips (2), in PolicyEngine/policyengine-app-v2.

Lingua principale
Python
Stelle
18
Fork
33
Merge medio
2g 18h
PR unite (30g)
36

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PolicyEngine/policyengine-api

Tutte le issue di PolicyEngine/policyengine-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.