discourse/script/import_scripts
Martin Brennan 222c8d9b6a
FEATURE: Polymorphic bookmarks pt. 3 (reminders, imports, exports, refactors) (#16591)
A bit of a mixed bag, this addresses several edge areas of bookmarks and makes them compatible with polymorphic bookmarks (hidden behind the `use_polymorphic_bookmarks` site setting). The main ones are:

* ExportUserArchive compatibility
* SyncTopicUserBookmarked job compatibility
* Sending different notifications for the bookmark reminders based on the bookmarkable type
* Import scripts compatibility
* BookmarkReminderNotificationHandler compatibility

This PR also refactors the `register_bookmarkable` API so it accepts a class descended from a `BaseBookmarkable` class instead. This was done because we kept having to add more and more lambdas/properties inline and it was very messy, so a factory pattern is cleaner. The classes can be tested independently as well.

Some later PRs will address some other areas like the discourse narrative bot, advanced search, reports, and the .ics endpoint for bookmarks.
2022-05-09 09:37:23 +10:00
..
base DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
mbox DEV: mbox importer improvements (#16557) 2022-04-29 13:24:29 -03:00
nodebb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
phpbb3 DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
quandora DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
settings
socialcast DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
support
answerbase.rb
answerhub.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
askbot.rb DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
base.rb FEATURE: Polymorphic bookmarks pt. 3 (reminders, imports, exports, refactors) (#16591) 2022-05-09 09:37:23 +10:00
bbpress.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
bespoke_1.rb
csv_restore_staged_users.rb DEV: Add a CSV importer for restoring deleted users (#12147) 2021-02-19 13:46:54 -07:00
discuz_x.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
disqus.rb
drupal-6.rb
drupal.rb DEV: pull email address validation out to a new EmailAddressValidator 2022-02-17 21:49:22 -05:00
drupal_json.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
drupal_qa.rb
flarum_import.rb DEV: fix Flarum import script (#13385) 2021-06-15 19:08:55 +05:30
fluxbb.rb
friendsmegplus.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
getsatisfaction.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
google_groups.rb DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
higher_logic.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
ipboard.rb DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
ipboard3.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
jforum.rb DEV: Fix rubocop issues (#14715) 2021-10-27 11:39:28 +03:00
jive.rb
jive_api.rb FEATURE: Polymorphic bookmarks pt. 3 (reminders, imports, exports, refactors) (#16591) 2022-05-09 09:37:23 +10:00
json_generic.rb
kunena.rb
kunena3.rb
lithium.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
mbox.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
modx.rb DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
muut.rb
mybb.rb FIX: MyBB importer exposes deleted posts (#13700) 2021-07-22 09:55:02 +02:00
mybbru.rb
mylittleforum.rb DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
nabble.rb
ning.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
phorum.rb DEV: Apply rubocop to script/import_scripts/phorum.rb (#14727) 2021-10-26 19:16:52 +01:00
phpbb3.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
punbb.rb
question2answer.rb DEV: Improve q2a import script (#10346) 2020-07-31 12:04:03 -05:00
sfn.rb
simplepress.rb
smf1.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
smf2.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
sourceforge.rb
stack_overflow.rb
telligent.rb FEATURE: Add last visit indication to topic view page. (#13471) 2021-07-05 14:17:31 +08:00
vanilla.rb FIX: Vanilla importer fixes (#14699) 2021-10-27 14:22:37 +02:00
vanilla_body_parser.rb Improve Vanilla import script. (#11701) 2021-01-13 23:10:00 +05:30
vanilla_mysql.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
vbulletin.rb DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
vbulletin5.rb DEV: Fix methods removed in Ruby 3.2 (#15459) 2022-01-05 18:45:08 +01:00
xenforo.rb
yahoogroup.rb
zendesk.rb
zendesk_api.rb DEV: Fix rubocop issues (#14715) 2021-10-27 11:39:28 +03:00
zoho.rb