rails/activestorage/test
Rosa Gutierrez 6ecb53cf92 Don't enqueue jobs to process a preview image if no variant requires it
This follows up on https://github.com/rails/rails/pull/51030, that introduces a
behaviour change for previewable attachments that don't specify any variants at all
or no variants that require pre-processing via `TransformJob`.
Before, when no variant required pre-processing, Attachment#transform_variants_later
didn't do anything. Now, a `ActiveStorage::PreviewImageJob` is enqueued with
the attachment's blob and a empty array.
2024-03-20 07:37:32 +01:00
..
analyzer Fix VideoAnalyzerTest#test_analyzing_a_rotated_HDR_video failure with ffmpeg < 5.0 2024-01-31 22:58:52 +00:00
controllers Fix Active Storage test configurations for CI 2024-02-06 11:11:23 +09:00
database Refactor InternalMetadata, MigrationContext to belong to the pool 2024-02-22 12:46:41 +01:00
dummy Fix quote 2024-02-16 17:08:53 +00:00
fixtures Add WebP as a new framework default image type 2024-02-09 23:44:51 +00:00
jobs Don't enqueue jobs to process a preview image if no variant requires it 2024-03-20 07:37:32 +01:00
models Don't enqueue jobs to process a preview image if no variant requires it 2024-03-20 07:37:32 +01:00
previewer Illustrator files are previewable with Poppler as well 2024-03-01 13:04:27 -08:00
service Enable Minitest/LiteralAsActualArgument 2023-09-13 10:09:32 +09:00
template Extend audio_tag and video_tag to accept Active Storage attachments. 2022-03-14 02:05:37 -03:00
urls Make vips the default variant processor for new apps 2021-07-14 14:26:43 -03:00
engine_test.rb Add config option to not touch records 2023-10-20 14:41:57 -04:00
fixture_set_test.rb Enable Minitest/LiteralAsActualArgument 2023-09-13 10:09:32 +09:00
javascript_package_test.rb Update JavascriptPackageTest for Active Storage 2023-11-05 15:13:33 -06:00
migrations_test.rb Deprecate ConnectionPool#connection 2024-03-01 14:32:55 +01:00
test_helper.rb Don't enqueue jobs to process a preview image if no variant requires it 2024-03-20 07:37:32 +01:00