Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#3,956 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
57/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
api

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
18
Forks
33
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
35

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus PolicyEngine/policyengine-api

Alle Issues in PolicyEngine/policyengine-api

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.