feat: milestone state machine + propose flow + task state machine #8

Merged
hzhang merged 23 commits from feat/milestone-propose-state-machine into main 2026-03-19 11:11:09 +00:00
2 changed files with 3 additions and 4 deletions
Showing only changes of commit ec91a15f65 - Show all commits

View File

@@ -173,9 +173,9 @@ def create_milestone_task(project_id: int, milestone_id: int, task_data: schemas
task = Task(
title=data.get("title"),
description=data.get("description"),
task_type=data.get("task_type", "task"),
task_type=data.get("task_type", "issue"),
task_subtype=data.get("task_subtype"),
status=TaskStatus.OPEN,
status=TaskStatus.PENDING,
priority=TaskPriority.MEDIUM,
project_id=project_id,
milestone_id=milestone_id,

View File

@@ -7,7 +7,7 @@ import enum
class TaskType(str, enum.Enum):
"""Task type enum'issue' is a subtype of task, not the other way around."""
"""Task type enum."""
ISSUE = "issue"
MAINTENANCE = "maintenance"
RESEARCH = "research"
@@ -15,7 +15,6 @@ class TaskType(str, enum.Enum):
STORY = "story"
TEST = "test"
RESOLUTION = "resolution"
TASK = "task"
class TaskStatus(str, enum.Enum):