POST /tasks/{id}/move with section_id silently strips parent_id from subtasks
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
Direzione di ricerca
Locate the implementation and tests for POST /api/v1/tasks/{task_id}/move, then reproduce the section_id path with a parent task and subtask. Compare it with the parent_id path and add coverage showing that moving by section preserves the parent relationship or returns an explicit warning or error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
When moving a subtask to a section via POST /api/v1/tasks/{task_id}/move with {"section_id": "..."}, the API silently clears the task's parent_id, promoting the subtask to a top-level task. The response returns 200 with no warning that the parent relationship was removed.
Steps to reproduce
- Create a parent task and a subtask under it (
parent_idset). - Call
POST /api/v1/tasks/{subtask_id}/movewith body{"section_id": "<section_id>"}. - Fetch the task again:
parent_idis nownull.
Expected behavior
Moving a subtask between sections should preserve its parent_id, or the API should return an error/warning if detaching the parent is intentional.
Actual behavior
The subtask is silently detached and becomes a top-level task in the target section.
Additional context
- Moving with
{"parent_id": "<parent_id>"}on the same endpoint does re-attach the task, so the move endpoint clearly understands parentage. Only thesection_idvariant drops it. - The task update endpoint (
POST /api/v1/tasks/{task_id}) rejectsparent_idas an unsupported field, so the move endpoint is currently the only way to restore the relationship after it is lost. - Observed against REST API v1 on 2026-09-22.
- Lingua principale
- Python
- Stelle
- 250
- Fork
- 34
- Merge medio
- 3g 20h
- PR unite (30g)
- 2
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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 Doist/todoist-api-python
-
api enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Doist/todoist-api-python#219 · 1 commento ·
-
api enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Doist/todoist-api-python#206 · 1 commento ·
-
api enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Doist/todoist-api-python#205 · 6 commenti · 1 reazione ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Doist/todoist-api-python#202 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Doist/todoist-api-python#193 · 4 commenti ·
Tutte le issue di Doist/todoist-api-python
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
stephrobert/dsoxlab#238 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
sublimehq/package_control#1780 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
nwg-piotr/nwg-displays#145 ·