0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/test/regression
Nazar Gargol ced3e28d60 🐛 Fixed cache invalidation for published posts with no content
closes #12015
refs 95880dddeb

- The bug was caused by falsy plaintext field assignment to empty string `''` when the html content was `null`. Because of the `setEmptyValuesToNull` function (referenced commit), there is no sense to assign empty string value to plaintext property, because it would still end up being `null`
- The `''` -> `null` conversion was confusing the model layer to think that some fields were changed, where in reality none did. This in turn lead to a bug with falsy cache invalidation
2020-07-15 17:41:24 +12:00
..
api 🐛 Fixed cache invalidation for published posts with no content 2020-07-15 17:41:24 +12:00
exporter Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
importer Fixed importer mapping for renamed default_locale, active_timezone, ghost_* settings 2020-06-24 14:19:52 +12:00
migrations Fixed broken regression tests from #11861 2020-06-02 16:20:57 +02:00
models Updated Settings.populateDefaults() to account for available columns 2020-06-29 13:22:10 +00:00
settings Added new stripe webhook settings (#12028) 2020-07-10 16:26:06 +02:00
site Updated head to only output custom favicons (#11949) 2020-06-30 15:07:08 +01:00
update-check Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
README.md

Regression Tests

This folder should contain packages which we test in a cron job once per day. These tests should ensure that we don't break Ghost.

The goal is that most of these packages use Ghost's API's to test behaviours, otherwise transform the tests into unit tests.