Commit Graph

436 Commits

Author SHA1 Message Date
Régis Hanol 30fbb91294 Merge pull request #4449 from pfaffman/importer-base-progress
importer/base.rb: improve progress reporting
2016-09-22 11:01:48 +02:00
Jared Reisinger 75e22086a9 Don't look for external facts when benchmarking
When running `scripts/bench.rb` via the discourse/discourse_bench docker
container, Facter throws an EACCES error attempting to load external
puppet facts.  Since the benchmark script ends up ignoring everything
except for seven specific keys, we can just avoid loading any external
fact logic entirely. can just
2016-09-21 13:15:58 -07:00
Jay Pfaffman 30f2081c1b importer/base.rb: improve progress reporting 2016-09-20 11:27:45 -07:00
Arpit Jalan 92e716a1fd fix vbulletin import script 2016-09-14 08:15:48 +05:30
Arpit Jalan ed0b355e15 generalize permalink URL in GetSatisfaction import script 2016-09-08 15:01:40 +05:30
Arpit Jalan bade41db42 improve GetSatisfaction import script 2016-09-08 14:57:20 +05:30
timur aeae63a56a Change reverse.each
Change on reverse_each because reverse_each loops in reverse order (no
intermediate array created).
2016-09-07 14:57:31 +08:00
Arpit Jalan 87e84756f0 improve Ning import script 2016-09-05 15:27:03 +05:30
Arpit Jalan cdc1d7e46c Merge pull request #4413 from Mogztter/fix-optional-attachments
FIX: Nabble importer, attachments can be not found
2016-09-05 00:05:40 +05:30
Hanwen (Steinway) Wu 371f4f4be7 Fix SQLite datetime issues
The raw datetime string from raw emails doesn't conform to SQLite standard. Therefore it can't be sorted. This fix will make it conforming and sort-able by SQLite.
2016-08-26 12:47:03 -04:00
Neil Lalonde d5fc4e1e84 Merge pull request #4388 from gschlager/transifex
Always use --force when pulling translations from Transifex
2016-08-24 14:57:55 -04:00
Guillaume Grossetie 4ba99bcc04 FIX: Attachments can be not found 2016-08-23 19:58:46 +02:00
Guillaume Grossetie 566ecae0db FIX: Update Nabble importer to use Email.Receiver new API
Email.Receiver API changed in 3083657358
2016-08-22 14:04:01 +02:00
David McClure f7f8226b4c Add Socialcast importer 2016-08-20 17:25:19 -07:00
m.b 2fde6944e3 Add missing fat arrow in bbcode_to_md method rescue block
Related to https://meta.discourse.org/t/undefined-local-variable-or-method-e-during-phpbb3-migration/48861
2016-08-19 13:18:27 +02:00
Robin Ward 72d7c055f4 Lots of ugprades to the Disqus importer script 2016-08-17 15:10:46 -04:00
Gerhard Schlager 71421df72a
Always use --force when pulling translations from Transifex
Also, this makes it possible to pull only selected languages which is
handy during development and for adding a new language.
2016-08-12 22:12:03 +02:00
Robin Ward 277e7383f3 Revert "FEATURE: make discourse remap optionally do regex_replace (#4367)"
This reverts commit f8dda198bd, reversing
changes made to 01ced67ab3.
2016-08-08 17:05:22 -04:00
Robin Ward f8dda198bd FEATURE: make discourse remap optionally do regex_replace (#4367)
This adds a --regex option to discourse remap to use the regexp_replace
feature in PostgreSQL. Example usage:

discourse remap --regex "\[\/?color(=[^\]]*)*]" ""

removes all the "color" bbcodes.

Also, this commit fixes the --global option, which did not work because
of how Thor processes the options.
2016-08-08 14:30:02 -04:00
Guo Xiang Tan 02d63d5bc6 FIX: Backup script with custom filename needs to include version number. 2016-08-08 09:33:50 +08:00
Sam 31c0ce3dac Revert "FEATURE: make discourse remap optionally do regex_replace" 2016-08-02 08:38:15 +10:00
Neil Lalonde 7109442ef0 Stop using Transifex workaround, but keep the code just in case 2016-07-27 17:55:28 -04:00
Gerhard Schlager 37a78752e9 phpBB3 importer: fixes for internal links and guest users (#4350)
* phpBB3 importer: ignore query parameters in internal links

* phpBB3 importer: Don't fail if guest usernames differ only by case

* phpBB3 importer: Import username as name for guest users
2016-07-27 22:57:33 +02:00
Gerhard Schlager fccc0c93c5 Store the original username during import (#4349) 2016-07-27 22:30:15 +02:00
Régis Hanol 56d2626187 support 'read_restricted' categories in importers 2016-07-27 18:38:23 +02:00
Gerhard Schlager 3d76ad623c
Workaround for Transifex YML issues 2016-07-27 18:02:57 +02:00
Ryan Mulligan 2a257190e7 FEATURE: make discourse remap optionally do regex_replace (#4116)
This adds a --regex option to discourse remap to use the regexp_replace
feature in PostgreSQL. Example usage:

discourse remap --regex "\[\/?color(=[^\]]*)*]" ""

removes all the "color" bbcodes.

Also, this commit fixes the --global option, which did not work because
of how Thor processes the options.
2016-07-22 10:08:41 +02:00
Guo Xiang Tan 1ea1cefb35 Extract Nginx log analyzer into a plugin that ships with Discourse. 2016-07-19 15:44:00 +08:00
Arpit Jalan 1c4bc154c9 add SimplePress import script 2016-07-14 19:07:25 +05:30
Arpit Jalan 529528f122 add Drupal JSON import script 2016-07-14 18:56:54 +05:30
Robin Ward c2b769bd95 Provide hints about which files can be restored 2016-07-12 12:31:01 -04:00
Gerhard Schlager c145e747b6 A few small changes to the phpBB3 importer (#4321)
* Reconnect to phpBB3 database on connection loss

* Map geek smiley to :nerd: emoji in phpBB3 importer

* Import PMs to yourself from phpBB3

* Allow empty table prefix in phpBB3 importer
2016-07-11 23:59:15 +02:00
Arpit Jalan 201d344a2d improve vBulletin import script 2016-07-10 14:51:31 +05:30
Neil Lalonde 3b119dac6d FIX: importer performance of update_tl0, and give feedback during vanilla_mysql's create_permalinks 2016-07-06 10:58:43 -04:00
Sam be76a9808a Merge pull request #4287 from steinwaywhw/patch-1
Fix frozen email string problem in mbox.rb
2016-06-29 16:32:30 +10:00
Robin Ward 8e5a22ba5d Support for mapping multiple mbox imports into categories 2016-06-28 16:35:19 -04:00
Neil Lalonde 32b22996d0 FEATURE: vanilla_mysql importer can import tags 2016-06-27 16:17:00 -04:00
Hanwen (Steinway) Wu 3501c86cc8 Fix frozen email string problem in mbox.rb 2016-06-24 13:59:01 -04:00
Robin Ward 648bcb6432 More mailbox importer improvements 2016-06-20 14:58:53 -04:00
Robin Ward 2720205f78 Support gzipped mailbox files 2016-06-20 12:41:57 -04:00
michael@discoursehosting.com 1e15735a45 Working VB5 importer 2016-06-16 05:56:28 +00:00
Robin Ward b42f28d4c3 Improved mailing list import.
Now uses a SQLite database to store messages rather than JSON files
for performance and memory considerations.
2016-06-14 11:45:17 -04:00
Gerhard Schlager 0227658515 Make phpBB3 importer compatible with latest poll plugin changes (#4253) 2016-06-06 22:59:33 +02:00
Gerhard Schlager 2e1cc061d8
Make sure PMs imported from phpBB3 are only visible to the correct users
In addition this tries to automatically fix PMs that were migrated
from phpBB2 to phpBB3.
2016-05-26 20:27:08 +02:00
Neil Lalonde fe42b189c9 FIX: vanilla_mysql importer removes everything between the first and last img tags in a post 2016-05-25 12:41:32 -04:00
Sam a19e43fd3b enough with the malloc limit, not needed 2016-05-25 21:09:07 +10:00
David Keller ab5337b79c Correct typo preventing script from running. (#4234)
Signed-off-by: David Keller <david.keller@litchis.fr>
2016-05-23 08:12:02 +02:00
Neil Lalonde f07b3e7df9 PERF: base importer updates user_stats with sql (mostly) 2016-05-17 18:39:04 -04:00
Neil Lalonde d96ca0a985 FIX: vanilla_mysql importer shouldn't exit when creating duplicate permalink 2016-05-17 18:39:04 -04:00
Neil Lalonde e1061acd32 vanilla_mysql faster users when resuming, create_permalinks 2016-05-17 11:16:51 -04:00