Skip to content

feat(flowlord): Add cross-date ID history - #271

Merged
jbsmith7741 merged 4 commits into
mainfrom
search-by-id
Oct 1, 2026
Merged

jbsmith7741 merged 4 commits into
mainfrom
search-by-id

Conversation

@jbsmith7741

@jbsmith7741 jbsmith7741 commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator
  • id filter do not filter by day
    • This makes alert linking and reran tasks easier to search and view the full history
  • Index task_records by id and created; link alerts and reruns by id only

Note

Medium Risk
Changes task query semantics when an ID filter is present and runs a schema v4 index migration on existing SQLite caches at startup.

Overview
Adds cross-date task history when the task page is opened with an id filter: /web/task?id=… no longer ties results to a single calendar day, so reruns and retries across retention show up in one list.

Backend: GetTasks accepts an optional date pointer—nil drops the DATE(created) constraint while other filters still apply. Schema v4 adds idx_task_records_id_created with a migration for lookup performance.

UI: History mode (any ID in the filter) switches the page to “Task History” / “All dates”, hides the hourly chart and day recap stats, and pagination links omit date. Alerts, backload preview, and rerun redirects now link with ?id= only instead of guessing a date from task time.

Tests cover id-only SQL WHERE clauses, multi-day GetTasks, and alert HTML link shape.

Reviewed by Cursor Bugbot for commit cc08b16. Bugbot is set up for automated code reviews on this repo. Configure here.

  * id filter do not filter by day
    * This makes alert linking and reran tasks easier to search and view the full history
  * Index task_records by id and created; link alerts and reruns by id only
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@jbsmith7741

Copy link
Copy Markdown
Collaborator Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit cc08b16. Configure here.

Comment thread apps/flowlord/handler.go
  * Normalize Job once at ingress so legacy Meta-only tasks still resolve.
  * Fold API docs into README; drop scattered Meta job fallbacks.
Comment thread apps/flowlord/sqlite/filter.go Outdated
Comment thread apps/flowlord/sqlite/tasks.go Outdated
  * Drive day versus history scope via TaskFilter.Date on GetTasks
  * Remove unused hourly counts and unused file or date query helpers
@jbsmith7741
jbsmith7741 requested a review from zJeremiah October 1, 2026 17:39
@jbsmith7741
jbsmith7741 merged commit 69695dd into main Oct 1, 2026
4 checks passed
@jbsmith7741
jbsmith7741 deleted the search-by-id branch October 1, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants