From 85c5da7c7a6cd78eabe12142aba6eb533442d1de Mon Sep 17 00:00:00 2001 From: Martin Artnik <85488244+artoscinote@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:48:23 +0200 Subject: [PATCH 1/3] Bump version to 1.36.0.1 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 39fc130ef..defae5181 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.0 +1.36.0.1 From f64ea9598925f97f5764e64caba9c04b0916a63c Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Tue, 30 Jul 2024 13:45:03 +0200 Subject: [PATCH 2/3] Force ActiveStorage variant recreation when generating reports [SCI-10931] --- app/models/concerns/tiny_mce_images.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/models/concerns/tiny_mce_images.rb b/app/models/concerns/tiny_mce_images.rb index 9ab9fa986..bd9cbc49e 100644 --- a/app/models/concerns/tiny_mce_images.rb +++ b/app/models/concerns/tiny_mce_images.rb @@ -29,18 +29,19 @@ module TinyMceImages )[0] next unless tm_asset_to_update - tm_asset = tm_asset.image.representation(resize_to_limit: Constants::LARGE_PIC_FORMAT).processed + variant = tm_asset.image.variant(resize_to_limit: Constants::LARGE_PIC_FORMAT) + resized_asset = ActiveStorage::Variant.new(variant.blob, variant.variation).processed width_attr = tm_asset_to_update.attributes['width'] height_attr = tm_asset_to_update.attributes['height'] if width_attr && height_attr && (width_attr.value.to_i >= Constants::LARGE_PIC_FORMAT[0] || height_attr.value.to_i >= Constants::LARGE_PIC_FORMAT[1]) - width_attr.value = tm_asset.image.blob.metadata['width'].to_s - height_attr.value = tm_asset.image.blob.metadata['height'].to_s + width_attr.value = resized_asset.image.blob.metadata['width'].to_s + height_attr.value = resized_asset.image.blob.metadata['height'].to_s end - tm_asset_to_update.attributes['src'].value = convert_to_base64(tm_asset.image) + tm_asset_to_update.attributes['src'].value = convert_to_base64(resized_asset) description = html_description.css('body').inner_html.to_s end description From c43a730972fe059890844021f8b88a8d08fd3a27 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Tue, 6 Aug 2024 17:42:58 +0200 Subject: [PATCH 3/3] Fix Grover config [SCI-10931] --- config/initializers/grover.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/grover.rb b/config/initializers/grover.rb index 290dfb1c0..1815ef198 100644 --- a/config/initializers/grover.rb +++ b/config/initializers/grover.rb @@ -4,7 +4,7 @@ Grover.configure do |config| config.options = { cache: false, executable_path: './bin/chromium', - launch_args: ['--no-sandbox'], + launch_args: %w(--disable-gpu --no-sandbox), timeout: Constants::GROVER_TIMEOUT_MS } end