Record each run of a v2 simulation and report, and key results by run
Mantenedores costumam responder em até 2 dias
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 12/100
Direção de pesquisa
The v2 simulation tables live in the Supabase database, so start with the schema migrations that create simulations, reports, report_runs and household_jobs, and the result tables they feed. The issue asks for a new simulation_runs table, a join record between report runs and simulation runs, and role grants for two new database roles, so the migration needs to apply cleanly before the roles exist. Done means the migration applies on a fresh database, existing rows are kept, and no foreign keys cross from the simulation API tables to the Public API tables.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
API v2's simulation tables in the v2 Supabase database (simulations, reports, report_runs, household_jobs and the result tables) were designed for an execution model where each simulation ran once. We now want every run of a simulation or a report saved, with the PolicyEngine.py and country package versions it used, so a re-run keeps the earlier results, and the simulation API and its Modal workers will write these rows themselves.
What needs to change in the v2 schema:
- a
simulation_runstable: one row per run of a simulation, with its versions, status, Modal call and output file, instead of execution columns onsimulations; - a record of which simulation runs each report run combines, so a budget window's run can combine one pair per year;
- result rows keyed by the run that produced them;
household_jobsshaped for one household, one year and one policy, with its versions and Modal call;- no foreign keys between the tables the simulation API writes and the tables the Public API writes: each service checks the rows it refers to;
- table privileges for two new database roles, one for the simulation API and one for its Modal workers, declared so the deploy can apply them once an operator has created the roles, without failing before then.
No table is dropped.
- Linguagem predominante
- Python
- Estrelas
- 18
- Forks
- 33
- Merge médio
- 2d 18h
- PRs com merge (30d)
- 105
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 76/100
PolicyEngine/policyengine-api#4037 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 88/100
PolicyEngine/policyengine-api#3911 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
PolicyEngine/policyengine-api#3910 ·
Mantenedores costumam responder em até 2 dias
-
Update PolicyEngine bundle to 6.15.0Talvez já em andamento @policyengine assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 1/100
PolicyEngine/policyengine-api#4214 ·
Mantenedores costumam responder em até 2 dias
-
Define each country's years once and refuse society-wide requests for other yearsTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 54/100
PolicyEngine/policyengine-api#4211 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de PolicyEngine/policyengine-api
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
didi/helixharness#18 ·
-
[MOVIE]: Airport '77 (1977)Abertarequest-theme
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
LizardByte/ThemerrDB#9883 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
NousResearch/hermes-agent#149885 ·
Mantenedores costumam responder em até 1 dia
-
Set cache_ok = True on GUID TypeDecorator to enable SQLAlchemy query cachingTalvez já em andamento @patelshivani2283-lab assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 91/100
fedora-infra/anitya#2157 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Project-MONAI/MONAI#9258 ·
Mantenedores costumam responder em até 3 dias