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 15h
- PR unite (30g)
- 35
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
-
Releases do not check that each environment calls its own simulation serviceForse già presa @anth-volk l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 46/100
PolicyEngine/policyengine-api#4002 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 18/100
PolicyEngine/policyengine-api#4000 ·
I maintainer di solito rispondono entro 3 giorni
-
Register and check rules for using, installing, testing and relocking from uv.lockForse 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#3996 ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di PolicyEngine/policyengine-api
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
CLIMADA-project/climada_python#1337 ·
I maintainer di solito rispondono entro 3 giorni
-
tail without reverseAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
8go/matrix-commander#233 ·
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
documentation enhancement priority:high size:M
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Validate non-divisible effective batch sizes in the Unsloth LoRA backendForse già presa @debesh-biswas l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100