Commit Graph
26 Commits
Author SHA1 Message Date
Jarek RadoszandGitHub 6aef8d235b DEV: Fix various rubocop lints (#24749)
These (21 + 3 from previous PRs) are soon to be enabled in rubocop-discourse:

Capybara/VisibilityMatcher
Lint/DeprecatedOpenSSLConstant
Lint/DisjunctiveAssignmentInConstructor
Lint/EmptyConditionalBody
Lint/EmptyEnsure
Lint/LiteralInInterpolation
Lint/NonLocalExitFromIterator
Lint/ParenthesesAsGroupedExpression
Lint/RedundantCopDisableDirective
Lint/RedundantRequireStatement
Lint/RedundantSafeNavigation
Lint/RedundantStringCoercion
Lint/RedundantWithIndex
Lint/RedundantWithObject
Lint/SafeNavigationChain
Lint/SafeNavigationConsistency
Lint/SelfAssignment
Lint/UnreachableCode
Lint/UselessMethodDefinition
Lint/Void

Previous PRs:
Lint/ShadowedArgument
Lint/DuplicateMethods
Lint/BooleanSymbol
RSpec/SpecFilePathSuffix
2023-12-06 23:25:00 +01:00
David TaylorandGitHub bd36594ae8 DEV: Update importers from PostUpload to UploadReference (#23681)
Discourse stopped using PostUpload in https://github.com/discourse/discourse/commit/6765cf0fbc92ff24543e99e7c56f3f79091821e5. Since then, these importers have been writing to the table, but any data was totally unused. This commit updates the easy cases to use UploadReference, and adds an error to the discourse_merger import script, which needs more significant work.
2023-09-27 15:01:04 +01:00
David Taylor b7c21ceb26 DEV: Apply syntax_tree formatting to script/* 2023-01-09 11:13:22 +00:00
Peter ZhuandGitHub 077003d795 DEV: Fix methods removed in Ruby 3.2 (#15459)
* File.exists? is deprecated and removed in Ruby 3.2 in favor of
File.exist?
* Dir.exists? is deprecated and removed in Ruby 3.2 in favor of
Dir.exist?
2022-01-05 18:45:08 +01:00
Sam SaffronandGuo Xiang Tan 5fbcc5cb35 DEV: enable frozen string literal on all files
This reduces chances of errors where consumers of strings mutate inputs
and reduces memory usage of the app.

Test suite passes now, but there may be some stuff left, so we will run
a few sites on a branch prior to merging
2019-05-13 09:31:32 +08:00
Régis HanolandRobin Ward 3a9e8b87aa add support for importing attachments in bbPress importer 2018-04-24 11:08:12 -04:00
Neil Lalonde edbe4bdcf9 make rubocop happy 2017-11-07 14:20:46 -05:00
discoursehostingandRégis Hanol addae9ee48 some improvements for importers (#5295)
* decode html entities within code blocks

* Only import users that actually participated in the bbpress part of Wordpress; import password hashes

* create permalinks for topics

* Better handling of [code] blocks
2017-11-07 17:50:43 +01:00
Neil Lalonde e4e00dd4b0 FEATURE: bbpress importer can import private messages 2017-08-21 16:39:57 -04:00
Guo Xiang TanandGitHub 5269b652cd Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
lead4good 40222b7c19 bbpress import script: Adding support for anonymous users 2017-05-25 13:15:50 +02:00
Jay Pfaffman 287ef0f5d2 use .presence rather than DIY checking 2017-01-11 12:55:25 -08:00
Jay Pfaffman 428776135a Merge branch 'master' of github.com:discourse/discourse into bbpress-missing-display-name 2017-01-11 11:28:38 -08:00
Jay Pfaffman 0314cb25a3 bbpress: Use nicename if display_name is missing 2017-01-11 11:26:55 -08:00
Arpit Jalan 00904145eb use table prefix in bbpress import script 2017-01-10 16:07:13 +05:30
Jay Pfaffman f05e658c95 bbpress.rb: move configuration to ENV 2016-09-26 15:03:42 -07:00
Régis Hanol 301e2ee25f update bbPress importer 2016-03-07 18:22:15 +01:00
Kane York bf4bfddb85 FEATURE: Skip batches if all records exist
Update all import scripts to take advantage of all_records_exist?
2015-09-21 17:13:02 -07:00
Régis Hanol 9d7e4ab94e FIX: base script import to handle category color/text color 2015-05-19 12:40:35 +02:00
Neil Lalonde 67cf9f986d FIX: improve imported code blocks from bbPress importer 2015-03-20 15:54:54 -04:00
Robin Ward afe64e7fb5 Add subcategory support to BBPress import 2015-03-16 13:18:20 -04:00
Gerhard Schlager abe16aa413 FIX: Importers should allow categories with existing name if the parent category is different
This changes the content of `@categories_lookup` from `Category` objects
to IDs since the category names aren't needed anymore. The lookup
method has been renamed too.
2015-03-12 21:15:02 +01:00
Erick Guan fb20d6eb94 add table prefix constant to bbpress import script & fix user imports 2015-02-03 10:06:35 -08:00
Neil Lalonde daceea73a8 Import scripts for Drupal and Kunena/Joomla. A new base class for import scripts. 2014-06-02 14:38:40 -04:00
Sam 55e5515657 fallback to email lookup if needed 2014-05-18 11:49:36 +10:00
Sam 4f7e960e49 raw bbpress import script
amend post_creator to support custom fields
2014-05-18 11:33:59 +10:00