Skip to content

feat: performance analytics page at /jobs/performance#47

Merged
eclectic-coding merged 2 commits into
mainfrom
feat/performance-analytics
May 21, 2026
Merged

feat: performance analytics page at /jobs/performance#47
eclectic-coding merged 2 commits into
mainfrom
feat/performance-analytics

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • New Performance page at /jobs/performance showing per-job-class statistics derived from the history table
  • Columns: Run count, Avg, p50, p95, Min, Max duration — sorted by p95 descending so the slowest classes appear first
  • Period filter (1h / 24h / 7d / All) to scope the dataset
  • Each class name links to the History page pre-filtered to that class
  • Business logic in JobPerformanceStats service — single pluck query, Ruby-side aggregation for DB-agnostic percentile computation
  • "Performance" nav link added between History and Failed

Test plan

  • 11 request examples: HTTP success, empty state, period filter, sort order, auth
  • 8 unit examples for JobPerformanceStats: count, avg/min/max, p50, p95, scope filtering, sort order
  • 253 examples, 0 failures, 100% line coverage
  • bundle exec rake passes (RuboCop + RSpec)

🤖 Generated with Claude Code

eclectic-coding and others added 2 commits May 21, 2026 10:08
Adds a new Performance page showing per-job-class statistics derived
from the history table: run count, avg, p50, p95, min, and max duration.
Rows are sorted by p95 descending so the slowest classes surface first.
Period filter (1h / 24h / 7d / All) scopes the dataset. Each class name
links to the History page pre-filtered to that class.

Business logic lives in JobPerformanceStats service (matches DashboardStats
pattern). Computation is DB-agnostic — durations are sorted in Ruby after
a single pluck query.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit e67d553 into main May 21, 2026
5 checks passed
@eclectic-coding eclectic-coding deleted the feat/performance-analytics branch May 21, 2026 14:11
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.

1 participant