Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#258 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
250
Forks
34
Merge medio
3 d 20 h
PR fusionados (30 d)
2

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Doist/todoist-api-python

Todos los issues de Doist/todoist-api-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.