mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 17:05:56 +03:00
[PR #396] [MERGED] Validate plan.date before yesterday indexing and narrow exception handling #701
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#701
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/396
Author: @AJaySi
Created: 3/6/2026
Status: ✅ Merged
Merged: 3/8/2026
Merged by: @AJaySi
Base:
main← Head:codex/validate-plan.date-format-and-log-warnings📝 Commits (1)
e694e61Validate plan date before yesterday workflow indexing📊 Changes
1 file changed (+40 additions, -20 deletions)
View changed files
📝
backend/api/today_workflow.py(+40 -20)📄 Description
Motivation
plan.dateis a valid ISO date before computing the previous day to avoid crashes or silent failures when indexing yesterday's tasks.except Exception: passpatterns and handle parse and DB errors explicitly for safer failure modes.Description
from sqlalchemy.exc import SQLAlchemyErrorand validateplan.dateusingdate.fromisoformat(plan.date)before computingy_strinbackend/api/today_workflow.py.plan.id,user_id,plan.date, and an explicit skip reason instead of proceeding or swallowing the error.except SQLAlchemyError as db_errorand log a clear warning includingplan_id,user_id,plan_date,yesterday_date, and error details; keep indexing behavior unchanged on success.Testing
python -m py_compile backend/api/today_workflow.pywhich completed successfully.Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.