Commit graph

11 commits

Author SHA1 Message Date
Oliver Davies 0c91825c16 Create a cached talk counter
Create a cached version of the talk counter service that returns a
cached result of the talk count for that day.

This uses the Decorator design pattern to decorate the existing
`TalkCounter` service and works as they both implement the same
`TalkCounterInterface`.
2024-05-16 14:05:26 +01:00
Oliver Davies 919615ccb8 Revert "Show talks that have been on past days"
This reverts commit 700e7b478b.
2024-05-12 08:54:00 +02:00
Oliver Davies 700e7b478b Show talks that have been on past days
Technically, if a talk is due to be given today, it hasn't been
presented yet and shouldn't be included within the talk count.

This commit changes the comparison to match on talks that were given
yesterday instead of today.
2024-05-11 14:51:01 +02:00
Oliver Davies 9a96363ff7 Fix event sorting
Re-add `field_event_date` to sort the talks by their most recent event
date in their custom order.
2024-05-02 23:15:33 +01:00
Oliver Davies 6eed26a756 Revert "Remove unused views sort plugin"
This reverts commit c9d44621ff.
2024-04-18 20:44:00 +01:00
Oliver Davies 89cb9a2283 Fix some PHPStan errors 2024-04-18 20:41:03 +01:00
Oliver Davies c9d44621ff Remove unused views sort plugin 2024-04-18 20:26:29 +01:00
Oliver Davies 1706502db3 Delete opdavies_talks.install 2024-04-18 19:52:19 +01:00
Oliver Davies d2ec2d4ab4 Fix token error 2024-04-15 07:49:30 +01:00
Oliver Davies f6de1df830 Don't sort events if there's only one event 2024-04-15 07:30:53 +01:00
Oliver Davies 01398280c7 Re-add opdavies_talks module 2024-04-11 23:06:13 +01:00