Oliver Davies
b49b487590
Fix PHPStan and PHPCS errors
2020-06-01 19:03:25 +01:00
Oliver Davies
1e78139333
Update talk date test
...
Update the test for updating a talk node as it was essentially doing the
same as the test for creating a new talk node.
The test now ensures that the talk is saved before adding an event, and
that the talk created date is different to the original created date as
well as that it matches the latest event date.
2020-05-31 21:27:55 +01:00
Oliver Davies
56f3434c4a
Automatically order events when a talk is saved
...
To ensure that the event dates for a talk are always in the correct
order, and to make the editing experience easier, this change
automatically re-orders the events on a talk node to be based on the
event date.
Fixes #74
2020-05-31 20:56:28 +01:00
Oliver Davies
45fda0fed1
Refactor existing tests
...
References #74
2020-05-31 18:43:10 +01:00
Oliver Davies
a36654cfbb
Remove custom migration code
...
References #77
2020-05-29 22:48:57 +01:00
Oliver Davies
c25eaf4ee1
Split hooks into separate files, load with Finder
2020-05-29 22:35:33 +01:00
Oliver Davies
fafe64dac7
Refactor talks to keep existing tests passing
...
References #78
2020-05-29 22:00:12 +01:00
Oliver Davies
165b6e8195
Refactor to use a Post class
...
References #78
2020-05-29 21:46:17 +01:00
Oliver Davies
4d3e0901d2
Fix some PHPStan errors
2020-05-26 12:01:03 +01:00
Oliver Davies
f5767f7739
Use a pre-save hook for updating the talk date
2020-05-26 12:00:35 +01:00
Oliver Davies
8cfa76e9f4
Add markup class to the featured posts block
2020-05-21 13:19:11 +01:00
Oliver Davies
6ed644c8d3
Add custom command for exporting body content
...
Add a custom Drush command that exports the body field values for node
and block body fields into a file.
This file can then be included within Tailwind's `purge` settings to
prevent classes used within the body fields from being purged.
References #55
2020-05-20 11:57:47 +01:00
Oliver Davies
bcfe01f62c
Extract a base test case for talks tests
2020-05-19 17:14:57 +01:00
Oliver Davies
ee7b24d778
Add talk videos in the migration
2020-05-16 22:37:13 +01:00
Oliver Davies
96ba8ed6d1
Fix typo in key
2020-05-13 02:18:47 +01:00
Oliver Davies
a5aed11dd2
Remove old core key from info.yml
2020-05-13 02:12:58 +01:00
Oliver Davies
73b1d5cd57
Update export feed URLs in migrations
...
Fixes #33
2020-05-13 02:01:24 +01:00
Oliver Davies
c0a132a1bb
Re-add original conditions
2020-05-10 13:15:07 +01:00
Oliver Davies
a305558e98
Delete old files
2020-05-09 22:33:02 +01:00
Oliver Davies
1a2372f611
Add and use a custom Node class
...
Add and use a custom `Node` class within the custom module, and move the
method there for finding the last event date for a talk node.
2020-05-09 22:31:35 +01:00
Oliver Davies
7e2bd98d93
Use Carbon for dates
2020-05-09 21:51:04 +01:00
Oliver Davies
730b724ac4
Mark classes as final and enable strict types
2020-05-09 02:17:12 +01:00
Oliver Davies
7a9bf80a89
Automatically update the created date for talks
...
Automatically update the created dates for talk nodes so that they match
the most-future event. This means that the talks are ordered correctly
on the Talks page.
2020-05-09 02:16:25 +01:00
Oliver Davies
f17eb0c154
Include event information in migrated events
2020-05-08 13:15:21 +01:00
Oliver Davies
eedf06aa3e
Add redirects migration
2020-05-07 12:53:01 +01:00
Oliver Davies
34db78bf47
Add talk migration
2020-05-06 10:44:42 +01:00
Oliver Davies
1a713db452
Map post excerpt field
2020-05-06 02:22:45 +01:00
Oliver Davies
703997f16d
Add tag_term as a dependency
2020-05-06 02:04:47 +01:00
Oliver Davies
608039b407
Migrate tags to blog posts
2020-05-06 02:00:02 +01:00
Oliver Davies
b5c2b72412
Add the tag term migration
2020-05-05 17:33:20 +01:00
Oliver Davies
da350a3361
Start adding post node migration
2020-05-05 14:18:11 +01:00
Oliver Davies
724c43f88f
Fix PHPCS issues
2020-04-12 19:23:47 +01:00
Oliver Davies
4ac087b88c
Add command for updating old tag names
2020-04-12 16:52:21 +01:00