discourse/spec
Jarek Radosz 3d55f2e3b7
FIX: Improvements and fixes to the image downsizing script (#9950)
Fixed bugs, added specs, extracted the upload downsizing code to a class, added support for non-S3 setups, changed it so that images aren't downloaded twice.

This code has been tested on production and successfully resized ~180k uploads.

Includes:

* DEV: Extract upload downsizing logic
* DEV: Add support for non-S3 uploads
* DEV: Process only images uploaded by users
* FIX: Incorrect usage of `count` and `exist?` typo
* DEV: Spec S3 image downsizing
* DEV: Avoid downloading images twice
* DEV: Update filesizes earlier in the process
* DEV: Return false on invalid upload
* FIX: Download images that currently above the limit (If the image size limit is decreased, then there was no way to resize those images that now fall outside the allowed size range)
* Update script/downsize_uploads.rb (Co-authored-by: Régis Hanol <regis@hanol.fr>)
2020-06-11 14:47:59 +02:00
..
components FIX: Allow users to add emails which were deleted before 2020-06-11 14:54:11 +03:00
fabricators FIX: Improvements and fixes to the image downsizing script (#9950) 2020-06-11 14:47:59 +02:00
fixtures FIX: Allow post migrations using #change to carry out unsafe migration 2020-05-15 14:23:27 +08:00
helpers DEV: Fix some more flaky tests (#9384) 2020-04-08 12:46:43 +02:00
import_export FEATURE: Rake task to export groups (#9450) 2020-04-17 14:59:54 -07:00
initializers FIX: We need to skip users with associated reviewables when auto-approving (#9080) 2020-03-02 14:33:52 -05:00
integration FIX: If creating a flag for a watched word, include the reason 2020-06-02 11:49:02 -04:00
integrity DEV: Check English locale for errors in CI 2020-06-03 21:54:58 +02:00
jobs FIX: Use include-subcategories filter in report export (#10007) 2020-06-10 18:57:39 +03:00
lib FIX: Improvements and fixes to the image downsizing script (#9950) 2020-06-11 14:47:59 +02:00
mailers DEV: Add rubocop-rspec (#9288) 2020-03-27 17:35:40 +01:00
models FIX: present correct new/unread counts when filtered by tag 2020-06-11 16:47:57 +10:00
multisite FIX: returns false if the upload url is an invalid mailto link (#9877) 2020-05-26 10:32:48 -03:00
requests FEATURE: Improve UX support for multiple email addresses (#9691) 2020-06-10 19:11:49 +03:00
script/import_scripts FIX: Change base importer to create new Bookmark records (#9603) 2020-05-01 11:34:55 +10:00
serializers DEV: Include raw in post webhook serializer 2020-06-10 11:56:39 -06:00
services FIX: Allow merging users when email domains are restricted 2020-06-09 18:51:59 +01:00
support FIX: Redirects containing Unicode usernames didn't work 2020-06-08 10:26:29 +02:00
tasks FEATURE: Add uploads:batch_migrate_from_s3 task to limit total posts migrated at once (#9933) 2020-06-04 09:48:11 +10:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb DEV: Add pry-byebug and optionally require pry behind a ENV var for better spec debugging (#9984) 2020-06-05 12:30:34 +10:00
swagger_helper.rb DEV: Add rswag to aid in api documention (#9546) 2020-04-27 16:40:07 -06:00