Skip to content

Conversation

@tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Nov 22, 2023

Currently, we show up to 10 events whose end date is at most 1 week in the past sorted by start_date. If a user has more than 10 events which ended in the last week, no future events are shown.

This change sorts the events based on the absolute difference with respect to the current date so that both past and future events are shown more equally.

@tomasr8 tomasr8 force-pushed the events-at-hand branch 2 times, most recently from 5c42148 to 39cdd84 Compare November 22, 2023 10:22
@ThiefMaster
Copy link
Member

Previously we sorted from old to new, now it's new to old. I'm fine either way but maybe we should be consistent and use the same order for "my unlisted events"...

Currently, we show up to 10 events whose end date is at most 1 week
in the past sorted by start_date. If a user has more than 10
events which ended in the last week, no future events are shown.

This change sorts the events based on the absolute difference
with respect to the current date so that both past and future
events are shown more equally.
@tomasr8
Copy link
Member Author

tomasr8 commented Nov 24, 2023

Previously we sorted from old to new, now it's new to old. I'm fine either way but maybe we should be consistent and use the same order for "my unlisted events"...

Yep I missed that somehow, should be fixed

@ThiefMaster ThiefMaster added this to the v3.3 milestone Nov 27, 2023
@ThiefMaster ThiefMaster merged commit 1ce8762 into indico:master Nov 27, 2023
@ThiefMaster ThiefMaster deleted the events-at-hand branch November 27, 2023 11:40
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