api: allow setting the preset id on a workspace build when a user creates a new workspace
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 3
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Once a user has chosen a preset and submits the form to create a workspace, the preset_id should be set on the resulting entry in the `workspace_builds` table. It is not yet clear which endpoints will have to be modified for this, but those can be found by creating a workspace from the web UI and inspecting the network traffic. These endpoints might not directly modify the `workspace_builds` table. It is possible that there is some chain through which the preset_id will have to pass to finally reach the query that sets it in the database.
Acceptance Criteria:
* The minimal set of endpoints required to set the preset ID for a new workspace build is modified optionally accept such a parameter.
* All existing tests pass without significant modification, as existing behaviour without presets should remain unaffected.
* Unit tests to show that if a preset ID is provided, then the value is correctly set in the database.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Crea un workspace dalla web UI e ispeziona il traffico di rete per identificare la catena di endpoint che trasferisce i dati di creazione nella tabella workspace_builds. Segui preset_id attraverso il set minimo di endpoint e aggiungi unit tests che mostrino che un valore fornito viene memorizzato, mentre il comportamento esistente senza preset rimane invariato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Ambito
- api, backend, database
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100