From bfac8c4c89aa1766a1120a2a1f4d51ceb3bb6a10 Mon Sep 17 00:00:00 2001
From: tuutti <771113+tuutti@users.noreply.github.com>
Date: Tue, 26 Nov 2024 06:58:24 +0000
Subject: [PATCH 1/2] Update configuration
---
compose.yaml | 5 +-
composer.lock | 154 +++++++++---------
...form_display.node.landing_page.default.yml | 2 +-
conf/cmi/views.view.er_tpr_unit.yml | 2 +-
conf/cmi/views.view.locked_services.yml | 2 +-
conf/cmi/views.view.locked_units.yml | 2 +-
conf/cmi/views.view.service_list.yml | 4 +-
conf/cmi/views.view.service_units.yml | 2 +-
conf/cmi/views.view.unit_search.yml | 2 +-
docker/openshift/crons/menu-queue.sh | 17 ++
docker/openshift/crons/revision-queue.sh | 11 ++
public/sites/default/settings.php | 34 ++--
12 files changed, 134 insertions(+), 103 deletions(-)
create mode 100644 docker/openshift/crons/menu-queue.sh
create mode 100644 docker/openshift/crons/revision-queue.sh
diff --git a/compose.yaml b/compose.yaml
index c680d449..8e5cc53e 100644
--- a/compose.yaml
+++ b/compose.yaml
@@ -151,13 +151,12 @@ services:
- search
artemis:
container_name: "${COMPOSE_PROJECT_NAME}-artemis"
- image: quay.io/artemiscloud/activemq-artemis-broker
- environment:
- AMQ_EXTRA_ARGS: "--user admin --password admin"
+ image: apache/activemq-artemis
depends_on:
- app
networks:
- internal
+ - stonehenge-network
profiles:
- queue
chromium:
diff --git a/composer.lock b/composer.lock
index b864c7f6..77e1d188 100644
--- a/composer.lock
+++ b/composer.lock
@@ -2259,16 +2259,16 @@
},
{
"name": "drupal/core",
- "version": "10.3.9",
+ "version": "10.3.10",
"source": {
"type": "git",
"url": "https://github.com/drupal/core.git",
- "reference": "42a6516491b4793158542a2326dc6ad1fe2aa5bd"
+ "reference": "3ebb71e9c4ef0c13f683353547551fca49f9a144"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/drupal/core/zipball/42a6516491b4793158542a2326dc6ad1fe2aa5bd",
- "reference": "42a6516491b4793158542a2326dc6ad1fe2aa5bd",
+ "url": "https://api.github.com/repos/drupal/core/zipball/3ebb71e9c4ef0c13f683353547551fca49f9a144",
+ "reference": "3ebb71e9c4ef0c13f683353547551fca49f9a144",
"shasum": ""
},
"require": {
@@ -2417,13 +2417,13 @@
],
"description": "Drupal is an open source content management platform powering millions of websites and applications.",
"support": {
- "source": "https://github.com/drupal/core/tree/10.3.9"
+ "source": "https://github.com/drupal/core/tree/10.3.10"
},
- "time": "2024-11-20T17:59:45+00:00"
+ "time": "2024-11-22T12:51:33+00:00"
},
{
"name": "drupal/core-composer-scaffold",
- "version": "10.3.9",
+ "version": "10.3.10",
"source": {
"type": "git",
"url": "https://github.com/drupal/core-composer-scaffold.git",
@@ -2467,7 +2467,7 @@
"drupal"
],
"support": {
- "source": "https://github.com/drupal/core-composer-scaffold/tree/10.3.9"
+ "source": "https://github.com/drupal/core-composer-scaffold/tree/10.3.10"
},
"time": "2024-08-22T14:31:34+00:00"
},
@@ -4075,16 +4075,16 @@
},
{
"name": "drupal/hdbt",
- "version": "6.8.9",
+ "version": "6.8.10",
"source": {
"type": "git",
"url": "https://github.com/City-of-Helsinki/drupal-hdbt.git",
- "reference": "01dac91a676828e19a6ace8b6e53a9e2a4c26b7a"
+ "reference": "2427bb6c2988c157285e685308e16f0c66e8d5e1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt/zipball/01dac91a676828e19a6ace8b6e53a9e2a4c26b7a",
- "reference": "01dac91a676828e19a6ace8b6e53a9e2a4c26b7a",
+ "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt/zipball/2427bb6c2988c157285e685308e16f0c66e8d5e1",
+ "reference": "2427bb6c2988c157285e685308e16f0c66e8d5e1",
"shasum": ""
},
"require": {
@@ -4103,10 +4103,10 @@
"Drupal"
],
"support": {
- "source": "https://github.com/City-of-Helsinki/drupal-hdbt/tree/6.8.9",
+ "source": "https://github.com/City-of-Helsinki/drupal-hdbt/tree/6.8.10",
"issues": "https://github.com/City-of-Helsinki/drupal-hdbt/issues"
},
- "time": "2024-11-20T13:11:33+00:00"
+ "time": "2024-11-22T12:52:59+00:00"
},
{
"name": "drupal/hdbt_admin",
@@ -4204,16 +4204,16 @@
},
{
"name": "drupal/helfi_api_base",
- "version": "2.7.15",
+ "version": "2.7.17",
"source": {
"type": "git",
"url": "https://github.com/City-of-Helsinki/drupal-module-helfi-api-base.git",
- "reference": "bfada1ee33120497e8dde6dbde201320f41e2dfc"
+ "reference": "d5d46f30b9ec1ccac5b5bac130097454232e35a8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-api-base/zipball/bfada1ee33120497e8dde6dbde201320f41e2dfc",
- "reference": "bfada1ee33120497e8dde6dbde201320f41e2dfc",
+ "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-api-base/zipball/d5d46f30b9ec1ccac5b5bac130097454232e35a8",
+ "reference": "d5d46f30b9ec1ccac5b5bac130097454232e35a8",
"shasum": ""
},
"require": {
@@ -4235,7 +4235,9 @@
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"dg/bypass-finals": "^1.0",
"donatj/mock-webserver": "dev-master",
- "drupal/coder": "^8.3"
+ "drupal/coder": "^8.3",
+ "drupal/elasticsearch_connector": "^8.0@alpha",
+ "drupal/search_api": "^1.0"
},
"type": "drupal-module",
"license": [
@@ -4243,10 +4245,10 @@
],
"description": "Helfi - API Base",
"support": {
- "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/tree/2.7.15",
+ "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/tree/2.7.17",
"issues": "https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/issues"
},
- "time": "2024-11-08T08:31:53+00:00"
+ "time": "2024-11-22T08:27:20+00:00"
},
{
"name": "drupal/helfi_azure_fs",
@@ -4300,17 +4302,20 @@
"source": {
"type": "git",
"url": "https://github.com/City-of-Helsinki/drupal-tools.git",
- "reference": "53ad81c4249c6dd38deea3f6014ad0b1be47f2db"
+ "reference": "3de6f884ac7de9a43fe242f371dcf9416cac47b2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/City-of-Helsinki/drupal-tools/zipball/53ad81c4249c6dd38deea3f6014ad0b1be47f2db",
- "reference": "53ad81c4249c6dd38deea3f6014ad0b1be47f2db",
+ "url": "https://api.github.com/repos/City-of-Helsinki/drupal-tools/zipball/3de6f884ac7de9a43fe242f371dcf9416cac47b2",
+ "reference": "3de6f884ac7de9a43fe242f371dcf9416cac47b2",
"shasum": ""
},
"require": {
"drupal/helfi_api_base": "*",
- "drush/drush": "^11 || ^12 || ^13"
+ "drush/drush": "^12 || ^13"
+ },
+ "conflict": {
+ "drush/drush": "< 12.5"
},
"require-dev": {
"composer/installers": "^2",
@@ -4377,7 +4382,7 @@
"source": "https://github.com/City-of-Helsinki/drupal-tools/tree/main",
"issues": "https://github.com/City-of-Helsinki/drupal-tools/issues"
},
- "time": "2024-10-23T10:28:01+00:00"
+ "time": "2024-11-26T06:52:09+00:00"
},
{
"name": "drupal/helfi_navigation",
@@ -4415,16 +4420,16 @@
},
{
"name": "drupal/helfi_platform_config",
- "version": "4.8.0",
+ "version": "4.8.1",
"source": {
"type": "git",
"url": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config.git",
- "reference": "d93cdc55e761665a2bb68503f466ab376a745c10"
+ "reference": "6c57a1041a22c37008822ea642ce63c763081369"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/d93cdc55e761665a2bb68503f466ab376a745c10",
- "reference": "d93cdc55e761665a2bb68503f466ab376a745c10",
+ "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/6c57a1041a22c37008822ea642ce63c763081369",
+ "reference": "6c57a1041a22c37008822ea642ce63c763081369",
"shasum": ""
},
"require": {
@@ -4493,7 +4498,7 @@
"ruflin/elastica": "^8.0"
},
"conflict": {
- "drupal/core": "<10.3",
+ "drupal/core": "<10.3.10",
"drupal/core-composer-scaffold": "<10.3",
"drupal/ctools": "<3.11 || ^4.0.1",
"drupal/default_content": ">2.0.0-alpha2",
@@ -4521,8 +4526,7 @@
"[#UHF-9388] Process configuration translation files for custom modules (https://www.drupal.org/i/2845437)": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/fd68277191b8f8ec290e53b5fbbae699b2260384/patches/drupal-2845437-process-custom-module-translation-config-10.3.x.patch",
"[#UHF-9690] Allow updating lists when switching from allowed values to allowed values function (https://www.drupal.org/i/2873353)": "https://www.drupal.org/files/issues/2021-05-18/allow-allowed-values-function-update-D9-2873353_1.patch",
"[#UHF-9952, #UHF-9980] Duplicate
tags (https://www.drupal.org/i/3083786)": "https://www.drupal.org/files/issues/2024-08-08/3083786--mr-8066--10-3-backport.patch",
- "[#UHF-10716] Ensure consistent ordering when calculating library asset order (https://www.drupal.org/i/3467860)": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/955e2fc9493c6574ab070187b8a5a8634da7daab/patches/drupal-3467860-optimized-js-assets-mismatch.patch",
- "[#UHF-10967] Performance Degraded after update to twig 3.14.2 (https://www.drupal.org/project/drupal/issues/3487031)": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/90b44ce5a778d05bbe89f7eaca6412b7bd34efa0/patches/10177.patch"
+ "[#UHF-10716] Ensure consistent ordering when calculating library asset order (https://www.drupal.org/i/3467860)": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/955e2fc9493c6574ab070187b8a5a8634da7daab/patches/drupal-3467860-optimized-js-assets-mismatch.patch"
},
"drupal/default_content": {
"https://www.drupal.org/project/default_content/issues/2640734#comment-14638943": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-helfi-platform-config/main/patches/default_content_2.0.0-alpha2-2640734_manual_imports-e164a354.patch"
@@ -4551,10 +4555,10 @@
],
"description": "HELfi platform config",
"support": {
- "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/4.8.0",
+ "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/4.8.1",
"issues": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/issues"
},
- "time": "2024-11-20T11:35:52+00:00"
+ "time": "2024-11-25T13:05:33+00:00"
},
{
"name": "drupal/helfi_proxy",
@@ -6411,20 +6415,20 @@
},
{
"name": "drupal/search_api",
- "version": "1.35.0",
+ "version": "1.36.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/search_api.git",
- "reference": "8.x-1.35"
+ "reference": "8.x-1.36"
},
"dist": {
"type": "zip",
- "url": "https://ftp.drupal.org/files/projects/search_api-8.x-1.35.zip",
- "reference": "8.x-1.35",
- "shasum": "d119726e870f793c6470d2a4fa9286662c5eb45d"
+ "url": "https://ftp.drupal.org/files/projects/search_api-8.x-1.36.zip",
+ "reference": "8.x-1.36",
+ "shasum": "1464f21cb924746a0df7f4cb080abaf00804e9a7"
},
"require": {
- "drupal/core": "^10.1 || ^11"
+ "drupal/core": "^10.2 || ^11"
},
"conflict": {
"drupal/search_api_solr": "2.* || 3.0 || 3.1"
@@ -6442,17 +6446,12 @@
"type": "drupal-module",
"extra": {
"drupal": {
- "version": "8.x-1.35",
- "datestamp": "1718551025",
+ "version": "8.x-1.36",
+ "datestamp": "1732448767",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
- },
- "drush": {
- "services": {
- "drush.services.yml": "^9 || ^10 || ^11"
- }
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
@@ -6537,36 +6536,37 @@
},
{
"name": "drupal/simple_sitemap",
- "version": "4.2.1",
+ "version": "4.2.2",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/simple_sitemap.git",
- "reference": "4.2.1"
+ "reference": "4.2.2"
},
"dist": {
"type": "zip",
- "url": "https://ftp.drupal.org/files/projects/simple_sitemap-4.2.1.zip",
- "reference": "4.2.1",
- "shasum": "d96b481571ca2fecdb305e87d2557f9338116864"
+ "url": "https://ftp.drupal.org/files/projects/simple_sitemap-4.2.2.zip",
+ "reference": "4.2.2",
+ "shasum": "1f9c9197d37450fb347a4fa3f10191f5f4b5ef13"
},
"require": {
"drupal/core": "^10.2 || ^11",
"ext-xmlwriter": "*"
},
+ "conflict": {
+ "drush/drush": "<12.5.1"
+ },
+ "require-dev": {
+ "drupal/paragraphs": "^1.18"
+ },
"type": "drupal-module",
"extra": {
"drupal": {
- "version": "4.2.1",
- "datestamp": "1723802052",
+ "version": "4.2.2",
+ "datestamp": "1732485885",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
- },
- "drush": {
- "services": {
- "drush.services.yml": ">=9"
- }
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
@@ -8118,16 +8118,16 @@
},
{
"name": "firebase/php-jwt",
- "version": "v6.10.1",
+ "version": "v6.10.2",
"source": {
"type": "git",
"url": "https://github.com/firebase/php-jwt.git",
- "reference": "500501c2ce893c824c801da135d02661199f60c5"
+ "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5",
- "reference": "500501c2ce893c824c801da135d02661199f60c5",
+ "url": "https://api.github.com/repos/firebase/php-jwt/zipball/30c19ed0f3264cb660ea496895cfb6ef7ee3653b",
+ "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b",
"shasum": ""
},
"require": {
@@ -8175,9 +8175,9 @@
],
"support": {
"issues": "https://github.com/firebase/php-jwt/issues",
- "source": "https://github.com/firebase/php-jwt/tree/v6.10.1"
+ "source": "https://github.com/firebase/php-jwt/tree/v6.10.2"
},
- "time": "2024-05-18T18:05:11+00:00"
+ "time": "2024-11-24T11:22:49+00:00"
},
{
"name": "galbar/jsonpath",
@@ -8232,16 +8232,16 @@
},
{
"name": "grasmash/expander",
- "version": "3.0.0",
+ "version": "3.0.1",
"source": {
"type": "git",
"url": "https://github.com/grasmash/expander.git",
- "reference": "bb1c1a2430957945cf08c5a62f5d72a6aa6a2c82"
+ "reference": "eea11b9afb0c32483b18b9009f4ca07b770e39f4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/grasmash/expander/zipball/bb1c1a2430957945cf08c5a62f5d72a6aa6a2c82",
- "reference": "bb1c1a2430957945cf08c5a62f5d72a6aa6a2c82",
+ "url": "https://api.github.com/repos/grasmash/expander/zipball/eea11b9afb0c32483b18b9009f4ca07b770e39f4",
+ "reference": "eea11b9afb0c32483b18b9009f4ca07b770e39f4",
"shasum": ""
},
"require": {
@@ -8278,9 +8278,9 @@
"description": "Expands internal property references in PHP arrays file.",
"support": {
"issues": "https://github.com/grasmash/expander/issues",
- "source": "https://github.com/grasmash/expander/tree/3.0.0"
+ "source": "https://github.com/grasmash/expander/tree/3.0.1"
},
- "time": "2022-05-10T13:14:49+00:00"
+ "time": "2024-11-25T23:28:05+00:00"
},
{
"name": "grasmash/yaml-cli",
@@ -10008,16 +10008,16 @@
},
{
"name": "pear/pear-core-minimal",
- "version": "v1.10.15",
+ "version": "v1.10.16",
"source": {
"type": "git",
"url": "https://github.com/pear/pear-core-minimal.git",
- "reference": "ce0adade8b97561656ace07cdaac4751c271ea8c"
+ "reference": "c0f51b45f50683bf5bbf558036854ebc9b54d033"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/pear/pear-core-minimal/zipball/ce0adade8b97561656ace07cdaac4751c271ea8c",
- "reference": "ce0adade8b97561656ace07cdaac4751c271ea8c",
+ "url": "https://api.github.com/repos/pear/pear-core-minimal/zipball/c0f51b45f50683bf5bbf558036854ebc9b54d033",
+ "reference": "c0f51b45f50683bf5bbf558036854ebc9b54d033",
"shasum": ""
},
"require": {
@@ -10053,7 +10053,7 @@
"issues": "http://pear.php.net/bugs/search.php?cmd=display&package_name[]=PEAR",
"source": "https://github.com/pear/pear-core-minimal"
},
- "time": "2024-03-16T18:41:45+00:00"
+ "time": "2024-11-24T22:27:58+00:00"
},
{
"name": "pear/pear_exception",
diff --git a/conf/cmi/core.entity_form_display.node.landing_page.default.yml b/conf/cmi/core.entity_form_display.node.landing_page.default.yml
index 2b32c5c7..8afb1795 100644
--- a/conf/cmi/core.entity_form_display.node.landing_page.default.yml
+++ b/conf/cmi/core.entity_form_display.node.landing_page.default.yml
@@ -128,9 +128,9 @@ content:
third_party_settings: { }
simple_sitemap:
weight: 10
+ region: content
settings: { }
third_party_settings: { }
- region: content
status:
type: boolean_checkbox
weight: 12
diff --git a/conf/cmi/views.view.er_tpr_unit.yml b/conf/cmi/views.view.er_tpr_unit.yml
index dd75506a..cbd32963 100644
--- a/conf/cmi/views.view.er_tpr_unit.yml
+++ b/conf/cmi/views.view.er_tpr_unit.yml
@@ -91,6 +91,7 @@ display:
type: mini
options:
offset: 0
+ pagination_heading_level: h4
items_per_page: 10
total_pages: null
id: 0
@@ -105,7 +106,6 @@ display:
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
- pagination_heading_level: h4
exposed_form:
type: basic
options:
diff --git a/conf/cmi/views.view.locked_services.yml b/conf/cmi/views.view.locked_services.yml
index 1151b560..50feaca1 100644
--- a/conf/cmi/views.view.locked_services.yml
+++ b/conf/cmi/views.view.locked_services.yml
@@ -381,6 +381,7 @@ display:
type: full
options:
offset: 0
+ pagination_heading_level: h4
items_per_page: 50
total_pages: null
id: 0
@@ -398,7 +399,6 @@ display:
offset: false
offset_label: Offset
quantity: 9
- pagination_heading_level: h4
exposed_form:
type: basic
options:
diff --git a/conf/cmi/views.view.locked_units.yml b/conf/cmi/views.view.locked_units.yml
index 11b83fa8..d296c793 100644
--- a/conf/cmi/views.view.locked_units.yml
+++ b/conf/cmi/views.view.locked_units.yml
@@ -381,6 +381,7 @@ display:
type: full
options:
offset: 0
+ pagination_heading_level: h4
items_per_page: 50
total_pages: null
id: 0
@@ -398,7 +399,6 @@ display:
offset: false
offset_label: Offset
quantity: 9
- pagination_heading_level: h4
exposed_form:
type: basic
options:
diff --git a/conf/cmi/views.view.service_list.yml b/conf/cmi/views.view.service_list.yml
index e2ccbdeb..7e190ab5 100644
--- a/conf/cmi/views.view.service_list.yml
+++ b/conf/cmi/views.view.service_list.yml
@@ -109,6 +109,7 @@ display:
type: full
options:
offset: 0
+ pagination_heading_level: h4
items_per_page: 4
total_pages: null
id: 0
@@ -126,7 +127,6 @@ display:
offset: false
offset_label: Offset
quantity: 9
- pagination_heading_level: h4
exposed_form:
type: basic
options:
@@ -646,6 +646,7 @@ display:
type: full
options:
offset: 0
+ pagination_heading_level: h4
items_per_page: 5
total_pages: null
id: 0
@@ -663,7 +664,6 @@ display:
offset: false
offset_label: Offset
quantity: 9
- pagination_heading_level: h4
exposed_form:
type: basic
options:
diff --git a/conf/cmi/views.view.service_units.yml b/conf/cmi/views.view.service_units.yml
index ce78017e..631f7dee 100644
--- a/conf/cmi/views.view.service_units.yml
+++ b/conf/cmi/views.view.service_units.yml
@@ -93,6 +93,7 @@ display:
type: full
options:
offset: 0
+ pagination_heading_level: h4
items_per_page: 8
total_pages: null
id: 0
@@ -110,7 +111,6 @@ display:
offset: false
offset_label: Offset
quantity: 9
- pagination_heading_level: h4
exposed_form:
type: basic
options:
diff --git a/conf/cmi/views.view.unit_search.yml b/conf/cmi/views.view.unit_search.yml
index 72a7edf1..101b4532 100644
--- a/conf/cmi/views.view.unit_search.yml
+++ b/conf/cmi/views.view.unit_search.yml
@@ -286,6 +286,7 @@ display:
type: full
options:
offset: 0
+ pagination_heading_level: h4
items_per_page: 15
total_pages: null
id: 0
@@ -303,7 +304,6 @@ display:
offset: false
offset_label: Offset
quantity: 9
- pagination_heading_level: h4
exposed_form:
type: basic
options:
diff --git a/docker/openshift/crons/menu-queue.sh b/docker/openshift/crons/menu-queue.sh
new file mode 100644
index 00000000..c4cd99b0
--- /dev/null
+++ b/docker/openshift/crons/menu-queue.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+source /init.sh
+
+if [ -z "$AMQ_BROKERS" ]; then
+ exit 0
+fi
+
+if ! is_drupal_module_enabled "helfi_navigation"; then
+ exit 0
+fi
+
+while true
+do
+ # Restart process every 12 hours.
+ drush stomp:worker helfi_navigation_menu_queue --lease-time 43200
+done
diff --git a/docker/openshift/crons/revision-queue.sh b/docker/openshift/crons/revision-queue.sh
new file mode 100644
index 00000000..130ba3fe
--- /dev/null
+++ b/docker/openshift/crons/revision-queue.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -z "$AMQ_BROKERS" ]; then
+ exit 0
+fi
+
+while true
+do
+ # Restart process every 12 hours.
+ drush stomp:worker helfi_api_base_revision --lease-time 43200
+done
diff --git a/public/sites/default/settings.php b/public/sites/default/settings.php
index 2f8d1e8e..b80276cd 100644
--- a/public/sites/default/settings.php
+++ b/public/sites/default/settings.php
@@ -260,24 +260,18 @@ function drupal_get_env(string|array $variables) : mixed {
$config['helfi_proxy.settings']['session_suffix'] = $session_suffix;
}
-if ($robots_header_enabled = getenv('DRUPAL_X_ROBOTS_TAG_HEADER')) {
- $config['helfi_proxy.settings']['robots_header_enabled'] = (bool) $robots_header_enabled;
-}
-
-$artemis_destination = drupal_get_env([
- 'ARTEMIS_DESTINATION',
+$amq_destination = drupal_get_env([
'PROJECT_NAME',
]);
+$amq_brokers = getenv('AMQ_BROKERS');
-$artemis_brokers = getenv('ARTEMIS_BROKERS');
-
-if ($artemis_brokers && $artemis_destination) {
+if ($amq_brokers && $amq_destination) {
$settings['stomp']['default'] = [
- 'clientId' => getenv('ARTEMIS_CLIENT_ID') ?: 'artemis',
- 'login' => getenv('ARTEMIS_LOGIN') ?: NULL,
- 'passcode' => getenv('ARTEMIS_PASSCODE') ?: NULL,
- 'destination' => sprintf('/queue/%s', $artemis_destination),
- 'brokers' => $artemis_brokers,
+ 'clientId' => getenv('AMQ_CLIENT_ID') ?: 'client_ ' . $amq_destination,
+ 'login' => getenv('AMQ_USER') ?: NULL,
+ 'passcode' => getenv('AMQ_PASSWORD') ?: NULL,
+ 'destination' => sprintf('/queue/%s', $amq_destination),
+ 'brokers' => $amq_brokers,
'timeout' => ['read' => 12000],
'heartbeat' => [
'send' => 20000,
@@ -289,7 +283,17 @@ function drupal_get_env(string|array $variables) : mixed {
],
],
];
- $settings['queue_default'] = 'queue.stomp.default';
+
+ $queues = [
+ 'helfi_navigation_menu_queue',
+ 'helfi_api_base_revision',
+ ];
+ foreach ($queues as $queue) {
+ $settings['queue_service_' . $queue] = 'queue.stomp.default';
+ }
+ // You must configure project specific queues manually in 'all.settings.php'
+ // file.
+ // @see https://github.com/City-of-Helsinki/drupal-helfi-platform/blob/main/documentation/queue.md
}
$config['filelog.settings']['rotation']['schedule'] = 'never';
From e31c53aea3922b71081d0a9f17f4c941bc5799f4 Mon Sep 17 00:00:00 2001
From: tuutti
Date: Tue, 26 Nov 2024 09:01:14 +0200
Subject: [PATCH 2/2] Removed compose profile
---
.env | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.env b/.env
index 9a76954d..0c10fac2 100644
--- a/.env
+++ b/.env
@@ -6,7 +6,7 @@
COMPOSE_PROJECT_NAME=asuminen
PROJECT_NAME=asuminen
-COMPOSE_PROFILES=queue
+COMPOSE_PROFILES=
# OpenShift project name
OC_PROJECT_NAME=hki-kanslia-asuminen-test