Read dynamics from API v1's dynamic_parameters and dynamic_parameter_values tables
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 52/100
Direção de pesquisa
Start by reading read_dynamic_reform in policy_reform.py, the model mappings for ParameterValue, and the service privilege list used by /ready. Check the existing tests and helpers that create parameter rows, then compare their table layout with API v1's C1 · 50 revision. Done means dynamic reads use the new tables, current-law rows are excluded, empty dynamics are refused, and the privilege and test helpers cover both tables.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
API v1's C1 · 50 moves dynamic parameters out of parameters into their own table, dynamic_parameters, and their current-law values and every dynamic's values out of parameter_values into dynamic_parameter_values (a nullable dynamic_id, where null means current law, and no policy_id). Its revision moves every stored row with its ID, and its grants give the simulation service's role SELECT on both tables. parameter_values.dynamic_id stays in API v1 until a later change drops it.
The simulation service still reads a dynamic's values from parameter_values rows that name it (read_dynamic_reform, policy_reform.py), and maps parameter_values.dynamic_id. Once C1 · 50's revision has run, it finds no values for any dynamic and refuses every one with 400 dynamic_without_values. Once API v1 drops parameter_values.dynamic_id, a sim release that still filters on it fails every dynamic read with a database error instead of that 400.
Wanted:
- sim maps
dynamic_parametersanddynamic_parameter_values, and reads a dynamic's values and names from them, checking the names against the running catalog version's dynamic parameters. Current-law rows are never read, and a dynamic with no values is still refused; ParameterValueno longer mapsdynamic_id, and policy reads are unchanged;- the service's privilege list, which
/readyand the deploy smoke check use, requiresSELECTon both tables; - the test helpers write each parameter and value in the table of its kind, as API v1 does;
public-api-commitmoves to C1 · 50's merge commit on API v1'smaster.
🤖 Generated with Claude Code
- Linguagem predominante
- Python
- Estrelas
- 1
- Forks
- 1
- Merge médio
- 1d 14h
- PRs com merge (30d)
- 60
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PolicyEngine/policyengine-sim-api
-
Rename Populace to Microcosm in docstrings and test namesTalvez já em andamento @MaxGhenis assumiu há 10 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
PolicyEngine/policyengine-sim-api#1086 ·
Mantenedores costumam responder em até 1 dia
-
Update policyengine to 6.20.2Talvez já em andamento @policyengine assumiu há 10 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 63/100
PolicyEngine/policyengine-sim-api#1083 ·
Mantenedores costumam responder em até 1 dia
-
Update policyengine to 6.7.3Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 2/5 Meio dia Facilidade para iniciantes 70/100
PolicyEngine/policyengine-sim-api#823 ·
Mantenedores costumam responder em até 1 dia
-
Integration tests fail due to missing UV virtual environment setupTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
PolicyEngine/policyengine-sim-api#314 ·
Mantenedores costumam responder em até 1 dia
-
Run one warm-up calculation in the simulation workers' snapshot hookTalvez já em andamento @anth-volk assumiu há 1 dia. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 25/100
PolicyEngine/policyengine-sim-api#1133 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de PolicyEngine/policyengine-sim-api
Issues semelhantes
-
claude-subscription-directsdk: tool calls with raw control characters in string values are droppedAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
NousResearch/hermes-official-plugins#538 ·
Mantenedores costumam responder em até 3 dias
-
bug(qdiffusion): EnergyModel.score_visible_logits computes biased visible/hidden on-ratios when solver returns variable solution counts per candidateTalvez já em andamento @houzhongyu assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
qboson/kaiwu-pytorch-plugin#2133 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
needs-triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
MakazhanAlpamys/Soup#3415 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 2 dias