discourse/app
Martin Brennan 66d17fdd6b
FIX: Topic user bookmarked column is out of sync after post moves (#12612)
When posts are moved from one topic to another, the `topic_user.bookmarked` column for all users in the new and the old topic needs to be resynced, for example because a user bookmarks post 12 in topic 1, then it is moved to topic 2, the topic_user record for topic 1 should no longer be bookmarked. A background job has been added to sync the column for a specified topic, or for no topic at all, which does it for all topics like the migration.

Also includes a migration that we have run in the past to fix bad data.

----

This has been addressed in other places in the past:

https://github.com/discourse/discourse/pull/10211
https://github.com/discourse/discourse/pull/10188
2021-04-14 09:10:53 +10:00
..
assets FIX: Allow raw-view classes to be resolved from themes/plugins (#12685) 2021-04-13 15:05:46 +01:00
controllers DEV: user suspension use .present? (#12676) 2021-04-12 12:53:40 -04:00
helpers FEATURE: Introduce theme/component QUnit tests (take 2) (#12661) 2021-04-12 15:02:58 +03:00
jobs FIX: Topic user bookmarked column is out of sync after post moves (#12612) 2021-04-14 09:10:53 +10:00
mailers FEATURE: Send an email notification when a post is approved. (#12665) 2021-04-12 12:08:23 -03:00
models FIX: Topic user bookmarked column is out of sync after post moves (#12612) 2021-04-14 09:10:53 +10:00
serializers FEATURE: trigger webhook when a user added/removed in a group. (#12653) 2021-04-08 21:16:34 +05:30
services FEATURE: Send an email notification when a post is approved. (#12665) 2021-04-12 12:08:23 -03:00
views FEATURE: Introduce theme/component QUnit tests (take 2) (#12661) 2021-04-12 15:02:58 +03:00