mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[PR #397] [MERGED] Add typed request model for today-workflow task status endpoint #702
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#702
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/397
Author: @AJaySi
Created: 3/6/2026
Status: ✅ Merged
Merged: 3/8/2026
Merged by: @AJaySi
Base:
main← Head:codex/create-typed-request-model-for-task-status📝 Commits (1)
62d5cf7Add typed request model for today workflow task status updates📊 Changes
1 file changed (+22 additions, -5 deletions)
View changed files
📝
backend/api/today_workflow.py(+22 -5)📄 Description
Motivation
POST /api/today-workflow/tasks/{task_id}/status).statusvalues and limitcompletion_noteslength to match backend expectations and reduce invalid input.Description
TaskStatusEnuminbackend/api/today_workflow.pyto enumerate allowed status values (pending,in_progress,completed,skipped,dismissed).TaskStatusUpdateRequestPydantic model inbackend/api/today_workflow.pywithstatus: TaskStatusEnumandcompletion_notes: Optional[str]validated withmax_length=4000.set_task_statusto acceptbody: TaskStatusUpdateRequestand to readstatusviabody.status.valueandcompletion_notesviabody.completion_notesso FastAPI will enforce the schema.Testing
python -m py_compile backend/api/today_workflow.py, which completed successfully.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.