Hierarchial Patch URLs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia dal campo id del modello Patch e dalla gestione esistente degli URL delle patch descritta nell’issue. Definisci come un identificatore specifico del progetto debba coesistere con gli URL legacy, quindi verifica che gli URL specifici del progetto vengano risolti correttamente, mantenendo al contempo il supporto per i vecchi riferimenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
From @stephenfin on June 29, 2015 21:24
Overview
At the moment, patchwork uses the Patch model id field for referencing patches via URL. This means if multiple projects exist then patch IDs won't be sequential (some IDs will be allocated to patches of one project, others to another). This works, but it doesn't allow for easy programmatic scanning of projects and doesn't translate well to REST APIs. Instead, IDs should be unique to the project. We can do this by adding a second ID field and allowing users to reference this. This will lead to a transformation like so:
/10234 --> /project_a/1000
/10245 --> /project_b/567
/10246 --> /project_c/8236
/10247 --> /project_a/1001
We should also keep the old way of referencing such resources but with an eye on deprecating these in the future.
Dependencies
N/A
Additional Work Items
N/A
Alternatives
We continue to use the patch URLs we use currently.
Useful resources
N/A
Copied from original issue: stephenfin/patchwork#21
- Lingua principale
- Python
- Stelle
- 317
- Fork
- 91
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri 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 getpatchwork/patchwork
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getpatchwork/patchwork#668 ·
-
bug web-ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
getpatchwork/patchwork#546 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
getpatchwork/patchwork#664 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
getpatchwork/patchwork#663 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
getpatchwork/patchwork#645 ·
Tutte le issue di getpatchwork/patchwork
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
learningequality/ricecooker#747 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
run-llama/llama_index#23199 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
KhronosGroup/glTF-Blender-IO#2769 ·