diff --git a/content/meta/index.json b/content/meta/index.json index 53f32061e..20d6f0efb 100644 --- a/content/meta/index.json +++ b/content/meta/index.json @@ -6745,5 +6745,12 @@ ], "path_alias.ba5184ef-27f5-4f50-94f8-4bbecaa563b0": [ "node.ebad7a57-881a-470e-9ec0-84ec23ac0802" + ], + "node.173ca277-8287-4122-a23d-ddd4b66b08b2": [ + "user.b8966985-d4b2-42a7-a319-2e94ccfbb849", + "node.e3f6c728-7855-4804-8614-e2a0c08c368f" + ], + "path_alias.9c59a5b3-0524-4323-ab20-0f6a6731cdfa": [ + "node.173ca277-8287-4122-a23d-ddd4b66b08b2" ] } \ No newline at end of file diff --git a/content/node.173ca277-8287-4122-a23d-ddd4b66b08b2.json b/content/node.173ca277-8287-4122-a23d-ddd4b66b08b2.json new file mode 100644 index 000000000..0259509ab --- /dev/null +++ b/content/node.173ca277-8287-4122-a23d-ddd4b66b08b2.json @@ -0,0 +1,97 @@ +{ + "uuid": [ + { + "value": "173ca277-8287-4122-a23d-ddd4b66b08b2" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "daily_email", + "target_type": "node_type", + "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" + } + ], + "revision_timestamp": [ + { + "value": "2025-07-08T23:12:55+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": "Dealing with icky code" + } + ], + "created": [ + { + "value": "2025-07-05T23:10:51+00:00" + } + ], + "changed": [ + { + "value": "2025-07-08T23:12:55+00:00" + } + ], + "promote": [ + { + "value": false + } + ], + "sticky": [ + { + "value": false + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ], + "path": [ + { + "alias": "\/daily\/2025\/07\/05\/dealing-icky-code", + "langcode": "en" + } + ], + "body": [ + { + "value": "Most, if not all, software projects have some code that is difficult to work on.\r\n\r\nMaybe it was written a long time ago or it performs some difficult or complex logic.\r\n\r\nIt may not follow modern best practices and, most likely, isn't covered by automated tests.\r\n\r\nNo-one wants to work on it.\r\n\r\nBut, what happens when it needs to change?\r\n\r\nHow can you do it and be confident the change doesn't break the existing functionality?\r\n\r\nBefore you make any changes, identify the use cases of the current code and cover them by [writing automated tests][1].\r\n\r\nFunctional, web or browser tests allow you to make HTTP requests to an endpoint and make assertions on a response, and ensure it returns the correct status code and content, rather than focussing on the implementation details.\r\n\r\nIf you need to test an existing Drupal website, [use Drupal Test Traits][0].\r\n\r\nOnce you have tests in place, you can make the required changes and ensure the original functionality still works by running them and checking they still pass.\r\n\r\nHopefully, you'll have written tests for the new functionality, so the test suite will start to grow.\r\n\r\n[0]: \/daily\/2025\/06\/18\/exploring-drupal-test-traits\r\n[1]: \/presentations\/tdd-test-driven-drupal", + "format": "markdown", + "processed": "

Most, if not all, software projects have some code that is difficult to work on.<\/p>\n

Maybe it was written a long time ago or it performs some difficult or complex logic.<\/p>\n

It may not follow modern best practices and, most likely, isn't covered by automated tests.<\/p>\n

No-one wants to work on it.<\/p>\n

But, what happens when it needs to change?<\/p>\n

How can you do it and be confident the change doesn't break the existing functionality?<\/p>\n

Before you make any changes, identify the use cases of the current code and cover them by writing automated tests<\/a>.<\/p>\n

Functional, web or browser tests allow you to make HTTP requests to an endpoint and make assertions on a response, and ensure it returns the correct status code and content, rather than focussing on the implementation details.<\/p>\n

If you need to test an existing Drupal website, use Drupal Test Traits<\/a>.<\/p>\n

Once you have tests in place, you can make the required changes and ensure the original functionality still works by running them and checking they still pass.<\/p>\n

Hopefully, you'll have written tests for the new functionality, so the test suite will start to grow.<\/p>\n", + "summary": "" + } + ], + "field_daily_email_cta": [ + { + "target_type": "node", + "target_uuid": "e3f6c728-7855-4804-8614-e2a0c08c368f" + } + ] +} \ No newline at end of file diff --git a/content/node.57c15821-f744-45ce-960e-5f77d41c3ad3.json b/content/node.57c15821-f744-45ce-960e-5f77d41c3ad3.json index d7223bd8c..922c674c9 100644 --- a/content/node.57c15821-f744-45ce-960e-5f77d41c3ad3.json +++ b/content/node.57c15821-f744-45ce-960e-5f77d41c3ad3.json @@ -18,7 +18,7 @@ ], "revision_timestamp": [ { - "value": "2025-07-04T10:02:16+00:00" + "value": "2025-07-07T21:13:28+00:00" } ], "revision_uid": [ @@ -51,7 +51,7 @@ ], "changed": [ { - "value": "2025-07-04T10:02:16+00:00" + "value": "2025-07-07T21:13:28+00:00" } ], "promote": [ diff --git a/content/path_alias.9c59a5b3-0524-4323-ab20-0f6a6731cdfa.json b/content/path_alias.9c59a5b3-0524-4323-ab20-0f6a6731cdfa.json new file mode 100644 index 000000000..ffc7ab6a8 --- /dev/null +++ b/content/path_alias.9c59a5b3-0524-4323-ab20-0f6a6731cdfa.json @@ -0,0 +1,27 @@ +{ + "uuid": [ + { + "value": "9c59a5b3-0524-4323-ab20-0f6a6731cdfa" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "path": [ + { + "value": "\/node\/173ca277-8287-4122-a23d-ddd4b66b08b2" + } + ], + "alias": [ + { + "value": "\/daily\/2025\/07\/05\/dealing-icky-code" + } + ], + "status": [ + { + "value": true + } + ] +} \ No newline at end of file