Let a saved reform or household point at a new v2 policy or household without changing its ID
I maintainer di solito rispondono entro 3 giorni
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
Start by reading the PATCH handlers for /v2/user-policies/{id} and /v2/user-households/{id}, then follow how the existing v1 reference fields validate ownership and country. Add support for the requested v2 IDs while preserving the saved item's ID, name and creation time. Done when both endpoints accept an existing policy or household in the saved item's country and reject records that fail those checks.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What
PATCH /v2/user-policies/{id} should accept policy_id, and PATCH /v2/user-households/{id} should accept household_id. Each must check that the caller owns the saved item and that the new policy or household exists in the saved item's country. The saved item keeps its ID, name and creation time.
Why
Policies and households in v2 are immutable: editing a reform or a household creates a new row. Today a saved reform or household can be pointed at another record only through its v1 reference (legacy_policy_id or legacy_household_id), so once the app saves on v2, editing a saved item would mean deleting it and saving a new one with a new ID. Reports link to saved reforms by that ID, so it has to stay the same.
The app does not call these fields yet; it will once it moves to the v2 routes.
- Lingua principale
- Python
- Stelle
- 18
- Fork
- 33
- Merge medio
- 2g 18h
- PR unite (30g)
- 36
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PolicyEngine/policyengine-api
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
PolicyEngine/policyengine-api#3911 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
PolicyEngine/policyengine-api#3910 ·
I maintainer di solito rispondono entro 3 giorni
-
Stop serving economy results cached with ×100 decile relative changesForse già presa @anth-volk l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
PolicyEngine/policyengine-api#4025 ·
I maintainer di solito rispondono entro 3 giorni
-
Store the metadata v3 reads in the v2 catalog, from PolicyEngine.py's public recordsForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
PolicyEngine/policyengine-api#4022 ·
I maintainer di solito rispondono entro 3 giorni
-
Request UK constituency and local-authority impacts separately from the national economy resultForse già presa @anth-volk l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
PolicyEngine/policyengine-api#4021 ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di PolicyEngine/policyengine-api
Issue simili
-
style: article/section 📝 system: cloud.rc ☁️ system: security 🔐
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
uabrc/uabrc.github.io#1262 ·
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
NCAR/miles-credit#526 ·
-
documentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
conda/conda-lock#957 ·
I maintainer di solito rispondono entro 1 giorno
-
Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
aws-samples/sample-per-model-bedrock#464 ·
I maintainer di solito rispondono entro 1 giorno