discourse/test/javascripts/fixtures
Martin Brennan 5268568d23
FEATURE: Remove user topic timers and migrate to bookmarks with reminders (#10474)
This PR removes the user reminder topic timers, because that system has been supplanted and improved by bookmark reminders. The option is removed from the UI and all existing user reminder topic timers are migrated to bookmark reminders.

Migration does this:

* Get all topic_timers with status_type 5 (reminders)
* Gets all bookmarks where the user ID and topic ID match
* Loops through the found topic timers
  * If there is no bookmark for the OP of the topic, then we just create a bookmark with a reminder
  * If there is a bookmark for the OP of the topic and it does **not** have a reminder set, then just 
update it with the topic timer reminder
  * If there is a bookmark for the OP of the topic with a reminder then just discard the topic timer
* Cancels all outstanding user reminder topic timers
* **Trashes (not deletes) all user reminder topic timers**

Notes:

* For now I have left the user reminder topic timer job class in place; this is so the jobs can be cancelled in the migration. It and the specs will be deleted in the next PR.
* At a later date I will write a migration to delete all trashed user topic timers. They are not deleted here in case there are data issues and they need to be recovered.
* A future PR will change the UI of the topic timer modal to make it look more like the bookmark modal.
2020-09-14 11:11:55 +10:00
..
concerns Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
about.js Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
badges_fixture.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
category-fixtures.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
dashboard-general.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
dashboard.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
directory-fixtures.js FIX: move total rows count & load more URL inside meta. 2020-04-03 07:32:50 +05:30
discovery_fixtures.js FEATURE: add user opt to select bookmarks as home (#10597) 2020-09-10 11:13:12 -04:00
draft.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
drafts.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
group-fixtures.js Make prettier happy 2020-08-20 16:27:32 +02:00
groups-fixtures.js UX: drop the automatic_membership_retroactive column from groups model. (#9430) 2020-04-22 22:07:39 +05:30
notification_fixtures.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
poll.js FEATURE: Remove user topic timers and migrate to bookmarks with reminders (#10474) 2020-09-14 11:11:55 +10:00
post.js DEV: post fixture mismatching topic fixture 2020-04-01 17:44:18 +11:00
private_messages_fixtures.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
problems.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
reports_bulk.js UX: rework date time input range (#9524) 2020-04-22 22:17:53 +02:00
reports.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
search-fixtures.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
session-fixtures.js FEATURE - Moderators can create and manage groups (#10432) 2020-08-19 10:41:40 -04:00
site_settings.js FIX: Fewer 404s in JS tests 2020-07-16 16:23:54 -04:00
site-fixtures.js FEATURE: add user opt to select bookmarks as home (#10597) 2020-09-10 11:13:12 -04:00
static_fixtures.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
top_fixture.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
topic.js FEATURE: Remove user topic timers and migrate to bookmarks with reminders (#10474) 2020-09-14 11:11:55 +10:00
user_fixtures.js FEATURE: add regular_categories field in site setting & user option. (#10477) 2020-08-20 00:35:04 +05:30
user-badges.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00
watched-words-fixtures.js Retry: Rename all test files from JS -> ES6 2020-03-26 12:25:46 -04:00