Commit Graph
100 Commits
Author SHA1 Message Date
Guo Xiang Tan 3abfa12d68 Merge pull request #4474 from jamesmarkcook/update-ruby-version
Bump .ruby-version to 2.3.0
2016-09-30 12:46:07 +02:00
Guo Xiang Tan ccd75cf987 FIX: Ensure that the right locale exists before merging. 2016-09-30 15:01:42 +08:00
Guo Xiang Tan 1c3992e575 FIX: Ensure that translations bundle exists before merging plugin bundle. 2016-09-30 14:29:30 +08:00
Guo Xiang Tan cde18834f8 Fix randomly failing spec. 2016-09-30 05:18:54 +08:00
Guo Xiang Tan 9859bfb072 Merge pull request #4471 from tgxworld/fix_plugin_translations_bundle_not_included
FIX: Plugin "admin_js" translations bundle was not fetched.
2016-09-29 07:58:31 +02:00
Guo Xiang Tan 40b83ebb47 Reset I18n.locale in tests. 2016-09-29 13:42:56 +08:00
Guo Xiang Tan 72ccb4e11d FIX: Plugin "admin_js" translations bundle was not fetched. 2016-09-29 04:42:26 +08:00
Guo Xiang Tan 119225e496 Make eslint happy. 2016-09-27 15:12:47 +08:00
Guo Xiang Tan 999f52954f FIX: Incorrect import path for iconHTML helper. 2016-09-25 12:39:17 +08:00
Guo Xiang Tan 4e663998af PERF: N+1 query on user summary page. 2016-09-23 12:44:08 +08:00
Guo Xiang Tan bddbfa56f6 UX: Format numbers on user summary page. 2016-09-23 12:36:42 +08:00
Guo Xiang Tan 4895723f7b FIX: Regression where api_key is not filtered properly. 2016-09-23 11:38:37 +08:00
Guo Xiang Tan 7acbd63d92 FIX: Remove CSS hack. 2016-09-22 17:39:20 +08:00
Guo Xiang Tan 73fdf443fd This should have been removed. 2016-09-22 17:17:11 +08:00
Guo Xiang Tan 5d2aa957b4 UX: Take into account of header when rendering autocomplete. 2016-09-22 13:42:49 +08:00
Guo Xiang Tan b5d6d3c326 FIX: Make recover from tombstone script work for multisite. 2016-09-22 12:28:36 +08:00
Guo Xiang Tan 7dea31adce FIX: Form CDN URL client side instead. 2016-09-22 11:57:18 +08:00
Guo Xiang Tan 9374e5d42d Revert "FIX: don't overwrite category's logo & background URLs"
This reverts commit 641b95f655.
2016-09-22 11:30:19 +08:00
Guo Xiang Tan d312c82474 Revert "FIX: wasn't able to update category's settings"
This reverts commit 282f9948cb.
2016-09-22 11:29:44 +08:00
Guo Xiang Tan 2470d1f65a Revert "FIX: serve category images from the CDN"
This reverts commit d0962d6e5a.
2016-09-22 11:29:04 +08:00
Guo Xiang Tan 333d6f9f10 More improvements to restore from tombstone script. 2016-09-22 10:39:39 +08:00
Guo Xiang Tan 1d4451db5d Improve restore from tombstone script by not having to loop through all posts. 2016-09-21 18:01:59 +08:00
Guo Xiang Tan b62b6ba12c Improve restore from tombstone rake task. 2016-09-21 17:47:27 +08:00
Guo Xiang Tan 3af5b19002 Add rake task to restore missing uploads from tombstone. 2016-09-21 16:56:32 +08:00
Guo Xiang Tan 7139538286 Fix typo. 2016-09-21 16:04:41 +08:00
Guo Xiang Tan 6b8a96f2a9 Make eslint happy. 2016-09-21 11:45:17 +08:00
Guo Xiang Tan 24dcd7df47 FIX: 'quote reply' button not showing when an emoji is included. 2016-09-21 11:14:43 +08:00
Guo Xiang Tan 62ce9938ab Add plugin outlet after user names in user profile page. 2016-09-21 10:49:48 +08:00
Guo Xiang Tan ff5f20bd39 Merge pull request #4451 from fantasticfears/webhooks-content-length
FIX: Content-Lenght should be the size in octets
2016-09-21 10:38:16 +08:00
Guo Xiang Tan a85f1dc473 Merge pull request #4448 from critcola/master
OpenSearch improvements, including Firefox bug fix
2016-09-20 12:45:25 +08:00
Guo Xiang Tan 91dac006ac Merge pull request #4446 from tgxworld/unify_api_keys_web_hooks_admin_headers
Unify API keys and web hooks into a single admin nav header.
2016-09-20 05:24:44 +08:00
Guo Xiang Tan 547750e9dd Unify API keys and web hooks into a single admin nav header. 2016-09-20 05:22:03 +08:00
Guo Xiang Tan 115461b395 Update translation text. 2016-09-19 10:17:01 +08:00
Guo Xiang Tan 0bf7519a8a FIX: tar --list against a .tar.gz file takes too long.
This resulted in requests being blocked for an extended amount
of time when initializing the restorer.
2016-09-16 17:11:14 +08:00
Guo Xiang Tan a04dadf9b4 FIX: Randomly failing specs try 2. 2016-09-16 15:10:37 +08:00
Guo Xiang Tan 903d1dd326 FIX: Randomly failing specs. 2016-09-16 14:56:59 +08:00
Guo Xiang Tan 770c5ea378 Merge pull request #4441 from tgxworld/fix_restore_not_respecting_folder_on_multisite
FIX: Uploads being restored into the wrong directory for multisite.
2016-09-16 14:31:55 +08:00
Guo Xiang Tan 451050c6c4 Merge pull request #4437 from fantasticfears/webhooks-event-name
FIX: show event name in webhook headers
2016-09-16 14:27:12 +08:00
Guo Xiang Tan 68637f2164 FIX: Uploads being restored into the wrong directory for multisite. 2016-09-16 14:26:06 +08:00
Guo Xiang Tan 0290619669 Merge pull request #4443 from tgxworld/security_escape_input
SECUIRTY: Escape input made to system calls.
2016-09-16 12:09:27 +08:00
Guo Xiang Tan 512922d776 SECURITY: Add filename validation for backup uploads. 2016-09-16 11:58:14 +08:00
Guo Xiang Tan f63a797e39 SECUIRTY: Escape input made to system calls. 2016-09-16 11:58:14 +08:00
Guo Xiang Tan 8f36290c05 FIX: No need to list all the files. 2016-09-16 11:57:35 +08:00
Guo Xiang Tan 596fcfeb58 FIX: Set formatter for original Rails logger. 2016-09-15 23:51:22 +08:00
Guo Xiang Tan baacb30ba1 FIX: Incorrect folder. 2016-09-15 15:20:07 +08:00
Guo Xiang Tan b0752b1f91 FIX: Don't bypass validations. 2016-09-15 10:15:17 +08:00
Guo Xiang Tan f69f225f65 FIX: Don't prevent unicorn worker from starting if warmup fails. 2016-09-06 14:02:08 +08:00
Guo Xiang Tan 0fbb949af5 Merge pull request #4432 from tgxworld/migrate_upload_scheme_to_scheduled_job
FIX: Make `Jobs::MigrateUploadScheme` a scheduled job.
2016-09-06 08:39:27 +08:00
Guo Xiang Tan 35bc0c943f More randomly failing specs fixes. 2016-09-05 19:33:03 +08:00
Guo Xiang Tan 1b2b142f30 FIX: Post without a topic can be destroyed. 2016-09-05 19:00:49 +08:00
Guo Xiang Tan 52c70f8b45 Merge pull request #4426 from tgxworld/gsoc_webhooks
Gsoc webhooks
2016-09-05 18:46:03 +08:00
Guo Xiang Tan 1f70fc9e11 Make sure we reset global in specs. 2016-09-05 18:18:14 +08:00
Guo Xiang Tan 31d900f7e7 Fix build. 2016-09-05 17:03:41 +08:00
Guo Xiang Tan aa1f306894 Properly clean up plugin event in specs.. 2016-09-05 16:10:03 +08:00
Guo Xiang Tan aabb7a8592 FIX: DiscourseEvent should not be triggered from within the controller. 2016-09-05 15:58:04 +08:00
Guo Xiang Tan ec90655c41 FIX: Clean up specs properly. 2016-09-05 15:48:59 +08:00
Guo Xiang Tan aa9decf6fd Remove DiscourseEvent.clear. 2016-09-05 15:17:49 +08:00
Guo Xiang Tan e4b75f604c FIX: Make clean up upload script a safer task to run. 2016-09-05 10:06:02 +08:00
Guo Xiang Tan df8d24734a Regenerate missing optimized images for all dbs by default. 2016-09-02 13:06:31 +08:00
Guo Xiang Tan e4883725e6 Script to analyze uploads on a site. 2016-09-02 12:07:06 +08:00
Guo Xiang Tan 1a4a0d7e89 FIX: Don't fail silently. 2016-09-02 11:59:03 +08:00
Guo Xiang Tan 692ecff3eb Revert "FIX: Don't fail silently."
This reverts commit baa6af93a2.
2016-09-02 11:58:56 +08:00
Guo Xiang Tan baa6af93a2 FIX: Don't fail silently. 2016-09-02 11:53:53 +08:00
Guo Xiang Tan a869d861f4 FIX: Make Jobs::MigrateUploadScheme a scheduled job.
This reverts https://github.com/discourse/discourse/commit/9d8db11c

If the job fails during execution or if `SiteSetting.migrate_to_new_scheme`
has been set to `false`, the job will be considered as executed even
though the migration has not been completed. As a result, the job
will have to be executed manually which is not desirable.
2016-09-02 11:48:45 +08:00
Guo Xiang Tan efd7cbd887 Remove limit default.
Having the limit makes it harder to migrate all `Upload`/`OptimizedImage`
since the count has to be figured out and passed to the method.
2016-09-02 10:55:11 +08:00
Guo Xiang Tan 82324db71a Allow uploads:missing Rake task to be run for a single site. 2016-09-02 10:22:39 +08:00
Guo Xiang Tan 90a0327fd2 FIX: Check against reserved usernames should be case insensitive. 2016-08-31 21:53:41 +08:00
Guo Xiang Tan e564f9356e Merge pull request #4429 from xfalcox/fix-new-category-avatars
FIX: Avatars on new category page
2016-08-31 10:56:22 +08:00
Guo Xiang Tan 70a1d8bce8 Merge pull request #4417 from tgxworld/api_username_is_useful
FIX: Don't sanitize API username so that we can potentially identify …
2016-08-29 16:07:48 +08:00
Guo Xiang Tan dfcbaf66d3 Merge pull request #4424 from bradleypriest/patch-1
Adjust example order to match description
2016-08-29 16:07:20 +08:00
Guo Xiang Tan 2349ab5a51 puts not putc. 2016-08-29 10:30:10 +08:00
Guo Xiang Tan e57ed5223a Fix rake task. 2016-08-26 15:46:42 +08:00
Guo Xiang Tan b1c8ede617 Merge pull request #4420 from tgxworld/prioritize_user_avataras
Prioritize user avatars when regenerating missing optimized images.
2016-08-26 07:58:58 +08:00
Guo Xiang Tan 2f39293867 FIX: User enabled readonly mode was not working. 2016-08-25 23:31:59 +08:00
Guo Xiang Tan 2448db4716 Prioritize user avatars when regenerating missing optimized images. 2016-08-25 18:29:52 +08:00
Guo Xiang Tan 7e80810de1 FIX: Raise an error if metadata is not extracted correctly. 2016-08-25 17:20:32 +08:00
Guo Xiang Tan 41a22b8c5a FIX: Don't sanitize API username so that we can potentially identify the source. 2016-08-25 16:32:11 +08:00
Guo Xiang Tan 5da768b4fe FIX: find_each uses find_in_batches which uses the primary key as the order. 2016-08-25 16:11:28 +08:00
Guo Xiang Tan 0b965e02b1 Bump PostgreSQL version in INSTALL.md. 2016-08-25 15:41:51 +08:00
Guo Xiang Tan c1f516a604 Update Ruby version in docs. 2016-08-24 15:48:15 +08:00
Guo Xiang Tan 7258e3f3e2 Merge pull request #4411 from rimian/filter-api-key
filter out api key
2016-08-24 10:59:50 +08:00
Guo Xiang Tan 3e4b02bbd4 FIX: Make sure constant reflects the right backup extenstion. 2016-08-24 10:28:23 +08:00
Guo Xiang Tan 17f0727b04 FIX: Don't track user profile view when viewed by system user. 2016-08-23 16:25:31 +08:00
Guo Xiang Tan f19232646f Rescue all errors when backfilling shas for uploads. 2016-08-23 15:05:37 +08:00
Guo Xiang Tan 90571f0364 FIX: Format selection as multiline code only when selection spans multiple lines. 2016-08-23 15:00:16 +08:00
Guo Xiang Tan 2c1249f381 Remove monkey patch. 2016-08-23 12:04:53 +08:00
Guo Xiang Tan 574b8fdf41 Allow backfilling of shas to complete. 2016-08-23 10:34:32 +08:00
Guo Xiang Tan e9927ce5b1 Make eslint happy. 2016-08-23 09:56:24 +08:00
Guo Xiang Tan f32d8e2882 FIX: Code fences shortcut did not insert newlines before and after backticks. 2016-08-23 09:51:01 +08:00
Guo Xiang Tan f27187c9e2 Merge pull request #4404 from mbajur/master
Add missing fat arrow in bbcode_to_md method rescue block
2016-08-19 20:10:51 +08:00
Guo Xiang Tan c17e5b3bc3 Merge pull request #4403 from tgxworld/more_plugins_to_test
Add more plugins to test for.
2016-08-19 17:28:09 +08:00
Guo Xiang Tan bd76b62fd0 Add more plugins to test for. 2016-08-19 17:01:18 +08:00
Guo Xiang Tan ab9a8c6a3e Merge pull request #4395 from frictionel/patch-2
FIX: correct regex for username
2016-08-19 16:19:57 +08:00
Guo Xiang Tan 1ea0ec7e10 Merge pull request #4401 from tgxworld/test_important_plugins
Test important plugins on our travis build.
2016-08-19 16:01:53 +08:00
Guo Xiang Tan 5222022842 Use another rake task to regenerate optimized images for multisite. 2016-08-19 15:52:09 +08:00
Guo Xiang Tan 3141c179f7 REFACTOR: Get bucket name from S3Helper. 2016-08-19 14:08:37 +08:00
Guo Xiang Tan 735a71ff3a Test important plugins on our travis build. 2016-08-18 19:22:45 +08:00
Guo Xiang Tan 9a6f54de6c Allow other directories to be specified when accessing fixtures. 2016-08-18 16:34:43 +08:00
Guo Xiang Tan 78bec20424 FIX: Check options and not just site settings. 2016-08-17 16:16:00 +08:00
Guo Xiang Tan 4e76525d25 Remove stray quotation. 2016-08-17 09:15:06 +08:00