Skip to content

Conversation

@hatsu38
Copy link

@hatsu38 hatsu38 commented May 15, 2025

close #246

Summary

This pull request updates the default sorting behavior of job executions to display the most recent jobs first (job_id: :desc) instead of the oldest first (job_id: :asc).

  • As discussed in #246, the current ordering (oldest-first) can be confusing, especially when inspecting failed or completed jobs.
  • Showing the latest jobs at the top improves usability by surfacing the most relevant entries without needing to paginate or scroll.

Memo

Rather than introducing full sorting functionality (which would require larger UI and backend changes), this PR focuses only on reversing the default sort order.

In most cases, sorting jobs in ascending order provides little benefit. On the other hand, defaulting to newest-first is more intuitive and practical — especially for failed or completed jobs. Therefore, this change applies the new default more broadly.

Updated the default ordering for job executions to sort by job_id in
descending order (job_id: :desc) instead of ascending. This change makes
recently finished or failed jobs appear at the top of the list, aligning
with expected UX and improving discoverability.This change addresses
rails#246.
@hatsu38 hatsu38 marked this pull request as ready for review May 15, 2025 16:34
@rosa
Copy link
Member

rosa commented May 15, 2025

Hey @hatsu38, sorry for the delay. Check #114. This is not as straightforward.

@rosa
Copy link
Member

rosa commented Jul 11, 2025

Closing this one, as this needs to be done in a different way. See #114 for details.

@rosa rosa closed this Jul 11, 2025
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.

Add Sorting Capability for finished_at and failed_at Fields

2 participants