BCH-1156: Filter My Tasks by effective due date using COALESCE#405
Conversation
Step executions store their due_date on step_executions.due_date while workflow_executions.due_date is NULL. The previous filter queried only the workflow execution column, so every date range returned zero results. COALESCE(step_executions.due_date, workflow_executions.due_date) mirrors the UI's getEffectiveDueDate logic and correctly includes tasks. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR updates ChangesStep execution due-date filtering
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
Step executions store their due_date on step_executions.due_date while workflow_executions.due_date is NULL. The previous filter queried only the workflow execution column, so every date range returned zero results. COALESCE(step_executions.due_date, workflow_executions.due_date) mirrors the UI's getEffectiveDueDate logic and correctly includes tasks.
Summary by CodeRabbit