Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#3,956 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
57/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
api

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
18
Forks
33
Merge médio
2d 18h
PRs com merge (30d)
36

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de PolicyEngine/policyengine-api

Todas as issues de PolicyEngine/policyengine-api

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.