Skip to content

Commit

Permalink
Merge pull request #919 from UN-OCHA/develop
Browse files Browse the repository at this point in the history
Deploy 17/04/24
  • Loading branch information
lazysoundsystem authored Apr 16, 2024
2 parents 13f3ce5 + e9b1a4d commit 1061237
Show file tree
Hide file tree
Showing 12 changed files with 462 additions and 435 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
*.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2
*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2

# PHPStan's baseline uses tabs instead of spaces.
core/.phpstan-baseline.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tabwidth=2 diff=php linguist-language=php

# Define binary file attributes.
# - Do not treat them as text.
# - Include binary diff in patches instead of "binary files differ."
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/composer-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
with:
github_access_token: ${{ secrets.PAT }}
patch_branch: ${{ github.ref_name }}
patch_packages: 'drupal/*'
patch_maintainers: ${{ secrets.DRUPAL_MAINTAINERS }}
slack_bot_token: ${{ secrets.SLACK_BOT_TOKEN }}
slack_channel_name: ${{ vars.SLACK_CHANNEL }}
18 changes: 18 additions & 0 deletions PATCHES/amazon_ses-3417090-cron-queue-14.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/src/Plugin/QueueWorker/AmazonSesMailQueue.php b/src/Plugin/QueueWorker/AmazonSesMailQueue.php
index dc410504566451d20aec939de6953e6d1a6e9be9..fdc7af32ac6634c51283fb38f0227530a1772735 100644
--- a/src/Plugin/QueueWorker/AmazonSesMailQueue.php
+++ b/src/Plugin/QueueWorker/AmazonSesMailQueue.php
@@ -29,7 +29,12 @@ class AmazonSesMailQueue extends QueueWorkerBase implements ContainerFactoryPlug
$plugin_definition
);

- $instance->setHandler($container->get('amazon_ses.handler'));
+ // Only set the handler if queueing is enabled to avoid an error when
+ // trying to run without config.
+ $enabled = \Drupal::config('amazon_ses.settings')->get('queue');
+ if ($enabled) {
+ $instance->setHandler($container->get('amazon_ses.handler'));
+ }

return $instance;
}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"cweagans/composer-patches": "^1.6.5",
"drupal/address": "^2",
"drupal/admin_denied": "^2",
"drupal/amazon_ses": "^3.0",
"drupal/amazon_ses": "^3",
"drupal/aws": "dev-2.0.x",
"drupal/bartik": "^1.0",
"drupal/chosen": "^4",
"drupal/components": "^3.0@beta",
Expand Down
Loading

0 comments on commit 1061237

Please sign in to comment.