Calculate stored households through /v2/household-calculations on the simulation service's household jobs
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
Start by reading the existing /calculate routes, the household_jobs model, and /v2/model-catalog in the Public API, then compare their behavior with the simulation service. Implement the listed submission checks and job read route, and update live staging checks with a parity set. Done when both routes, catalog SPM availability, and the requested checks work as described; pull request #4274 is already open.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
The detailed-save API calculates single households as household jobs in the simulation service, which stores each in the Public API's household_jobs table. The Public API needs routes that v3 and callers without an account can use, to replace /calculate for stored households.
Wanted: POST /v2/household-calculations and GET /v2/household-calculations/{id}.
- Before calling the simulation service, the submission checks, in order:
- the country's
household_enabled; - that the household, and a named policy, are stored in that country (404 otherwise);
- that the household has a
default_year; - that the policy sets no parameter the running catalog version no longer has (422
missing_parameters, listing them).
- the country's
- Reading returns the job from
household_jobsdirectly, without calling the simulation service. /v2/model-catalogalso says whether each catalog version offers SPM settings.- Live staging checks include a parity set against the Public API's own calculation.
This replaces #4092, whose migration chain and reads no longer fit master.
- Linguagem predominante
- Python
- Estrelas
- 18
- Forks
- 33
- Merge médio
- 2d 10h
- PRs com merge (30d)
- 124
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-api
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
PolicyEngine/policyengine-api#4270 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
PolicyEngine/policyengine-api#4037 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
PolicyEngine/policyengine-api#3911 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
PolicyEngine/policyengine-api#3910 ·
Mantenedores costumam responder em até 1 dia
-
Let admins delete a signed-in user's accountTalvez já em andamento @anth-volk assumiu hoje. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
PolicyEngine/policyengine-api#4271 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de PolicyEngine/policyengine-api
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
FAIRmat-NFDI/pynxtools#861 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
NVIDIA/nsight-python#88 ·
Mantenedores costumam responder em até 1 dia
-
Criteria can pass when the deliverable is missingTalvez já em andamento @clementtisseau assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
harveyai/harvey-labs#217 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
priority/medium roadmap/v1.1.1 stakeholder/rapr type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
databrickslabs/ontos#1420 ·
Mantenedores costumam responder em até 3 dias