POST /tasks/{id}/move with section_id silently strips parent_id from subtasks
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 250
- Fork
- 34
- Merge trung bình
- 3 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Doist/todoist-api-python
-
api enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Doist/todoist-api-python#219 · 1 bình luận ·
-
api enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Doist/todoist-api-python#206 · 1 bình luận ·
-
api enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Doist/todoist-api-python#205 · 6 bình luận · 1 reaction ·
-
Pick model field default values Đang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Doist/todoist-api-python#202 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Doist/todoist-api-python#193 · 4 bình luận ·
Tất cả issue của Doist/todoist-api-python
Issue tương tự
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Đang mởarea: harness bug status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Human-Agent-Society/reef#625 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
learningequality/kolibri#15351 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Name consistency Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eellak/triplestore#65 · 1 bình luận ·