From 95295d46e940b955725889f8698ca1ec11e4c880 Mon Sep 17 00:00:00 2001 From: khalima <1712902+khalima@users.noreply.github.com> Date: Wed, 22 May 2024 07:16:17 +0000 Subject: [PATCH] Update configuration --- compose.yaml | 22 ++++ composer.lock | 114 +++++++++--------- conf/cmi/block.block.claro_help.yml | 22 ++++ conf/cmi/block.block.gin_help.yml | 22 ++++ ..._news_groups.helfi_news_groups.default.yml | 13 +- ...oods.helfi_news_neighbourhoods.default.yml | 13 +- ...elfi_news_tags.helfi_news_tags.default.yml | 13 +- ..._news_groups.helfi_news_groups.default.yml | 4 +- ...oods.helfi_news_neighbourhoods.default.yml | 4 +- ...elfi_news_tags.helfi_news_tags.default.yml | 4 +- conf/cmi/core.extension.yml | 1 + ...tities.external_entity_type.helfi_news.yml | 31 ++--- ...external_entity_type.helfi_news_groups.yml | 14 +-- ..._entity_type.helfi_news_neighbourhoods.yml | 14 +-- ...s.external_entity_type.helfi_news_tags.yml | 14 +-- ...fi_news_groups.field_frontpage_term_id.yml | 22 ---- ...neighbourhoods.field_frontpage_term_id.yml | 22 ---- ...elfi_news_tags.field_frontpage_term_id.yml | 22 ---- ...raph.news_list.field_helfi_news_groups.yml | 2 +- ...s_list.field_helfi_news_neighbourhoods.yml | 2 +- ...agraph.news_list.field_helfi_news_tags.yml | 2 +- ....field.paragraph.news_list.field_limit.yml | 2 +- ....news_list.field_news_list_description.yml | 2 +- ...agraph.news_list.field_news_list_title.yml | 2 +- ...fi_news_groups.field_frontpage_term_id.yml | 23 ---- ...neighbourhoods.field_frontpage_term_id.yml | 23 ---- ...elfi_news_tags.field_frontpage_term_id.yml | 23 ---- ...rage.paragraph.field_helfi_news_groups.yml | 2 +- ...agraph.field_helfi_news_neighbourhoods.yml | 2 +- ...torage.paragraph.field_helfi_news_tags.yml | 2 +- .../field.storage.paragraph.field_limit.yml | 2 +- ....paragraph.field_news_list_description.yml | 2 +- ...torage.paragraph.field_news_list_title.yml | 2 +- .../language/fi/block.block.claro_help.yml | 2 + conf/cmi/language/fi/block.block.gin_help.yml | 2 + ...external_entity_type.helfi_news_groups.yml | 2 + ..._entity_type.helfi_news_neighbourhoods.yml | 2 + ...s.external_entity_type.helfi_news_tags.yml | 2 + .../language/sv/block.block.claro_help.yml | 2 + conf/cmi/language/sv/block.block.gin_help.yml | 2 + .../paragraphs.paragraphs_type.news_list.yml | 2 +- docker/elastic-proxy/elastic.conf | 26 ++++ docker/elastic-proxy/nginx.conf | 60 +++++++++ docker/openshift/entrypoints/20-deploy.sh | 11 +- 44 files changed, 292 insertions(+), 285 deletions(-) create mode 100644 conf/cmi/block.block.claro_help.yml create mode 100644 conf/cmi/block.block.gin_help.yml delete mode 100644 conf/cmi/field.field.helfi_news_groups.helfi_news_groups.field_frontpage_term_id.yml delete mode 100644 conf/cmi/field.field.helfi_news_neighbourhoods.helfi_news_neighbourhoods.field_frontpage_term_id.yml delete mode 100644 conf/cmi/field.field.helfi_news_tags.helfi_news_tags.field_frontpage_term_id.yml delete mode 100644 conf/cmi/field.storage.helfi_news_groups.field_frontpage_term_id.yml delete mode 100644 conf/cmi/field.storage.helfi_news_neighbourhoods.field_frontpage_term_id.yml delete mode 100644 conf/cmi/field.storage.helfi_news_tags.field_frontpage_term_id.yml create mode 100644 conf/cmi/language/fi/block.block.claro_help.yml create mode 100644 conf/cmi/language/fi/block.block.gin_help.yml create mode 100644 conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_groups.yml create mode 100644 conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml create mode 100644 conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_tags.yml create mode 100644 conf/cmi/language/sv/block.block.claro_help.yml create mode 100644 conf/cmi/language/sv/block.block.gin_help.yml create mode 100644 docker/elastic-proxy/elastic.conf create mode 100644 docker/elastic-proxy/nginx.conf diff --git a/compose.yaml b/compose.yaml index e2bc345c..56202025 100644 --- a/compose.yaml +++ b/compose.yaml @@ -87,6 +87,28 @@ services: - "traefik.http.routers.${COMPOSE_PROJECT_NAME}-varnish.tls=true" - "traefik.http.services.${COMPOSE_PROJECT_NAME}-varnish.loadbalancer.server.port=6081" - "traefik.docker.network=stonehenge-network" + elastic-proxy: + container_name: "${COMPOSE_PROJECT_NAME}-elastic-proxy" + image: nginxinc/nginx-unprivileged:alpine-perl + environment: + ELASTICSEARCH_URL: "http://elastic:9200" + volumes: + - ./docker/elastic-proxy/nginx.conf:/etc/nginx/nginx.conf + - ./docker/elastic-proxy/elastic.conf:/etc/nginx/templates/default.conf.template + networks: + - stonehenge-network + - internal + labels: + - "traefik.enable=true" + - "traefik.http.routers.nginx.entrypoints=https" + - "traefik.http.routers.nginx.rule=Host(`elastic-proxy-${DRUPAL_HOSTNAME}`)" + - "traefik.http.services.nginx.loadbalancer.server.port=8080" + - "traefik.http.routers.nginx.tls=true" + - "traefik.docker.network=stonehenge-network" + depends_on: + - elastic + profiles: + - search elastic: image: docker.elastic.co/elasticsearch/elasticsearch:8.4.0 container_name: "${COMPOSE_PROJECT_NAME}-elastic" diff --git a/composer.lock b/composer.lock index b752d3b0..2182e1b4 100644 --- a/composer.lock +++ b/composer.lock @@ -125,16 +125,16 @@ }, { "name": "chi-teck/drupal-code-generator", - "version": "3.5.0", + "version": "3.6.0", "source": { "type": "git", "url": "https://github.com/Chi-teck/drupal-code-generator.git", - "reference": "74c2dc687e124bfc4001e73e9346b33067e2ec2b" + "reference": "7794c268309a6fd7aeecfd1246a01238c14384c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Chi-teck/drupal-code-generator/zipball/74c2dc687e124bfc4001e73e9346b33067e2ec2b", - "reference": "74c2dc687e124bfc4001e73e9346b33067e2ec2b", + "url": "https://api.github.com/repos/Chi-teck/drupal-code-generator/zipball/7794c268309a6fd7aeecfd1246a01238c14384c4", + "reference": "7794c268309a6fd7aeecfd1246a01238c14384c4", "shasum": "" }, "require": { @@ -179,9 +179,9 @@ "description": "Drupal code generator", "support": { "issues": "https://github.com/Chi-teck/drupal-code-generator/issues", - "source": "https://github.com/Chi-teck/drupal-code-generator/tree/3.5.0" + "source": "https://github.com/Chi-teck/drupal-code-generator/tree/3.6.0" }, - "time": "2024-04-11T11:23:44+00:00" + "time": "2024-05-20T12:50:42+00:00" }, { "name": "commerceguys/addressing", @@ -3695,16 +3695,16 @@ }, { "name": "drupal/hdbt", - "version": "6.5.10", + "version": "6.5.11", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-hdbt.git", - "reference": "a1158717f670b8ff61243af8cefb51f557722edf" + "reference": "1bceace4bc51d2a6ebfc368434485cbea20c1d52" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt/zipball/a1158717f670b8ff61243af8cefb51f557722edf", - "reference": "a1158717f670b8ff61243af8cefb51f557722edf", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt/zipball/1bceace4bc51d2a6ebfc368434485cbea20c1d52", + "reference": "1bceace4bc51d2a6ebfc368434485cbea20c1d52", "shasum": "" }, "require": { @@ -3722,23 +3722,23 @@ "Drupal" ], "support": { - "source": "https://github.com/City-of-Helsinki/drupal-hdbt/tree/6.5.10", + "source": "https://github.com/City-of-Helsinki/drupal-hdbt/tree/6.5.11", "issues": "https://github.com/City-of-Helsinki/drupal-hdbt/issues" }, - "time": "2024-05-07T08:17:22+00:00" + "time": "2024-05-20T09:37:47+00:00" }, { "name": "drupal/hdbt_admin", - "version": "3.1.6", + "version": "3.1.7", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-hdbt-admin.git", - "reference": "96f29332a57540bda695cd53e5b288bc96960076" + "reference": "33a217058068330c90b049e539e91b19d24d933d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt-admin/zipball/96f29332a57540bda695cd53e5b288bc96960076", - "reference": "96f29332a57540bda695cd53e5b288bc96960076", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt-admin/zipball/33a217058068330c90b049e539e91b19d24d933d", + "reference": "33a217058068330c90b049e539e91b19d24d933d", "shasum": "" }, "require": { @@ -3757,10 +3757,10 @@ "Drupal" ], "support": { - "source": "https://github.com/City-of-Helsinki/drupal-hdbt-admin/tree/3.1.6", + "source": "https://github.com/City-of-Helsinki/drupal-hdbt-admin/tree/3.1.7", "issues": "https://github.com/City-of-Helsinki/drupal-hdbt-admin/issues" }, - "time": "2024-04-11T13:46:53+00:00" + "time": "2024-05-20T09:40:02+00:00" }, { "name": "drupal/health_check", @@ -3904,12 +3904,12 @@ "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-tools.git", - "reference": "7e697414bd03431053cc8d83a8d900452f48ab0c" + "reference": "9b33c808570b6e8daea537fd96885f9fe7246274" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-tools/zipball/7e697414bd03431053cc8d83a8d900452f48ab0c", - "reference": "7e697414bd03431053cc8d83a8d900452f48ab0c", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-tools/zipball/9b33c808570b6e8daea537fd96885f9fe7246274", + "reference": "9b33c808570b6e8daea537fd96885f9fe7246274", "shasum": "" }, "require": { @@ -3981,7 +3981,7 @@ "source": "https://github.com/City-of-Helsinki/drupal-tools/tree/main", "issues": "https://github.com/City-of-Helsinki/drupal-tools/issues" }, - "time": "2024-05-15T04:33:29+00:00" + "time": "2024-05-21T06:26:52+00:00" }, { "name": "drupal/helfi_navigation", @@ -4019,16 +4019,16 @@ }, { "name": "drupal/helfi_platform_config", - "version": "4.3.54", + "version": "4.3.57", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config.git", - "reference": "7e54899eea80996a9438465f247336fc2ebc0695" + "reference": "9ebb3f106cf8e2835cce6f789abb127234af9aab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/7e54899eea80996a9438465f247336fc2ebc0695", - "reference": "7e54899eea80996a9438465f247336fc2ebc0695", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/9ebb3f106cf8e2835cce6f789abb127234af9aab", + "reference": "9ebb3f106cf8e2835cce6f789abb127234af9aab", "shasum": "" }, "require": { @@ -4139,10 +4139,10 @@ ], "description": "HELfi platform config", "support": { - "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/4.3.54", + "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/4.3.57", "issues": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/issues" }, - "time": "2024-05-17T09:48:32+00:00" + "time": "2024-05-22T06:30:57+00:00" }, { "name": "drupal/helfi_proxy", @@ -5432,20 +5432,20 @@ }, { "name": "drupal/raven", - "version": "5.0.13", + "version": "5.0.14", "source": { "type": "git", "url": "https://git.drupalcode.org/project/raven.git", - "reference": "5.0.13" + "reference": "5.0.14" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/raven-5.0.13.zip", - "reference": "5.0.13", - "shasum": "12bcb8daeaaee35e28982e8d225011e866d535e9" + "url": "https://ftp.drupal.org/files/projects/raven-5.0.14.zip", + "reference": "5.0.14", + "shasum": "b6487db5f6be84aa06ccf48e878021c30a8511ba" }, "require": { - "drupal/core": "^10.1", + "drupal/core": "^10.1 || ^11", "sentry/sentry": "^4.4" }, "require-dev": { @@ -5457,8 +5457,8 @@ "type": "drupal-module", "extra": { "drupal": { - "version": "5.0.13", - "datestamp": "1715818744", + "version": "5.0.14", + "datestamp": "1716361931", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -7411,16 +7411,16 @@ }, { "name": "fileeye/mimemap", - "version": "2.1.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/FileEye/MimeMap.git", - "reference": "4ea9ac8d7fc599fffe7108f8821a7b324b5d0af4" + "reference": "7992d33502de8a82065fd9fe2d2e2b1f7f33d1ce" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FileEye/MimeMap/zipball/4ea9ac8d7fc599fffe7108f8821a7b324b5d0af4", - "reference": "4ea9ac8d7fc599fffe7108f8821a7b324b5d0af4", + "url": "https://api.github.com/repos/FileEye/MimeMap/zipball/7992d33502de8a82065fd9fe2d2e2b1f7f33d1ce", + "reference": "7992d33502de8a82065fd9fe2d2e2b1f7f33d1ce", "shasum": "" }, "require": { @@ -7463,9 +7463,9 @@ ], "support": { "issues": "https://github.com/FileEye/MimeMap/issues", - "source": "https://github.com/FileEye/MimeMap/tree/2.1.0" + "source": "https://github.com/FileEye/MimeMap/tree/2.1.1" }, - "time": "2024-04-06T13:00:52+00:00" + "time": "2024-05-17T19:22:06+00:00" }, { "name": "fileeye/pel", @@ -7530,26 +7530,26 @@ }, { "name": "firebase/php-jwt", - "version": "v6.10.0", + "version": "v6.10.1", "source": { "type": "git", "url": "https://github.com/firebase/php-jwt.git", - "reference": "a49db6f0a5033aef5143295342f1c95521b075ff" + "reference": "500501c2ce893c824c801da135d02661199f60c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/a49db6f0a5033aef5143295342f1c95521b075ff", - "reference": "a49db6f0a5033aef5143295342f1c95521b075ff", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/500501c2ce893c824c801da135d02661199f60c5", + "reference": "500501c2ce893c824c801da135d02661199f60c5", "shasum": "" }, "require": { - "php": "^7.4||^8.0" + "php": "^8.0" }, "require-dev": { - "guzzlehttp/guzzle": "^6.5||^7.4", + "guzzlehttp/guzzle": "^7.4", "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.5", - "psr/cache": "^1.0||^2.0", + "psr/cache": "^2.0||^3.0", "psr/http-client": "^1.0", "psr/http-factory": "^1.0" }, @@ -7587,9 +7587,9 @@ ], "support": { "issues": "https://github.com/firebase/php-jwt/issues", - "source": "https://github.com/firebase/php-jwt/tree/v6.10.0" + "source": "https://github.com/firebase/php-jwt/tree/v6.10.1" }, - "time": "2023-12-01T16:26:39+00:00" + "time": "2024-05-18T18:05:11+00:00" }, { "name": "galbar/jsonpath", @@ -16195,16 +16195,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.4.0", + "version": "5.4.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "298d2febfe79d03fe714eb871d5538da55205b1a" + "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/298d2febfe79d03fe714eb871d5538da55205b1a", - "reference": "298d2febfe79d03fe714eb871d5538da55205b1a", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", + "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", "shasum": "" }, "require": { @@ -16253,9 +16253,9 @@ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.4.0" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.4.1" }, - "time": "2024-04-09T21:13:58+00:00" + "time": "2024-05-21T05:55:05+00:00" }, { "name": "phpdocumentor/type-resolver", diff --git a/conf/cmi/block.block.claro_help.yml b/conf/cmi/block.block.claro_help.yml new file mode 100644 index 00000000..e75b1bc5 --- /dev/null +++ b/conf/cmi/block.block.claro_help.yml @@ -0,0 +1,22 @@ +uuid: d7572062-232b-44d4-9859-38c31b932ee9 +langcode: en +status: true +dependencies: + module: + - help + theme: + - claro +_core: + default_config_hash: jccFSSVqV0WCDb6NtML1VWAWTtDbZ-zn5YgTRMgMrIM +id: claro_help +theme: claro +region: help +weight: 0 +provider: null +plugin: help_block +settings: + id: help_block + label: Help + label_display: '0' + provider: help +visibility: { } diff --git a/conf/cmi/block.block.gin_help.yml b/conf/cmi/block.block.gin_help.yml new file mode 100644 index 00000000..61bc857a --- /dev/null +++ b/conf/cmi/block.block.gin_help.yml @@ -0,0 +1,22 @@ +uuid: 9b9f3047-a6df-4f35-8542-ead96c35a1c7 +langcode: en +status: true +dependencies: + module: + - help + theme: + - gin +_core: + default_config_hash: 8nOAry2oKqJOr0zbrlJ3sZHDFJLIO6j-0vT0K_TYca4 +id: gin_help +theme: gin +region: help +weight: 0 +provider: null +plugin: help_block +settings: + id: help_block + label: Help + label_display: '0' + provider: help +visibility: { } diff --git a/conf/cmi/core.entity_form_display.helfi_news_groups.helfi_news_groups.default.yml b/conf/cmi/core.entity_form_display.helfi_news_groups.helfi_news_groups.default.yml index 5e5aec15..054e98a1 100644 --- a/conf/cmi/core.entity_form_display.helfi_news_groups.helfi_news_groups.default.yml +++ b/conf/cmi/core.entity_form_display.helfi_news_groups.helfi_news_groups.default.yml @@ -2,8 +2,6 @@ uuid: b95230b8-fb95-4373-b877-6117cf4d0f46 langcode: en status: true dependencies: - config: - - field.field.helfi_news_groups.helfi_news_groups.field_frontpage_term_id module: - external_entities _core: @@ -13,14 +11,6 @@ targetEntityType: helfi_news_groups bundle: helfi_news_groups mode: default content: - field_frontpage_term_id: - type: string_textfield - weight: -4 - region: content - settings: - size: 60 - placeholder: '' - third_party_settings: { } title: type: string_textfield weight: -5 @@ -29,4 +19,5 @@ content: size: 60 placeholder: '' third_party_settings: { } -hidden: { } +hidden: + tid: true diff --git a/conf/cmi/core.entity_form_display.helfi_news_neighbourhoods.helfi_news_neighbourhoods.default.yml b/conf/cmi/core.entity_form_display.helfi_news_neighbourhoods.helfi_news_neighbourhoods.default.yml index fb3d0442..87f00b83 100644 --- a/conf/cmi/core.entity_form_display.helfi_news_neighbourhoods.helfi_news_neighbourhoods.default.yml +++ b/conf/cmi/core.entity_form_display.helfi_news_neighbourhoods.helfi_news_neighbourhoods.default.yml @@ -2,8 +2,6 @@ uuid: d13089ef-9704-4770-90a9-fd9fedc50405 langcode: en status: true dependencies: - config: - - field.field.helfi_news_neighbourhoods.helfi_news_neighbourhoods.field_frontpage_term_id module: - external_entities _core: @@ -13,14 +11,6 @@ targetEntityType: helfi_news_neighbourhoods bundle: helfi_news_neighbourhoods mode: default content: - field_frontpage_term_id: - type: string_textfield - weight: -4 - region: content - settings: - size: 60 - placeholder: '' - third_party_settings: { } title: type: string_textfield weight: -5 @@ -29,4 +19,5 @@ content: size: 60 placeholder: '' third_party_settings: { } -hidden: { } +hidden: + tid: true diff --git a/conf/cmi/core.entity_form_display.helfi_news_tags.helfi_news_tags.default.yml b/conf/cmi/core.entity_form_display.helfi_news_tags.helfi_news_tags.default.yml index b958c404..eed8c213 100644 --- a/conf/cmi/core.entity_form_display.helfi_news_tags.helfi_news_tags.default.yml +++ b/conf/cmi/core.entity_form_display.helfi_news_tags.helfi_news_tags.default.yml @@ -2,8 +2,6 @@ uuid: 972acdae-8e71-4d12-a335-bc91828f4851 langcode: en status: true dependencies: - config: - - field.field.helfi_news_tags.helfi_news_tags.field_frontpage_term_id module: - external_entities _core: @@ -13,14 +11,6 @@ targetEntityType: helfi_news_tags bundle: helfi_news_tags mode: default content: - field_frontpage_term_id: - type: string_textfield - weight: -4 - region: content - settings: - size: 60 - placeholder: '' - third_party_settings: { } title: type: string_textfield weight: -5 @@ -29,4 +19,5 @@ content: size: 60 placeholder: '' third_party_settings: { } -hidden: { } +hidden: + tid: true diff --git a/conf/cmi/core.entity_view_display.helfi_news_groups.helfi_news_groups.default.yml b/conf/cmi/core.entity_view_display.helfi_news_groups.helfi_news_groups.default.yml index 7c71202d..bf9771d0 100644 --- a/conf/cmi/core.entity_view_display.helfi_news_groups.helfi_news_groups.default.yml +++ b/conf/cmi/core.entity_view_display.helfi_news_groups.helfi_news_groups.default.yml @@ -2,8 +2,6 @@ uuid: 045f335b-7059-4d6a-9240-43909f3c1704 langcode: en status: true dependencies: - config: - - field.field.helfi_news_groups.helfi_news_groups.field_frontpage_term_id module: - external_entities _core: @@ -22,5 +20,5 @@ content: weight: 0 region: content hidden: - field_frontpage_term_id: true search_api_excerpt: true + tid: true diff --git a/conf/cmi/core.entity_view_display.helfi_news_neighbourhoods.helfi_news_neighbourhoods.default.yml b/conf/cmi/core.entity_view_display.helfi_news_neighbourhoods.helfi_news_neighbourhoods.default.yml index 91cbb10b..911deca1 100644 --- a/conf/cmi/core.entity_view_display.helfi_news_neighbourhoods.helfi_news_neighbourhoods.default.yml +++ b/conf/cmi/core.entity_view_display.helfi_news_neighbourhoods.helfi_news_neighbourhoods.default.yml @@ -2,8 +2,6 @@ uuid: f8d0f0da-4aff-436c-a4b8-4df8c6ee82f8 langcode: en status: true dependencies: - config: - - field.field.helfi_news_neighbourhoods.helfi_news_neighbourhoods.field_frontpage_term_id module: - external_entities _core: @@ -22,5 +20,5 @@ content: weight: 0 region: content hidden: - field_frontpage_term_id: true search_api_excerpt: true + tid: true diff --git a/conf/cmi/core.entity_view_display.helfi_news_tags.helfi_news_tags.default.yml b/conf/cmi/core.entity_view_display.helfi_news_tags.helfi_news_tags.default.yml index 9fc40811..af9d45f2 100644 --- a/conf/cmi/core.entity_view_display.helfi_news_tags.helfi_news_tags.default.yml +++ b/conf/cmi/core.entity_view_display.helfi_news_tags.helfi_news_tags.default.yml @@ -2,8 +2,6 @@ uuid: 7060dc64-5f95-4fa5-8046-bf0ad5e265c4 langcode: en status: true dependencies: - config: - - field.field.helfi_news_tags.helfi_news_tags.field_frontpage_term_id module: - external_entities _core: @@ -22,5 +20,5 @@ content: weight: 0 region: content hidden: - field_frontpage_term_id: true search_api_excerpt: true + tid: true diff --git a/conf/cmi/core.extension.yml b/conf/cmi/core.extension.yml index 5d5cd790..79c088ea 100644 --- a/conf/cmi/core.extension.yml +++ b/conf/cmi/core.extension.yml @@ -82,6 +82,7 @@ module: helfi_tpr_config: 0 helfi_tunnistamo: 0 helfi_user_roles: 0 + help: 0 image: 0 image_style_quality: 0 imagecache_external: 0 diff --git a/conf/cmi/external_entities.external_entity_type.helfi_news.yml b/conf/cmi/external_entities.external_entity_type.helfi_news.yml index 21ab788a..139ce530 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_news.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_news.yml @@ -3,37 +3,40 @@ langcode: en status: true dependencies: { } _core: - default_config_hash: 3cezkDpNnpY89NCorCj-4mBIeItsVAEG803y-phaZTM + default_config_hash: daIUGTR2nijXztOFPGoKZP9hdqNwUXU1g1Iksa29Rxo id: helfi_news label: 'Helfi: News' label_plural: 'Helfi: News' description: '' +generate_aliases: false read_only: true -generate_aliases: null field_mapper_id: jsonpath field_mapper_config: field_mappings: id: - value: $.id + value: '$._source.uuid_langcode[0]' uuid: - value: $.id + value: '$._source.uuid[0]' title: - value: "$.attributes['title']" - main_image: - uri: "$.relationships['main_image']['data']['relationships']['media_image']['data']['attributes']['uri']['url']" - title: "$.relationships['main_image']['data']['relationships']['media_image']['data']['meta']['alt']" + value: '$._source.title[0]' + tags_uuid: + value: '$._source.news_tags_uuid[*]' tags: - value: "$.relationships['tags']['data'][*]['attributes']['name']" + value: '$._source.field_news_item_tags[*]' groups: - value: "$.relationships['groups']['data'][*]['attributes']['name']" + value: '$._source.field_news_groups[*]' + groups_uuid: + value: '$._source.news_groups_uuid[*]' neighbourhoods: - value: "$.relationships['neighbourhoods']['data'][*]['attributes']['name']" + value: '$._source.field_news_neighbourhoods[*]' + neighbourhoods_uuid: + value: '$._source.neighbourhoods_uuid[*]' node_url: - value: "$.attributes['path']['alias']" + value: '$._source.url[0]' published_at: - value: "$.attributes['published_at']" + value: '$._source.published_at[0]' short_title: - value: "$.attributes['short_title']" + value: '$._source.short_title[0]' storage_client_id: helfi_news storage_client_config: { } persistent_cache_max_age: 1800 diff --git a/conf/cmi/external_entities.external_entity_type.helfi_news_groups.yml b/conf/cmi/external_entities.external_entity_type.helfi_news_groups.yml index a5e96c1f..db83d336 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_news_groups.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_news_groups.yml @@ -3,24 +3,24 @@ langcode: en status: true dependencies: { } _core: - default_config_hash: U7yZGEsFvk5UxcRUripTm4JXrM9_gU_UV1aMQ8986a4 + default_config_hash: 1KCEz52lFemwPMfVitwlGcbzmkcAJPGSSe6loUbVJc8 id: helfi_news_groups label: 'Helfi: News groups' label_plural: 'Helfi: News groups' description: 'Retrieves news groups taxonomy terms from Helfi' -read_only: true generate_aliases: null +read_only: true field_mapper_id: jsonpath field_mapper_config: field_mappings: id: - value: $.id + value: '$._source.uuid_langcode[0]' uuid: - value: $.id + value: '$._source.uuid[0]' title: - value: '$.attributes["name"]' - field_frontpage_term_id: - value: '$.attributes["drupal_internal__tid"]' + value: '$._source.name[0]' + tid: + value: '$._source.tid[0]' storage_client_id: helfi_news_groups storage_client_config: { } persistent_cache_max_age: 86400 diff --git a/conf/cmi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml b/conf/cmi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml index 40197578..2f99e033 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml @@ -3,24 +3,24 @@ langcode: en status: true dependencies: { } _core: - default_config_hash: tM9Z1SfXjTcoCvjFIESPPl2sya7IyIQ9kZ-zQFFNppU + default_config_hash: 5s8g-adBsUuIIMte5BCEwSFlQjxwFJ_Gq2Do7EEwq2E id: helfi_news_neighbourhoods label: 'Helfi: News neighbourhoods' label_plural: 'Helfi: News neighbourhoods' description: 'Retrieves news neighbourhoods taxonomy terms from Helfi' -read_only: true generate_aliases: null +read_only: true field_mapper_id: jsonpath field_mapper_config: field_mappings: id: - value: $.id + value: '$._source.uuid_langcode[0]' uuid: - value: $.id + value: '$._source.uuid[0]' title: - value: '$.attributes["name"]' - field_frontpage_term_id: - value: '$.attributes["drupal_internal__tid"]' + value: '$._source.name[0]' + tid: + value: '$._source.tid[0]' storage_client_id: helfi_news_neighbourhoods storage_client_config: { } persistent_cache_max_age: 86400 diff --git a/conf/cmi/external_entities.external_entity_type.helfi_news_tags.yml b/conf/cmi/external_entities.external_entity_type.helfi_news_tags.yml index 573d5c52..ee5a23ee 100644 --- a/conf/cmi/external_entities.external_entity_type.helfi_news_tags.yml +++ b/conf/cmi/external_entities.external_entity_type.helfi_news_tags.yml @@ -3,24 +3,24 @@ langcode: en status: true dependencies: { } _core: - default_config_hash: LOL9fkfvgT6MB8SjNXI0WXRQqedWBH2oV7g4gfQjkuc + default_config_hash: vs16WpCdsWseKb-U81zRJbzykB25mE69iOEXv4ZhxCM id: helfi_news_tags label: 'Helfi: News tags' label_plural: 'Helfi: News tags' description: 'Retrieves news tags taxonomy terms from Helfi' -read_only: true generate_aliases: null +read_only: true field_mapper_id: jsonpath field_mapper_config: field_mappings: id: - value: $.id + value: '$._source.uuid_langcode[0]' uuid: - value: $.id + value: '$._source.uuid[0]' title: - value: '$.attributes["name"]' - field_frontpage_term_id: - value: '$.attributes["drupal_internal__tid"]' + value: '$._source.name[0]' + tid: + value: '$._source.tid[0]' storage_client_id: helfi_news_tags storage_client_config: { } persistent_cache_max_age: 86400 diff --git a/conf/cmi/field.field.helfi_news_groups.helfi_news_groups.field_frontpage_term_id.yml b/conf/cmi/field.field.helfi_news_groups.helfi_news_groups.field_frontpage_term_id.yml deleted file mode 100644 index a51e18ab..00000000 --- a/conf/cmi/field.field.helfi_news_groups.helfi_news_groups.field_frontpage_term_id.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: 42a81125-44b7-45d8-b676-46a27a7dbc07 -langcode: en -status: true -dependencies: - config: - - field.storage.helfi_news_groups.field_frontpage_term_id - module: - - external_entities -_core: - default_config_hash: HB3lPK7ZdS9DZrpuk_0u_uxhvGdVwBQufeLISCVeyG4 -id: helfi_news_groups.helfi_news_groups.field_frontpage_term_id -field_name: field_frontpage_term_id -entity_type: helfi_news_groups -bundle: helfi_news_groups -label: 'Frontpage term id' -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/conf/cmi/field.field.helfi_news_neighbourhoods.helfi_news_neighbourhoods.field_frontpage_term_id.yml b/conf/cmi/field.field.helfi_news_neighbourhoods.helfi_news_neighbourhoods.field_frontpage_term_id.yml deleted file mode 100644 index a91a4319..00000000 --- a/conf/cmi/field.field.helfi_news_neighbourhoods.helfi_news_neighbourhoods.field_frontpage_term_id.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: eff4aa71-c0d3-470c-aa37-86ff0b3ef5b7 -langcode: en -status: true -dependencies: - config: - - field.storage.helfi_news_neighbourhoods.field_frontpage_term_id - module: - - external_entities -_core: - default_config_hash: M1Kwl-JPBcmBgWPZoM0n3LL-U4tsgeRVigror_ggJ6k -id: helfi_news_neighbourhoods.helfi_news_neighbourhoods.field_frontpage_term_id -field_name: field_frontpage_term_id -entity_type: helfi_news_neighbourhoods -bundle: helfi_news_neighbourhoods -label: 'Frontpage term id' -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/conf/cmi/field.field.helfi_news_tags.helfi_news_tags.field_frontpage_term_id.yml b/conf/cmi/field.field.helfi_news_tags.helfi_news_tags.field_frontpage_term_id.yml deleted file mode 100644 index 219199f8..00000000 --- a/conf/cmi/field.field.helfi_news_tags.helfi_news_tags.field_frontpage_term_id.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: f6923133-8d94-49ec-a95c-48fadc1391ab -langcode: en -status: true -dependencies: - config: - - field.storage.helfi_news_tags.field_frontpage_term_id - module: - - external_entities -_core: - default_config_hash: yL10FWYxH4QZnzsm1DGdoh0-TQTErUeZukz_M_S1Gz4 -id: helfi_news_tags.helfi_news_tags.field_frontpage_term_id -field_name: field_frontpage_term_id -entity_type: helfi_news_tags -bundle: helfi_news_tags -label: 'Frontpage term id' -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/conf/cmi/field.field.paragraph.news_list.field_helfi_news_groups.yml b/conf/cmi/field.field.paragraph.news_list.field_helfi_news_groups.yml index 44ecdcf7..84d41250 100644 --- a/conf/cmi/field.field.paragraph.news_list.field_helfi_news_groups.yml +++ b/conf/cmi/field.field.paragraph.news_list.field_helfi_news_groups.yml @@ -6,7 +6,7 @@ dependencies: - field.storage.paragraph.field_helfi_news_groups - paragraphs.paragraphs_type.news_list _core: - default_config_hash: nmozVFbkBc-ubKtpWG_OgdeT4yNxsLcsbBYaGDHRnUQ + default_config_hash: r2rQghOD9sgt6njK6kYTkRi6vHRKoshKBhS6eXAj2_0 id: paragraph.news_list.field_helfi_news_groups field_name: field_helfi_news_groups entity_type: paragraph diff --git a/conf/cmi/field.field.paragraph.news_list.field_helfi_news_neighbourhoods.yml b/conf/cmi/field.field.paragraph.news_list.field_helfi_news_neighbourhoods.yml index b7d19477..7b7dea04 100644 --- a/conf/cmi/field.field.paragraph.news_list.field_helfi_news_neighbourhoods.yml +++ b/conf/cmi/field.field.paragraph.news_list.field_helfi_news_neighbourhoods.yml @@ -6,7 +6,7 @@ dependencies: - field.storage.paragraph.field_helfi_news_neighbourhoods - paragraphs.paragraphs_type.news_list _core: - default_config_hash: If5nJKeaunQ7ITUWZ4daCyykb7mslZDLTVrLX7Gd1Qw + default_config_hash: ZyD4oFSt-0k-wITi8xejPiJQM_pMGPGBgtyMkd4yzYI id: paragraph.news_list.field_helfi_news_neighbourhoods field_name: field_helfi_news_neighbourhoods entity_type: paragraph diff --git a/conf/cmi/field.field.paragraph.news_list.field_helfi_news_tags.yml b/conf/cmi/field.field.paragraph.news_list.field_helfi_news_tags.yml index 020596a8..20a5e967 100644 --- a/conf/cmi/field.field.paragraph.news_list.field_helfi_news_tags.yml +++ b/conf/cmi/field.field.paragraph.news_list.field_helfi_news_tags.yml @@ -6,7 +6,7 @@ dependencies: - field.storage.paragraph.field_helfi_news_tags - paragraphs.paragraphs_type.news_list _core: - default_config_hash: imhJdbO9eLYZPslj0VosAANrRZBizg4wyPgIYQ3SOXc + default_config_hash: tfWJCTuuqYCedZj4qD0LfgjK99kSKhDbEuW8ziVcwnM id: paragraph.news_list.field_helfi_news_tags field_name: field_helfi_news_tags entity_type: paragraph diff --git a/conf/cmi/field.field.paragraph.news_list.field_limit.yml b/conf/cmi/field.field.paragraph.news_list.field_limit.yml index 8c61fd38..e583bfaf 100644 --- a/conf/cmi/field.field.paragraph.news_list.field_limit.yml +++ b/conf/cmi/field.field.paragraph.news_list.field_limit.yml @@ -6,7 +6,7 @@ dependencies: - field.storage.paragraph.field_limit - paragraphs.paragraphs_type.news_list _core: - default_config_hash: U69lOLLSGh16cOtXvhZr3E_x2lmlZOfxD0CmQeIMb6U + default_config_hash: 4kAYV9U8y3qkYQKOzN40EOym0oqgr0IqaNJeaLgTwSs id: paragraph.news_list.field_limit field_name: field_limit entity_type: paragraph diff --git a/conf/cmi/field.field.paragraph.news_list.field_news_list_description.yml b/conf/cmi/field.field.paragraph.news_list.field_news_list_description.yml index c4149fc2..1d4a38e1 100644 --- a/conf/cmi/field.field.paragraph.news_list.field_news_list_description.yml +++ b/conf/cmi/field.field.paragraph.news_list.field_news_list_description.yml @@ -13,7 +13,7 @@ third_party_settings: allowed_formats: - minimal _core: - default_config_hash: 7yDWmbqqH_qTaQ4iyJ6QTLaEcqUnL0oVp-t1huDnK_g + default_config_hash: Ba7omOgoQ1RguPjBSpjtpx8YqwE5BXBoNRVs_eQzNRQ id: paragraph.news_list.field_news_list_description field_name: field_news_list_description entity_type: paragraph diff --git a/conf/cmi/field.field.paragraph.news_list.field_news_list_title.yml b/conf/cmi/field.field.paragraph.news_list.field_news_list_title.yml index ed8556f6..d9dc2b5e 100644 --- a/conf/cmi/field.field.paragraph.news_list.field_news_list_title.yml +++ b/conf/cmi/field.field.paragraph.news_list.field_news_list_title.yml @@ -6,7 +6,7 @@ dependencies: - field.storage.paragraph.field_news_list_title - paragraphs.paragraphs_type.news_list _core: - default_config_hash: BVbXiEVCf8X8ZJUYKyiiyevct1RogayM-YXEWiSnuDw + default_config_hash: RDGC7tc3EzJDFQyJSUHpJc8vP__9Q6BJ27icD5o4APY id: paragraph.news_list.field_news_list_title field_name: field_news_list_title entity_type: paragraph diff --git a/conf/cmi/field.storage.helfi_news_groups.field_frontpage_term_id.yml b/conf/cmi/field.storage.helfi_news_groups.field_frontpage_term_id.yml deleted file mode 100644 index c5bc8c1c..00000000 --- a/conf/cmi/field.storage.helfi_news_groups.field_frontpage_term_id.yml +++ /dev/null @@ -1,23 +0,0 @@ -uuid: c62ebe15-2cb6-4553-b00d-3c21a0c1033b -langcode: en -status: true -dependencies: - module: - - external_entities -_core: - default_config_hash: b992_ctKi8x2uXo88S2tFAxA93ZE0BXLdaTCeEictWk -id: helfi_news_groups.field_frontpage_term_id -field_name: field_frontpage_term_id -entity_type: helfi_news_groups -type: string -settings: - max_length: 255 - case_sensitive: false - is_ascii: false -module: core -locked: false -cardinality: 1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/conf/cmi/field.storage.helfi_news_neighbourhoods.field_frontpage_term_id.yml b/conf/cmi/field.storage.helfi_news_neighbourhoods.field_frontpage_term_id.yml deleted file mode 100644 index 1561ccda..00000000 --- a/conf/cmi/field.storage.helfi_news_neighbourhoods.field_frontpage_term_id.yml +++ /dev/null @@ -1,23 +0,0 @@ -uuid: aee9a7c0-c5e1-40eb-a2a6-f89250953161 -langcode: en -status: true -dependencies: - module: - - external_entities -_core: - default_config_hash: X6qvfKybqnwfeHyr_f5PzxdXg9ihP8D-ryRes0_wh7Q -id: helfi_news_neighbourhoods.field_frontpage_term_id -field_name: field_frontpage_term_id -entity_type: helfi_news_neighbourhoods -type: string -settings: - max_length: 255 - case_sensitive: false - is_ascii: false -module: core -locked: false -cardinality: 1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/conf/cmi/field.storage.helfi_news_tags.field_frontpage_term_id.yml b/conf/cmi/field.storage.helfi_news_tags.field_frontpage_term_id.yml deleted file mode 100644 index f8cfad43..00000000 --- a/conf/cmi/field.storage.helfi_news_tags.field_frontpage_term_id.yml +++ /dev/null @@ -1,23 +0,0 @@ -uuid: 636d25cf-d069-4660-bce2-10059bb6c5fe -langcode: en -status: true -dependencies: - module: - - external_entities -_core: - default_config_hash: PkhrfcRaL2lqTDnoXDNoge-nlPEfXT6WGBZyKIFahqs -id: helfi_news_tags.field_frontpage_term_id -field_name: field_frontpage_term_id -entity_type: helfi_news_tags -type: string -settings: - max_length: 255 - case_sensitive: false - is_ascii: false -module: core -locked: false -cardinality: 1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/conf/cmi/field.storage.paragraph.field_helfi_news_groups.yml b/conf/cmi/field.storage.paragraph.field_helfi_news_groups.yml index e1663f98..60781dff 100644 --- a/conf/cmi/field.storage.paragraph.field_helfi_news_groups.yml +++ b/conf/cmi/field.storage.paragraph.field_helfi_news_groups.yml @@ -6,7 +6,7 @@ dependencies: - external_entities - paragraphs _core: - default_config_hash: _fM_KH15dd3VWM1oQkpfJUipPHD3pK-CiqLPcuj5ssQ + default_config_hash: wq65JaPUw7t2ky47ukc-A2jTYVFxzQYWTyIMKvVWqy4 id: paragraph.field_helfi_news_groups field_name: field_helfi_news_groups entity_type: paragraph diff --git a/conf/cmi/field.storage.paragraph.field_helfi_news_neighbourhoods.yml b/conf/cmi/field.storage.paragraph.field_helfi_news_neighbourhoods.yml index ece20346..a5371ace 100644 --- a/conf/cmi/field.storage.paragraph.field_helfi_news_neighbourhoods.yml +++ b/conf/cmi/field.storage.paragraph.field_helfi_news_neighbourhoods.yml @@ -6,7 +6,7 @@ dependencies: - external_entities - paragraphs _core: - default_config_hash: VVgm-VdlvDCYm-mIewtHi0RZp_7pCoE94esxuAat4CE + default_config_hash: hy1Tpmlf5WcTYBFp3oNoXSb5W-PJnpZGdxFL3PBi_b8 id: paragraph.field_helfi_news_neighbourhoods field_name: field_helfi_news_neighbourhoods entity_type: paragraph diff --git a/conf/cmi/field.storage.paragraph.field_helfi_news_tags.yml b/conf/cmi/field.storage.paragraph.field_helfi_news_tags.yml index da56a0a5..ef592546 100644 --- a/conf/cmi/field.storage.paragraph.field_helfi_news_tags.yml +++ b/conf/cmi/field.storage.paragraph.field_helfi_news_tags.yml @@ -6,7 +6,7 @@ dependencies: - external_entities - paragraphs _core: - default_config_hash: nWHDiteOOAcjVLeo90MtcJBVL0ABYuABPztRIvhiv_0 + default_config_hash: V9NNGo5t1lmcXJDwJC4J7KKMQ_xFClm35zZNiIcgjDg id: paragraph.field_helfi_news_tags field_name: field_helfi_news_tags entity_type: paragraph diff --git a/conf/cmi/field.storage.paragraph.field_limit.yml b/conf/cmi/field.storage.paragraph.field_limit.yml index fa4c1ec2..a22e8bc0 100644 --- a/conf/cmi/field.storage.paragraph.field_limit.yml +++ b/conf/cmi/field.storage.paragraph.field_limit.yml @@ -5,7 +5,7 @@ dependencies: module: - paragraphs _core: - default_config_hash: BN27jqBir0CqxJ0z1RtYc8WNNohSkDdtzv_9l-HRKhk + default_config_hash: UY9Qakkj3TBaF4CVQe9dOaOcUHeggIBAwDWE1nNRROk id: paragraph.field_limit field_name: field_limit entity_type: paragraph diff --git a/conf/cmi/field.storage.paragraph.field_news_list_description.yml b/conf/cmi/field.storage.paragraph.field_news_list_description.yml index 1fb411d3..c7afee77 100644 --- a/conf/cmi/field.storage.paragraph.field_news_list_description.yml +++ b/conf/cmi/field.storage.paragraph.field_news_list_description.yml @@ -6,7 +6,7 @@ dependencies: - paragraphs - text _core: - default_config_hash: V_erLPi4c9bT-uhAlgcpJJX8LbR02Btsi8yzMVAIpo4 + default_config_hash: BA64kRk5MQLN_q3GY18R5uWkGRpH6NUZuEBGh4WfWdc id: paragraph.field_news_list_description field_name: field_news_list_description entity_type: paragraph diff --git a/conf/cmi/field.storage.paragraph.field_news_list_title.yml b/conf/cmi/field.storage.paragraph.field_news_list_title.yml index 60321231..99faaa12 100644 --- a/conf/cmi/field.storage.paragraph.field_news_list_title.yml +++ b/conf/cmi/field.storage.paragraph.field_news_list_title.yml @@ -5,7 +5,7 @@ dependencies: module: - paragraphs _core: - default_config_hash: xapLq-jZodnhyWktgf76RTu9dEBAgWBq-ay41DJpsXQ + default_config_hash: 9nFZzI_rcVVomJTSrdrbAkvTkwFwTcwMjUpMP0fafMo id: paragraph.field_news_list_title field_name: field_news_list_title entity_type: paragraph diff --git a/conf/cmi/language/fi/block.block.claro_help.yml b/conf/cmi/language/fi/block.block.claro_help.yml new file mode 100644 index 00000000..3eee39c5 --- /dev/null +++ b/conf/cmi/language/fi/block.block.claro_help.yml @@ -0,0 +1,2 @@ +settings: + label: Ohje diff --git a/conf/cmi/language/fi/block.block.gin_help.yml b/conf/cmi/language/fi/block.block.gin_help.yml new file mode 100644 index 00000000..3eee39c5 --- /dev/null +++ b/conf/cmi/language/fi/block.block.gin_help.yml @@ -0,0 +1,2 @@ +settings: + label: Ohje diff --git a/conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_groups.yml b/conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_groups.yml new file mode 100644 index 00000000..c804c15e --- /dev/null +++ b/conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_groups.yml @@ -0,0 +1,2 @@ +label: 'Uutisten kohderyhmät' +label_plural: 'Uutisten kohderyhmät' diff --git a/conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml b/conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml new file mode 100644 index 00000000..13ece827 --- /dev/null +++ b/conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_neighbourhoods.yml @@ -0,0 +1,2 @@ +label: 'Uutisten kaupunginosat' +label_plural: 'Uutisten kaupunginosat' diff --git a/conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_tags.yml b/conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_tags.yml new file mode 100644 index 00000000..3a0e5707 --- /dev/null +++ b/conf/cmi/language/fi/external_entities.external_entity_type.helfi_news_tags.yml @@ -0,0 +1,2 @@ +label: 'Uutisten tagit' +label_plural: 'Uutisten tagit' diff --git a/conf/cmi/language/sv/block.block.claro_help.yml b/conf/cmi/language/sv/block.block.claro_help.yml new file mode 100644 index 00000000..ac934b00 --- /dev/null +++ b/conf/cmi/language/sv/block.block.claro_help.yml @@ -0,0 +1,2 @@ +settings: + label: Hjälp diff --git a/conf/cmi/language/sv/block.block.gin_help.yml b/conf/cmi/language/sv/block.block.gin_help.yml new file mode 100644 index 00000000..ac934b00 --- /dev/null +++ b/conf/cmi/language/sv/block.block.gin_help.yml @@ -0,0 +1,2 @@ +settings: + label: Hjälp diff --git a/conf/cmi/paragraphs.paragraphs_type.news_list.yml b/conf/cmi/paragraphs.paragraphs_type.news_list.yml index 50779f43..715a5ffe 100644 --- a/conf/cmi/paragraphs.paragraphs_type.news_list.yml +++ b/conf/cmi/paragraphs.paragraphs_type.news_list.yml @@ -3,7 +3,7 @@ langcode: en status: true dependencies: { } _core: - default_config_hash: 4NG1c_DFfBfzUCPfnwS5Sneo_G7lU_0YRfarh-p749M + default_config_hash: GqSJkJJNFYj7_Yrzletng06pW-sS9r0nS5BeDi8Q69w id: news_list label: 'News list' icon_uuid: null diff --git a/docker/elastic-proxy/elastic.conf b/docker/elastic-proxy/elastic.conf new file mode 100644 index 00000000..89203d0c --- /dev/null +++ b/docker/elastic-proxy/elastic.conf @@ -0,0 +1,26 @@ +server { + listen 8080 default_server; + server_name _; + client_max_body_size 50m; + + location /ping { + add_header Content-Type application/json; + return 200 '{"status":"success","result":"Proxy alive"}'; + } + + location ~ ^/([a-z][a-z_-]*)/(_search|_msearch)$ { + limit_except GET POST { + deny all; + } + proxy_pass ${ELASTICSEARCH_URL}; + proxy_redirect off; + proxy_set_header Authorization $elastic_authorization; + proxy_pass_header Authorization; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + proxy_pass_header Access-Control-Allow-Origin; + proxy_pass_header Access-Control-Allow-Methods; + proxy_hide_header Access-Control-Allow-Headers; + } +} diff --git a/docker/elastic-proxy/nginx.conf b/docker/elastic-proxy/nginx.conf new file mode 100644 index 00000000..b3eb4c1d --- /dev/null +++ b/docker/elastic-proxy/nginx.conf @@ -0,0 +1,60 @@ +worker_processes auto; + +error_log /var/log/nginx/error.log notice; +pid /tmp/nginx.pid; + +env ELASTICSEARCH_URL; +env ELASTIC_PASSWORD; +env ELASTIC_USER; + +load_module modules/ngx_http_perl_module.so; + +events { + worker_connections 1024; +} + +http { + proxy_temp_path /tmp/proxy_temp; + client_body_temp_path /tmp/client_temp; + fastcgi_temp_path /tmp/fastcgi_temp; + uwsgi_temp_path /tmp/uwsgi_temp; + scgi_temp_path /tmp/scgi_temp; + + include /etc/nginx/mime.types; + default_type application/octet-stream; + perl_set $elastic_authorization ' + sub { + use MIME::Base64; + if (exists($ENV{"ELASTIC_USER"}) && exists($ENV{"ELASTIC_PASSWORD"})) { + return encode_base64($ENV{"ELASTIC_USER"} . ":" . $ENV{"ELASTIC_PASSWORD"}); + } + return ""; + } + '; + + # Log in JSON Format + log_format nginxlog_json escape=json '{ "timestamp": "$time_iso8601", ' + '"remote_addr": "$remote_addr", ' + '"body_bytes_sent": $body_bytes_sent, ' + '"request_time": $request_time, ' + '"response_status": $status, ' + '"request": "$request", ' + '"request_method": "$request_method", ' + '"host": "$host",' + '"upstream_addr": "$upstream_addr",' + '"http_x_forwarded_for": "$http_x_forwarded_for",' + '"http_referrer": "$http_referer", ' + '"http_user_agent": "$http_user_agent", ' + '"http_version": "$server_protocol", ' + '"nginx_access": true }'; + access_log /dev/stdout nginxlog_json; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + #gzip on; + + include /etc/nginx/conf.d/*.conf; +} diff --git a/docker/openshift/entrypoints/20-deploy.sh b/docker/openshift/entrypoints/20-deploy.sh index 6a098241..4c02d6f1 100644 --- a/docker/openshift/entrypoints/20-deploy.sh +++ b/docker/openshift/entrypoints/20-deploy.sh @@ -1,5 +1,11 @@ #!/bin/bash +# Skip deployment script if ENV var is true +if [ "$SKIP_DEPLOY_SCRIPTS" = "true" ]; then + echo "SKIP_DEPLOY_SCRIPTS is true. Skipping the steps." + return +fi + source /init.sh function rollback_deployment { @@ -36,10 +42,9 @@ if [ "$CURRENT_DEPLOY_ID" != "$OPENSHIFT_BUILD_NAME" ]; then # @see https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/blob/main/documentation/deploy-hooks.md drush helfi:pre-deploy || true # Run maintenance tasks (config import, database updates etc) - drush deploy - + OUTPUT=$(sh -c '(drush deploy); exit $?' 2>&1) if [ $? -ne 0 ]; then - rollback_deployment "drush deploy failed with {$?} exit code. See logs for more information." $CURRENT_DEPLOY_ID + rollback_deployment "drush deploy failed with {$?} exit code. ${OUTPUT}" $CURRENT_DEPLOY_ID exit 1 fi # Run post-deploy tasks.