Commit Graph

37 Commits

Author SHA1 Message Date
30990006a9 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
5012d46cbd Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
5504622c1b rename export/import in favor of backup/restore for better consistency 2014-10-10 20:04:07 +02:00
fe7877b558 FIX: Server side restore should work in development mode even if the
setting is disabled.
2014-09-11 15:12:56 -04:00
7a621d97b9 FIX: do not rollback imports unless data has been changed 2014-08-20 18:53:38 +02:00
b4e38e5646 updated checks of environment with Rails.env by Rails.env methods 2014-08-18 15:36:47 +05:30
6301a43d57 Not initializing variable for looping if unused in loop 2014-08-15 03:24:55 +05:30
925a15c9aa FIX: proper exit status code for backup/restore scripts 2014-08-04 17:55:09 +02:00
5f620c5b98 FIX: add port information when backuping/restoring 2014-07-30 17:20:25 +02:00
af4101f783 TRIVIAL: remove obsolete comments 2014-07-02 17:05:06 +05:30
d0753ec7a5 Send notifications for backup/restore from system user 2014-07-02 15:01:32 +05:30
Sam
3767080f3b Added rake task to normalize code 2014-06-06 14:08:39 +10:00
05ca1e6e46 Added code block normalization routing for import 2014-06-06 10:34:21 +10:00
b52177a4b6 BUGFIX: better resiliency in the backup/restore processes 2014-05-13 16:18:22 +02:00
1574485443 Perform the where(...).first to find_by(...) refactoring.
This refactoring was automated using the command: bundle exec "ruby refactorings/where_dot_first_to_find_by/app.rb"
2014-05-06 14:41:59 +01:00
79c6bb718a BUGFIX: make sure site settings are refreshed after a restore 2014-04-08 18:06:53 +02:00
d23585e444 BUGFIX: backup/restore operations keep track of the read-only mode status 2014-03-28 12:15:53 +01:00
Sam
2f4ec5a17c BUGFIX: no idea how this worked in test 2014-03-25 15:15:46 +11:00
0def4747da FEATURE: send the backup/restore logs when operation fails 2014-03-24 19:34:16 +01:00
ea953c9c0e BUGFIX: only wait for jobs of the current_site when backing up 2014-03-14 15:49:35 +01:00
8c89931747 do not log sensitive commands during backup/restore 2014-03-12 11:45:55 +01:00
0caee99e8b REFACTOR: moved the export.rake task into script/discourse script 2014-02-21 16:17:00 +01:00
1f90f3044f BUGFIX: restore wasn't working when not using multisite in production 2014-02-20 18:42:17 +01:00
27f3aa6bdc BUGFIX: actually use db_conf everywhere 2014-02-19 15:43:59 +01:00
438f97d8b0 BUGFIX: backup/restore rake tasks weren't working 2014-02-19 15:25:31 +01:00
Sam
0438abf139 BUGFIX: Use ENV["USER"] before falling back to postgres 2014-02-17 10:44:37 +11:00
29b6b71d61 don't pass arguments when they're empty to pg_sql/pg_dump 2014-02-14 02:58:36 +01:00
a8b3269fdb reload the page when read_only mode is disabled 2014-02-14 00:27:25 +01:00
b89d328de2 display/preload the logs of the last/current operation 2014-02-13 13:31:14 -08:00
50273ba815 rename site setting to 2014-02-13 13:31:14 -08:00
aff3463957 we want to wait for workers and not enqueued jobs 2014-02-13 13:31:13 -08:00
79a40658bf new backup & restore code 2014-02-13 13:31:13 -08:00
8344f0d8fd remove old import/export code 2014-02-13 13:31:13 -08:00
3a6c3ee65d Add two rake tasks: db:rebuild_indexes and import:remove_backup 2014-01-31 15:30:47 -05:00
Sam
cce5fb3303 BUGFIXES: improved performance of import an export
we no longer generate the entire dump in memory, instead we generate one table at a time
added some basic progress
2014-01-29 16:49:01 +11:00
cafc75b238 remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
21b5628528 Initial release of Discourse 2013-02-05 14:16:51 -05:00