Skip to content

Commit

Permalink
Ensure that executions are properly ordered in the dashboard (#1588)
Browse files Browse the repository at this point in the history
They are not ordered, so postgres may return them in any order.
I encounter this on postgres 17, checked the demo app to link to but didn't find any
  • Loading branch information
Earlopain authored Jan 26, 2025
1 parent 348fc1d commit 2477ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/good_job/jobs/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@
<%= tag.pre JSON.pretty_generate(@job.display_serialized_params) %>
<% end %>

<%= render 'executions', executions: @job.executions.reverse %>
<%= render 'executions', executions: @job.executions.sort_by(&:number).reverse %>

0 comments on commit 2477ef0

Please # to comment.