oliverdavies.uk/content/node.60d29f19-7871-4b8e-a2e5-3bf7edf17c00.json

91 lines
3.5 KiB
JSON
Raw Normal View History

2025-04-21 02:34:46 +01:00
{
"uuid": [
{
2025-05-11 09:40:11 +01:00
"value": "60d29f19-7871-4b8e-a2e5-3bf7edf17c00"
2025-04-21 02:34:46 +01:00
}
],
"langcode": [
{
"value": "en"
}
],
"type": [
{
"target_id": "daily_email",
"target_type": "node_type",
"target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7"
}
],
"revision_timestamp": [
{
2025-05-11 09:40:11 +01:00
"value": "2025-05-11T09:00:20+00:00"
2025-04-21 02:34:46 +01: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": "Automated tests prevent you from adding regressions"
}
],
"created": [
{
"value": "2024-02-02T00:00:00+00:00"
}
],
"changed": [
{
2025-05-11 09:40:11 +01:00
"value": "2025-05-11T09:00:20+00:00"
2025-04-21 02:34:46 +01:00
}
],
"promote": [
{
"value": false
}
],
"sticky": [
{
"value": false
}
],
"default_langcode": [
{
"value": true
}
],
"revision_translation_affected": [
{
"value": true
}
],
"path": [
{
"alias": "\/daily\/2024\/02\/02\/automated-tests-prevent-you-from-adding-regressions",
2025-04-29 14:30:51 +01:00
"langcode": "en"
2025-04-21 02:34:46 +01:00
}
],
"body": [
{
2025-05-30 02:14:32 +01:00
"value": "\n <p>Continuing from <a href=\"\/daily\/2024\/01\/30\/tdd-doesnt-mean-you-know-everything-upfront\">my last few emails<\/a>, as well as adding the new use case more easily and quicker, having automated tests also saved me from adding a regression into the code I was changing.<\/p>\n\n<p>I'd written a condition in the query to ensure only results that started with the search term.<\/p>\n\n<p>Initially, I removed it, but then the tests failed.<\/p>\n\n<p>This reminded me why I'd written the condition that way, and I was able to re-add my fix differently.<\/p>\n\n<p>Without the tests, I'd likely have removed it and introduced a regression.<\/p>\n\n<p>Whilst fixing a bug, I'd have introduced a different bug.<\/p>\n\n<p>My tests saved me from doing that and I was able to rectify it quickly before pushing to CI or the staging environment.<\/p>\n\n ",
2025-04-21 02:34:46 +01:00
"format": "full_html",
2025-05-30 02:14:32 +01:00
"processed": "\n <p>Continuing from <a href=\"http:\/\/default\/daily\/2024\/01\/30\/tdd-doesnt-mean-you-know-everything-upfront\">my last few emails<\/a>, as well as adding the new use case more easily and quicker, having automated tests also saved me from adding a regression into the code I was changing.<\/p>\n\n<p>I'd written a condition in the query to ensure only results that started with the search term.<\/p>\n\n<p>Initially, I removed it, but then the tests failed.<\/p>\n\n<p>This reminded me why I'd written the condition that way, and I was able to re-add my fix differently.<\/p>\n\n<p>Without the tests, I'd likely have removed it and introduced a regression.<\/p>\n\n<p>Whilst fixing a bug, I'd have introduced a different bug.<\/p>\n\n<p>My tests saved me from doing that and I was able to rectify it quickly before pushing to CI or the staging environment.<\/p>\n\n ",
2025-04-21 02:34:46 +01:00
"summary": null
}
]
}