POST /tasks/{id}/move with section_id silently strips parent_id from subtasks
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 250
- フォーク
- 34
- 平均マージ
- 3日 20時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Doist/todoist-api-python のほかの issue
-
api enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Doist/todoist-api-python#219 · コメント 1 件 ·
-
api enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Doist/todoist-api-python#206 · コメント 1 件 ·
-
api enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
Doist/todoist-api-python#205 · コメント 6 件 · リアクション 1 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Doist/todoist-api-python#202 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Doist/todoist-api-python#193 · コメント 4 件 ·
Doist/todoist-api-python の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·