Commit graph

111 commits

Author SHA1 Message Date
Oliver Davies 6a59709664 Fix import ordering
Some checks failed
CI / Build and test (push) Has been cancelled
2024-11-26 21:13:23 +00:00
Oliver Davies b5bfab5084 Add devenv scripts 2024-11-26 21:01:03 +00:00
Oliver Davies 0b4b320abf Display talks in the opposite order 2024-11-26 21:01:03 +00:00
Oliver Davies 2bc95f8061 Rename talks to presentations 2024-11-26 21:01:03 +00:00
Oliver Davies b36ecd377c Update composer.lock file dependencies 2024-11-26 21:01:03 +00:00
Oliver Davies 64cece9daa Add Tome 2024-11-26 21:01:03 +00:00
Oliver Davies 87359835aa Add devenv 2024-11-26 21:01:03 +00:00
Oliver Davies 195c5b44a7 Automatically run the tests in a split when
...starting the project
2024-10-24 16:44:51 +01:00
Oliver Davies a39e72b96f Ensure the site is installable from existing
...configuration
2024-10-24 16:44:27 +01:00
Oliver Davies 45d0257229 Update build configuration files 2024-07-31 01:22:09 +01:00
Oliver Davies 145310e571 Update build configuration files 2024-07-20 13:58:10 +01:00
Oliver Davies 8f4bfe24b5 Revert "Add redirect feeds patch"
This reverts commit c4cec23377.
2024-07-18 18:39:38 +01:00
Oliver Davies c4cec23377 Add redirect feeds patch 2024-07-18 17:17:02 +01:00
Oliver Davies 3acdfa7ab3 Update build configuration files 2024-07-17 20:17:55 +01:00
Oliver Davies e5bde5376f Update composer dependencies 2024-07-16 08:07:19 +01:00
Oliver Davies 4b109b23e5 Add feeds_ex module 2024-07-16 00:57:36 +01:00
Oliver Davies 6f4654d0e2 Add feeds module 2024-07-16 00:53:52 +01:00
Oliver Davies c78d0f01a6 Add .tmux file 2024-07-08 19:29:43 +01:00
Oliver Davies 2000845f79 Update to Drupal 10.3 2024-07-08 19:24:54 +01:00
Oliver Davies 0df758953b Update build configuration files 2024-06-27 12:17:06 +01:00
Oliver Davies 980b8f6d22 Add decision template 2024-06-19 00:06:38 +01:00
Oliver Davies ed9faf0878 Update Drupal to 10.2.7 2024-06-12 08:17:10 +01:00
Oliver Davies 3be4d2f061 Remove OpdaviesTalksServiceProvider
It's not used as the tests pass and functionality still works without
it.
2024-06-10 22:22:51 +01:00
Oliver Davies cd9b8f0585 Add logging for updating a talk before saving 2024-06-10 22:21:33 +01:00
Oliver Davies 13071b2ae6 Add the Simple XML Sitemap module
https://www.drupal.org/project/simple_sitemap
2024-06-04 00:12:29 +01:00
Oliver Davies 3b3d53913a Add a markdown text format for Markdown content 2024-06-04 00:12:06 +01:00
Oliver Davies df79fb7060 Add configuration and scripts for daily emails 2024-06-02 07:56:52 +01:00
Oliver Davies 46d8e3c347 Add field description
Add a short description explaining `field_event_date` exists and what
it's used for.
2024-05-29 23:23:53 +01:00
Oliver Davies 19f6b9954b Fix PHPStan errors
Lower PHPStan level to the lowest passing level. I'll start to increase
it and fix the errors for higher levels when the CI pipeline is passing.
2024-05-24 08:50:51 +01:00
Oliver Davies 28be950672 Fix talk test
This commit fixes the current talk test.

Now they're passing, I'll review the tests themselves and refactor them
and/or the implementation code as needed.
2024-05-24 00:11:01 +01:00
Oliver Davies cbd1417b24 Sort talks only by the event date
Sort the talks on the listing page solely by `field_event_date`.

Prior to this commit, the page was using a custom sort plugin that
attempts to show future talks followed by past talks, but also affect
the order to show upcoming talks in an ascending order, followed by past
dalks in the opposite (descending) order.

This was not working as expected.

For now, solely using the event date field is the simpler solution.

In the future, I'll either re-attempt this or remove the code and
simplify my codebase.
2024-05-24 00:07:48 +01:00
Oliver Davies 81f31a0615 Don't try to install the seven theme 2024-05-23 23:20:38 +01:00
Oliver Davies 7b82ab9f39 Don't try to install the gin theme as it's been
...removed
2024-05-22 08:06:36 +01:00
Oliver Davies d2bb7a7d86 Reset the created and changes dates for talks
Add an update hook that updates talk node dates to the earliest and most
recent event dates.
2024-05-22 08:06:05 +01:00
Oliver Davies 42eb28771b Remove unused imports 2024-05-22 07:02:39 +01:00
Oliver Davies b2215f0e7f Don't update talks periodically in a cron job
I don't think this needs to be run daily. It should be OK updating each
talk if or when it's updated.
2024-05-22 06:59:23 +01:00
Oliver Davies a2ef66a7ff Remove gin_toolbar 2024-05-22 06:57:00 +01:00
Oliver Davies 0bda0452bb Remove the gin theme
Some checks failed
CI / Build and test (push) Has been cancelled
2024-05-22 01:11:22 +01:00
Oliver Davies 376d02d561 Enable caching and aggregation by default 2024-05-18 09:55:29 +01:00
Oliver Davies 3cb111f952 Uninstall gin_toolbar module 2024-05-18 09:47:29 +01:00
Oliver Davies e903aaf18a Change the administration theme 2024-05-16 14:20:06 +01:00
Oliver Davies a4ad18521d Run composer update 2024-05-16 14:18:49 +01:00
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 6d2a12c2de Hide event date on talk pages
Don't render `field_event_date` when viewing a talk node.

It contains the latest event date for that talk, so doesn't need to be
displayed as it's duplication of information that's already displayed
and is only there to make it easier to sort the talks on the Talks
listing page.
2024-05-12 08:54:25 +02: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 9aec0bbff8 Update build configuration files 2024-05-11 13:46:57 +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