' diff --git a/conf/cmi/imagemagick.settings.yml b/conf/cmi/imagemagick.settings.yml index 6c8cb305..9abc0c31 100644 --- a/conf/cmi/imagemagick.settings.yml +++ b/conf/cmi/imagemagick.settings.yml @@ -2,6 +2,7 @@ _core: default_config_hash: do7QLcSY6lDV82NBI3jy5FNsUwWFjjJzXmHPTGsSvIQ quality: 75 binaries: imagemagick +imagemagick_version: v7 path_to_binaries: '' prepend: '' log_warnings: true diff --git a/conf/cmi/language/sv/views.view.archive.yml b/conf/cmi/language/sv/views.view.archive.yml index 35b91fae..a5b73ef5 100644 --- a/conf/cmi/language/sv/views.view.archive.yml +++ b/conf/cmi/language/sv/views.view.archive.yml @@ -21,14 +21,7 @@ display: exposed_sorts_label: 'Sortera efter' sort_asc_label: Stigande sort_desc_label: Fallande - arguments: - created_year_month: - title: '{{ arguments.created_year_month }}' block_1: display_title: Block - display_options: - arguments: - created_year_month: - title: '{{ arguments.created_year_month }}' page_1: display_title: Sida diff --git a/conf/cmi/language/sv/views.view.files.yml b/conf/cmi/language/sv/views.view.files.yml index 7f71fa3d..15280eba 100644 --- a/conf/cmi/language/sv/views.view.files.yml +++ b/conf/cmi/language/sv/views.view.files.yml @@ -6,8 +6,6 @@ display: display_options: title: Filer fields: - fid: - label: Fid filename: label: Namn separator: ', ' @@ -26,8 +24,6 @@ display: label: 'Datum för ändring' count: label: 'Används i' - alter: - path: 'admin/content/files/usage/{{ fid }}' format_plural_string: !!binary MSBwbGFjZQNAY291bnQgcGxhY2Vz pager: options: @@ -76,7 +72,6 @@ display: label: 'Registrerar modul' count: label: 'Antal använd' - format_plural_string: !!binary MQNAY291bnQ= pager: options: tags: diff --git a/conf/cmi/language/sv/views.view.user_admin_people.yml b/conf/cmi/language/sv/views.view.user_admin_people.yml index 1a06e563..fe04e8c2 100644 --- a/conf/cmi/language/sv/views.view.user_admin_people.yml +++ b/conf/cmi/language/sv/views.view.user_admin_people.yml @@ -19,9 +19,6 @@ display: label: Roller created: label: 'Medlem i' - settings: - future_format: '@interval' - past_format: '@interval' access: label: 'Senast åtkomst' settings: diff --git a/public/sites/default/settings.php b/public/sites/default/settings.php index fe8a1bc9..7d2fe927 100755 --- a/public/sites/default/settings.php +++ b/public/sites/default/settings.php @@ -258,42 +258,6 @@ function drupal_get_env(string|array $variables) : mixed { $config['helfi_proxy.settings']['session_suffix'] = $session_suffix; } -$amq_destination = drupal_get_env([ - 'PROJECT_NAME', -]); -$amq_brokers = getenv('AMQ_BROKERS'); - -if ($amq_brokers && $amq_destination) { - $settings['stomp']['default'] = [ - '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, - 'receive' => 0, - 'observers' => [ - [ - 'class' => '\Stomp\Network\Observer\HeartbeatEmitter', - ], - ], - ], - ]; - - $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 -} - if ( ($redis_host = getenv('REDIS_HOST')) && file_exists('modules/contrib/redis/redis.services.yml') && @@ -401,6 +365,12 @@ function drupal_get_env(string|array $variables) : mixed { $config['helfi_search.settings']['openai_model'] = getenv('OPENAI_MODEL'); } +// Hakuvahti: +if (getenv('HAKUVAHTI_URL')) { + $config['helfi_hakuvahti.settings']['base_url'] = getenv('HAKUVAHTI_URL'); + $config['helfi_hakuvahti.settings']['api_key'] = getenv('HAKUVAHTI_API_KEY'); +} + // E2E test users. We should never do this in production, so adding a failsafe // in case the environment variable would ever end up in production. if (getenv('APP_ENV') !== 'production' && $e2e_test_user = getenv('E2E_TEST_USER')) { diff --git a/public/themes/custom/hdbt_subtheme/package-lock.json b/public/themes/custom/hdbt_subtheme/package-lock.json index 976659ce..5067025a 100644 --- a/public/themes/custom/hdbt_subtheme/package-lock.json +++ b/public/themes/custom/hdbt_subtheme/package-lock.json @@ -207,27 +207,6 @@ "resolved": "../../contrib/hdbt/theme-builder", "link": true }, - "node_modules/@isaacs/balanced-match": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/balanced-match/-/balanced-match-4.0.1.tgz", - "integrity": "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==", - "license": "MIT", - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/@isaacs/brace-expansion": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", - "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", - "license": "MIT", - "dependencies": { - "@isaacs/balanced-match": "^4.0.1" - }, - "engines": { - "node": "20 || >=22" - } - }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -579,6 +558,27 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.3.tgz", + "integrity": "sha512-fy6KJm2RawA5RcHkLa1z/ScpBeA762UF9KmZQxwIbDtRJrgLzM10depAiEQ+CXYcoiqW1/m96OAAoke2nE9EeA==", + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, "node_modules/braces": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", @@ -864,15 +864,15 @@ } }, "node_modules/minimatch": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.1.tgz", - "integrity": "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==", + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.2.tgz", + "integrity": "sha512-+G4CpNBxa5MprY+04MbgOw1v7So6n5JY166pFi9KfYwT78fxScCeSNQSNzp6dpPSW2rONOps6Ocam1wFhCgoVw==", "license": "BlueOak-1.0.0", "dependencies": { - "@isaacs/brace-expansion": "^5.0.0" + "brace-expansion": "^5.0.2" }, "engines": { - "node": "20 || >=22" + "node": "18 || 20 || >=22" }, "funding": { "url": "https://github.com/sponsors/isaacs" diff --git a/tools/make/drupal.mk b/tools/make/drupal.mk index d015b7e3..602b993e 100644 --- a/tools/make/drupal.mk +++ b/tools/make/drupal.mk @@ -116,7 +116,7 @@ drush-sanitize-database: PHONY += drush-create-dump drush-create-dump: ## Create database dump to dump.sql - $(call drush,sql-dump --structure-tables-key=common --extra-dump=--no-tablespaces --result-file=/app/dump.sql) + $(call drush,sql-dump --structure-tables-key=common --extra-dump='--no-tablespaces --skip-ssl' --result-file=/app/dump.sql) PHONY += open-db-gui open-db-gui: ## Open database with GUI tool