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 FEATURE: Import script for jForum 2020-06-21 12:12:42 +02:00
socialcast DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
support DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
answerbase.rb Make import scripts work with frozen strings 2019-05-30 22:22:24 +02:00
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 Make import scripts work with frozen strings 2019-05-30 22:22:24 +02:00
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 DEV: Apply Rubocop redundant return style 2019-11-14 15:10:51 -05:00
drupal-6.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
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 DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
flarum_import.rb DEV: fix Flarum import script (#13385) 2021-06-15 19:08:55 +05:30
fluxbb.rb Fix syntax error in fluxbb.rb (#9727) 2020-05-11 11:07:57 -04:00
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 FEATURE: Nokogumbo (#9577) 2020-05-05 13:46:57 +10:00
jive_api.rb FEATURE: Polymorphic bookmarks pt. 3 (reminders, imports, exports, refactors) (#16591) 2022-05-09 09:37:23 +10:00
json_generic.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
kunena.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
kunena3.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
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 DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
mybb.rb FIX: MyBB importer exposes deleted posts (#13700) 2021-07-22 09:55:02 +02:00
mybbru.rb FEATURE: add mybb.ru import script (#8609) 2019-12-20 11:10:18 -05:00
mylittleforum.rb DEV: Correctly tag heredocs (#16061) 2022-02-28 20:50:55 +01:00
nabble.rb Make import scripts work with frozen strings 2019-05-30 22:22:24 +02:00
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 DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
question2answer.rb DEV: Improve q2a import script (#10346) 2020-07-31 12:04:03 -05:00
sfn.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
simplepress.rb fix invalid byte sequence in UTF-8 (ArgumentError) (#9077) 2020-02-28 10:26:18 -05:00
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 DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
stack_overflow.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
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 Improve XenForo import script. 2019-06-18 15:52:34 +05:30
yahoogroup.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
zendesk.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
zendesk_api.rb DEV: Fix rubocop issues (#14715) 2021-10-27 11:39:28 +03:00
zoho.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00