Skip to content

Conversation

@mikesndrs
Copy link
Contributor

@mikesndrs mikesndrs commented Nov 11, 2024

Summary of changes
Sort events on provider show page by start date

Checklist

  • I have read and followed the CONTRIBUTING guide.
  • I confirm that I have the authority necessary to make this contribution on behalf of its copyright owner and agree
    to license it to the TeSS codebase under the
    BSD license.

past_count: past_events.count,
limit: resource_limit,
resources: events,
resources: events.sort_by(&:start),
Copy link
Member

Choose a reason for hiding this comment

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

Better to order upcoming_events with .order(start: :asc), otherwise you are just sorting the set of 30 events that were returned.

@mikesndrs mikesndrs requested a review from fbacall November 25, 2024 09:11
@fbacall fbacall merged commit 9fea817 into ElixirTeSS:master Nov 25, 2024
7 checks passed
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