mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-26 01:15:52 +03:00
[PR #395] [MERGED] Normalize dependencies in today workflow API payloads #698
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#698
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/395
Author: @AJaySi
Created: 3/6/2026
Status: ✅ Merged
Merged: 3/8/2026
Merged by: @AJaySi
Base:
main← Head:codex/add-helper-to-normalize-task-dependencies📝 Commits (1)
2403d92Normalize today workflow task dependencies payload📊 Changes
1 file changed (+17 additions, -1 deletions)
View changed files
📝
backend/api/today_workflow.py(+17 -1)📄 Description
Motivation
dependenciesfield in API responses is consistently a list regardless of how it's stored on the model.dependencies.Description
def _normalize_dependencies(dependencies: Any) -> listtobackend/api/today_workflow.pythat returns[]forNone, returns lists unchanged, parses strings withjson.loads(and falls back to[]on parse failure or if parsed value is not a list), and returns[]for other types.t.dependencies or []with_dependencies = _normalize_dependencies(t.dependencies)in the today task payload builder so API responses always include a list underdependencies._normalize_dependencies(t.dependencies)to the yesterday task payload construction used for indexing to keep the indexing input consistent.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.