discourse/db
Krzysztof Kotlarek 7829558c6d
FIX: dismiss new when topic_user exists without last read (#12103)
The bug was mentioned on meta: https://meta.discourse.org/t/pressing-dismiss-new-doesnt-clear-new-topics/179858

Problem is that sometimes the user has TopicUser records with `last_read_post_number` set as NULL. In that case, the topic is still "new" to them and should be dismissed when they click dismiss button.

In addition, I added that condition to post_migration and bumped the number to fix existing records. Migration is written to be idempotent so it will make no harm to already deployed instances.
2021-02-18 10:39:05 +11:00
..
fixtures FEATURE: WCAG compliant color schemes (#10882) 2020-10-15 14:05:48 -04:00
migrate Revert "FEATURE: Ability to dismiss all new topics (#12018)" (#12058) 2021-02-12 08:50:25 +11:00
post_migrate FIX: dismiss new when topic_user exists without last read (#12103) 2021-02-18 10:39:05 +11:00
api_test_seeds.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00