Add daily email

This commit is contained in:
Oliver Davies 2025-06-15 09:11:49 +01:00
parent 9148ec5a65
commit d9e671377a
3 changed files with 131 additions and 0 deletions

View file

@ -6456,5 +6456,12 @@
],
"node.c74de3cf-5362-4d08-935a-a9d0d22fcb94": [
"user.b8966985-d4b2-42a7-a319-2e94ccfbb849"
],
"node.7f8987ed-6ec1-4d81-a968-ec918f017b4b": [
"user.b8966985-d4b2-42a7-a319-2e94ccfbb849",
"node.3074e1e9-c691-4f73-a71c-cfe5920f884e"
],
"path_alias.e019551b-df00-4c4c-a741-bce60ba7580e": [
"node.7f8987ed-6ec1-4d81-a968-ec918f017b4b"
]
}

View file

@ -0,0 +1,97 @@
{
"uuid": [
{
"value": "7f8987ed-6ec1-4d81-a968-ec918f017b4b"
}
],
"langcode": [
{
"value": "en"
}
],
"type": [
{
"target_id": "daily_email",
"target_type": "node_type",
"target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7"
}
],
"revision_timestamp": [
{
"value": "2025-06-15T08:11:24+00:00"
}
],
"revision_uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"revision_log": [],
"status": [
{
"value": true
}
],
"uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"title": [
{
"value": "Refactorings should be small"
}
],
"created": [
{
"value": "2025-06-13T08:01:48+00:00"
}
],
"changed": [
{
"value": "2025-06-15T08:11:24+00:00"
}
],
"promote": [
{
"value": false
}
],
"sticky": [
{
"value": false
}
],
"default_langcode": [
{
"value": true
}
],
"revision_translation_affected": [
{
"value": true
}
],
"path": [
{
"alias": "\/daily\/2025\/06\/13\/refactorings-should-be-small",
"langcode": "en"
}
],
"body": [
{
"value": "When refactoring code, try and make each change as small as possible.\r\n\r\nJust renaming a variable to something easier to understand is a valid refactor.\r\n\r\nSo is extracting a small method or moving logic to another class.\r\n\r\nI recently make [some refactoring commits](https:\/\/code.oliverdavies.uk\/opdavies\/oliverdavies.uk\/commits\/branch\/main\/search?q=Refactor) to my website and, rather than squashing them, I pushed them to show how simple refactoring can be.\r\n\r\nIt's easier to see and review each refactor separately in its own commit instead of in one large squashed commit.\r\n\r\nIt's also easier to keep the code in a working state if the refactors are smaller.\r\n\r\nIf you break the code whilst refactoring, get back to a working state as soon as possible - even if it means resetting back to the last working commit.\r\n\r\nDon't keep making changes - it will be harder to get back to a working state.",
"format": "markdown",
"processed": "<p>When refactoring code, try and make each change as small as possible.<\/p>\n<p>Just renaming a variable to something easier to understand is a valid refactor.<\/p>\n<p>So is extracting a small method or moving logic to another class.<\/p>\n<p>I recently make <a href=\"https:\/\/code.oliverdavies.uk\/opdavies\/oliverdavies.uk\/commits\/branch\/main\/search?q=Refactor\">some refactoring commits<\/a> to my website and, rather than squashing them, I pushed them to show how simple refactoring can be.<\/p>\n<p>It's easier to see and review each refactor separately in its own commit instead of in one large squashed commit.<\/p>\n<p>It's also easier to keep the code in a working state if the refactors are smaller.<\/p>\n<p>If you break the code whilst refactoring, get back to a working state as soon as possible - even if it means resetting back to the last working commit.<\/p>\n<p>Don't keep making changes - it will be harder to get back to a working state.<\/p>\n",
"summary": ""
}
],
"field_daily_email_cta": [
{
"target_type": "node",
"target_uuid": "3074e1e9-c691-4f73-a71c-cfe5920f884e"
}
]
}

View file

@ -0,0 +1,27 @@
{
"uuid": [
{
"value": "e019551b-df00-4c4c-a741-bce60ba7580e"
}
],
"langcode": [
{
"value": "en"
}
],
"path": [
{
"value": "\/node\/7f8987ed-6ec1-4d81-a968-ec918f017b4b"
}
],
"alias": [
{
"value": "\/daily\/2025\/06\/13\/refactorings-should-be-small"
}
],
"status": [
{
"value": true
}
]
}