Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

POST /tasks/{id}/move with section_id silently strips parent_id from subtasks

オープン
#258 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
api

調査の方向性

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

  1. Create a parent task and a subtask under it (parent_id set).
  2. Call POST /api/v1/tasks/{subtask_id}/move with body {"section_id": "<section_id>"}.
  3. Fetch the task again: parent_id is now null.

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 the section_id variant drops it.
  • The task update endpoint (POST /api/v1/tasks/{task_id}) rejects parent_id as 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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Doist/todoist-api-python のほかの issue

Doist/todoist-api-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。