Project

General

Profile

Actions

Bug #107

open

Cannot create task with description

Added by Sam Pearson 21 days ago. Updated 21 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
01/01/2026
Due date:
% Done:

0%

Estimated time:

Description

Creating a task with this request

{
  "title": "Task with description",
  "description": "This is a detailed description of the task"
}

generates this task/response

{
  "completed": false,
  "completed_at": null,
  "created_at": "2026-01-01T17:31:35.253612",
  "description": null,
  "id": 31,
  "principles": [],
  "project_id": null,
  "tags": [],
  "title": "Task with description",
  "updated_at": "2026-01-01T17:31:35.253617",
  "user_id": 2
}

Note the missing description

Actions #1

Updated by Sam Pearson 21 days ago

Check out this function from the task repository:

def create(self, user_id: int, title: str) -> Task:
    """Create a new task"""
    task = Task(user_id=user_id, title=title)
    self.session.add(task)
    self.session.commit()
    return task

only bringing in the id and title. The service file and api route similarly only care about the id and title; going to need to update this to work with all fields.

Actions #2

Updated by Sam Pearson 21 days ago

  • Description updated (diff)
Actions

Also available in: Atom PDF