Add the one-time migration's provisioning command for migrated reports
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
- #944 de @anth-volk — cerrado sin fusionar
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start from the Simulation Entrypoint's migration/provisioning entry points and the existing Public API migration command; the payload names no files, so locate where the simulation schema, runtime role and v1 report export are configured. The command must read the versioned export, create simulation.simulations rows keyed by legacy_simulation_id, then simulation.reports rows keyed by legacy_report_id with year/options and no run, write the v1-to-v2 report ID map, and define the export schema/model/docs. Done means a dry run works, a second run creates nothing new, and the Public API command can consume the map; add tests for idempotency and dry-run.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
During the one-time migration of saved v1 reports to the v2 back end, the Simulation Entrypoint's simulation schema needs a row in simulation.reports for every v1 report an account row refers to, with its baseline and reform rows in simulation.simulations. Nothing creates those rows today.
What: an operator command, not an HTTP route, that reads the Public API's export of v1 report definitions and creates each report's simulations (keyed by legacy_simulation_id) and then the report (keyed by legacy_report_id), with its year and options and no run. It writes a file mapping each v1 report ID to its v2 report ID, which the Public API's migration command applies to account rows. It can run again without creating anything new, has a dry run, and connects as the runtime role.
Why: migrated reports must exist in sim before the Public API can point account rows at them. The first time a migrated report is opened, the Public API calculates it on the current catalog version.
The Public API's export does not exist yet, so this work also defines the input file's format: a versioned schema with a model and documentation, which the export will produce. The command is temporary and is removed once the v1 paths are retired.
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 1 d 12 h
- PR fusionados (30 d)
- 71
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PolicyEngine/policyengine-sim-api
-
Sim's table models still map the report columns API v1 dropsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PolicyEngine/policyengine-sim-api#1110 ·
Los mantenedores suelen responder en 1 día
-
Rename Populace to Microcosm in docstrings and test namesPosiblemente ocupada @MaxGhenis la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
PolicyEngine/policyengine-sim-api#1086 ·
Los mantenedores suelen responder en 1 día
-
Update policyengine to 6.20.2Posiblemente ocupada @policyengine la tomó hace 6 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 63/100
PolicyEngine/policyengine-sim-api#1083 ·
Los mantenedores suelen responder en 1 día
-
Update policyengine to 6.7.3Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 Medio día Aptitud para principiantes 70/100
PolicyEngine/policyengine-sim-api#823 ·
Los mantenedores suelen responder en 1 día
-
Integration tests fail due to missing UV virtual environment setupPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
PolicyEngine/policyengine-sim-api#314 ·
Los mantenedores suelen responder en 1 día
Todos los issues de PolicyEngine/policyengine-sim-api
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
UKGovernmentBEIS/inspect_ai#6733 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ProyectoRespira/respira-webapp#334 ·
Los mantenedores suelen responder en 1 día
-
bug security-alert
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
spectrayan/carefold#391 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Jakeschincariol/instagram-agent-skill#83 ·
Los mantenedores suelen responder en 10 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 64/100