From 16e1f127959fbf027f607f60bf7f3d6d61547b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Risto-Pekka=20Nyka=CC=88nen?= Date: Wed, 19 Oct 2022 09:27:36 +0300 Subject: [PATCH 1/4] UHF-6955: added chat to new pages --- conf/cmi/block.block.chatleijuke.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/cmi/block.block.chatleijuke.yml b/conf/cmi/block.block.chatleijuke.yml index 6ecb08e8..a8335af0 100644 --- a/conf/cmi/block.block.chatleijuke.yml +++ b/conf/cmi/block.block.chatleijuke.yml @@ -24,4 +24,4 @@ visibility: request_path: id: request_path negate: false - pages: "/neuvonta-ja-tuki/helsinki-info\r\n/informationstjanster-och-stod/helsingfors-info\r\n/advisory-and-support-services/helsinki-info\r\n/neuvonta-ja-tuki/helsinki-info/*\r\n/informationstjanster-och-stod/helsingfors-info/*\r\n/advisory-and-support-services/helsinki-info/*\r\n/ota-yhteytta/helsinki-info\r\n/ta-kontakt/helsingfors-info\r\n/contact-us/helsinki-info" + pages: "/neuvonta-ja-tuki/helsinki-info\r\n/informationstjanster-och-stod/helsingfors-info\r\n/advisory-and-support-services/helsinki-info\r\n/neuvonta-ja-tuki/helsinki-info/*\r\n/informationstjanster-och-stod/helsingfors-info/*\r\n/advisory-and-support-services/helsinki-info/*\r\n/ota-yhteytta/helsinki-info\r\n/ta-kontakt/helsingfors-info\r\n/contact-us/helsinki-info\r\n/ota-yhteytta-helsingin-kaupunkiin\r\n/kontakta-helsingfors-stad\r\n/contact-the-city-of-helsinki" From 62f8f835003ba0401520ffeed4569212822f0c8f Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Thu, 20 Oct 2022 18:38:32 +0300 Subject: [PATCH 2/4] UHF-7046: Added xl-breakpoint for diagonal hero --- .../cmi/responsive_image.styles.hero__diagonal.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/conf/cmi/responsive_image.styles.hero__diagonal.yml b/conf/cmi/responsive_image.styles.hero__diagonal.yml index 7dced4e7..49b2bbf8 100644 --- a/conf/cmi/responsive_image.styles.hero__diagonal.yml +++ b/conf/cmi/responsive_image.styles.hero__diagonal.yml @@ -9,15 +9,29 @@ dependencies: - image.style.23_10_m_2x - image.style.23_10_s - image.style.23_10_s_2x + - image.style.23_10_xl + - image.style.23_10_xl_2x - image.style.23_10_xs - image.style.23_10_xs_2x - image.style.23_10_xxs - image.style.23_10_xxs_2x + theme: + - hdbt _core: default_config_hash: sqxPwEOHDHbmSWO75WNVWlTSQ5yyV_PYHC7vxrA5LoQ id: hero__diagonal label: 'Hero Diagonal' image_style_mappings: + - + image_mapping_type: image_style + image_mapping: 23_10_xl + breakpoint_id: hdbt.xl + multiplier: 1x + - + image_mapping_type: image_style + image_mapping: 23_10_xl_2x + breakpoint_id: hdbt.xl + multiplier: 2x - image_mapping_type: image_style image_mapping: 23_10_l From 6b064f89d5d04e071399d6685374de3581af5c0f Mon Sep 17 00:00:00 2001 From: tuutti Date: Fri, 21 Oct 2022 10:44:12 +0300 Subject: [PATCH 3/4] UHF-7222: Updated platform --- .github/workflows/test.yml | 12 ++++++++---- .github/workflows/update-config.yml | 3 +-- docker-compose.yml | 4 ++-- docker/openshift/Dockerfile | 2 +- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02536944..6b0cc4e1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,19 +30,23 @@ jobs: - name: Build project run: composer install + - name: Check that subtheme is not built with dev mode + run: if grep -q 'sourceMappingURL=' -R public/themes/custom/hdbt_subtheme/dist/css; then exit 1; fi + - name: Run PHPCS run: | vendor/bin/phpcs public/modules/custom/ --ignore="*.js,*.css" --extensions=php,module,install --standard=Drupal vendor/bin/phpcs public/themes/custom/ --ignore="*.js,*.css" --extensions=php,theme --standard=Drupal - + - name: Download latest dump env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - gh run download -n latest.sql + run: gh run download -n latest.sql - name: Install Drupal - run: mysql --user=drupal --password=drupal --database=drupal --host=db --port=3306 -A < latest.sql + run: | + mysql --user=drupal --password=drupal --database=drupal --host=db --port=3306 -A < latest.sql + drush cr && drush cim -y - name: Start services run: | diff --git a/.github/workflows/update-config.yml b/.github/workflows/update-config.yml index 9ebd4e35..2c595707 100644 --- a/.github/workflows/update-config.yml +++ b/.github/workflows/update-config.yml @@ -41,8 +41,7 @@ jobs: $(drush sql:connect) < latest.sql drush cr && drush cim -y composer update drupal/helfi_* drupal/hdbt* -W - drush updb -y - drush cex -y + drush cr && drush updb -y && drush cex -y # Update platform drush helfi:tools:update-platform diff --git a/docker-compose.yml b/docker-compose.yml index 356901ec..7a87b798 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -45,12 +45,12 @@ services: - "traefik.docker.network=stonehenge-network" redis: container_name: "${COMPOSE_PROJECT_NAME}-redis" - image: redis:6-alpine + image: redis:7-alpine networks: - internal db: container_name: "${COMPOSE_PROJECT_NAME}-db" - image: druidfi/mariadb:10.6-drupal + image: druidfi/mariadb:10.7-drupal volumes: - db_data:/var/lib/mysql ports: diff --git a/docker/openshift/Dockerfile b/docker/openshift/Dockerfile index 6e9980b5..16e12dea 100644 --- a/docker/openshift/Dockerfile +++ b/docker/openshift/Dockerfile @@ -1,4 +1,4 @@ -ARG DRUPAL_DOCKER_TAG=8.0 +ARG DRUPAL_DOCKER_TAG=8.1 FROM ghcr.io/city-of-helsinki/drupal-docker-base:${DRUPAL_DOCKER_TAG} COPY / /var/www/html/ From a8b3c44a807a93d603b04f56033de87f12a21653 Mon Sep 17 00:00:00 2001 From: actions-bot Date: Tue, 25 Oct 2022 06:07:12 +0000 Subject: [PATCH 4/4] Update configuration --- composer.lock | 162 +++++++++++----------- conf/cmi/imagecache_external.settings.yml | 5 +- 2 files changed, 88 insertions(+), 79 deletions(-) diff --git a/composer.lock b/composer.lock index 075a2b27..f25e6efb 100644 --- a/composer.lock +++ b/composer.lock @@ -3920,6 +3920,10 @@ "name": "Alexander Ross (bleen)", "homepage": "https://www.drupal.org/u/bleen", "role": "Maintainer" + }, + { + "name": "Rajeshreeputra", + "homepage": "https://www.drupal.org/user/3418561" } ], "description": "Focal Point allows content creators to mark the most important part of an image for easier cropping.", @@ -4053,16 +4057,16 @@ }, { "name": "drupal/hdbt", - "version": "4.1.5", + "version": "4.1.8", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-hdbt.git", - "reference": "50e66c665970f0998aa3b10cdbca3fd072f68443" + "reference": "adf4d958ec7234a5aa5a8f02583d5992b8d8ee26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt/zipball/50e66c665970f0998aa3b10cdbca3fd072f68443", - "reference": "50e66c665970f0998aa3b10cdbca3fd072f68443", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-hdbt/zipball/adf4d958ec7234a5aa5a8f02583d5992b8d8ee26", + "reference": "adf4d958ec7234a5aa5a8f02583d5992b8d8ee26", "shasum": "" }, "require": { @@ -4077,10 +4081,10 @@ "Drupal" ], "support": { - "source": "https://github.com/City-of-Helsinki/drupal-hdbt/tree/4.1.5", + "source": "https://github.com/City-of-Helsinki/drupal-hdbt/tree/4.1.8", "issues": "https://github.com/City-of-Helsinki/drupal-hdbt/issues" }, - "time": "2022-10-17T09:27:18+00:00" + "time": "2022-10-21T13:32:01+00:00" }, { "name": "drupal/hdbt_admin", @@ -4149,16 +4153,16 @@ }, { "name": "drupal/helfi_api_base", - "version": "2.3.2", + "version": "2.3.3", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-module-helfi-api-base.git", - "reference": "43048a8a41a3e28cd3f8de6c6282a84bbbe09fab" + "reference": "403c56e5dc436ba0c404c240546e59de944eae2e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-api-base/zipball/43048a8a41a3e28cd3f8de6c6282a84bbbe09fab", - "reference": "43048a8a41a3e28cd3f8de6c6282a84bbbe09fab", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-api-base/zipball/403c56e5dc436ba0c404c240546e59de944eae2e", + "reference": "403c56e5dc436ba0c404c240546e59de944eae2e", "shasum": "" }, "require": { @@ -4181,10 +4185,10 @@ ], "description": "Helfi - API Base", "support": { - "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/tree/2.3.2", + "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/tree/2.3.3", "issues": "https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/issues" }, - "time": "2022-10-14T09:42:58+00:00" + "time": "2022-10-24T06:09:19+00:00" }, { "name": "drupal/helfi_azure_fs", @@ -4381,16 +4385,16 @@ }, { "name": "drupal/helfi_platform_config", - "version": "2.13.5", + "version": "2.13.6", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config.git", - "reference": "567af1eab1c3ebf0012a7ad2c308a08dfe7a87ba" + "reference": "c8496487f8595dec1921d1e87b65650873fb7755" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/567af1eab1c3ebf0012a7ad2c308a08dfe7a87ba", - "reference": "567af1eab1c3ebf0012a7ad2c308a08dfe7a87ba", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/c8496487f8595dec1921d1e87b65650873fb7755", + "reference": "c8496487f8595dec1921d1e87b65650873fb7755", "shasum": "" }, "require": { @@ -4500,23 +4504,23 @@ ], "description": "HELfi platform config", "support": { - "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/2.13.5", + "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/2.13.6", "issues": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/issues" }, - "time": "2022-10-14T11:00:01+00:00" + "time": "2022-10-19T07:23:46+00:00" }, { "name": "drupal/helfi_proxy", - "version": "2.2.7", + "version": "2.2.8", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-module-helfi-proxy.git", - "reference": "be69a56c6f4019110d3c0c68d9475827286fa6ab" + "reference": "e75e953316a551a2075ddb7edad8b09128b19723" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-proxy/zipball/be69a56c6f4019110d3c0c68d9475827286fa6ab", - "reference": "be69a56c6f4019110d3c0c68d9475827286fa6ab", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-proxy/zipball/e75e953316a551a2075ddb7edad8b09128b19723", + "reference": "e75e953316a551a2075ddb7edad8b09128b19723", "shasum": "" }, "require": { @@ -4539,10 +4543,10 @@ ], "description": "Provides various fixes so we can serve multiple Drupal instances in one domain.", "support": { - "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-proxy/tree/2.2.7", + "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-proxy/tree/2.2.8", "issues": "https://github.com/City-of-Helsinki/drupal-module-helfi-proxy/issues" }, - "time": "2022-09-28T05:57:53+00:00" + "time": "2022-10-25T06:04:50+00:00" }, { "name": "drupal/helfi_tpr", @@ -4667,26 +4671,26 @@ }, { "name": "drupal/imagecache_external", - "version": "3.0.0", + "version": "3.0.1", "source": { "type": "git", "url": "https://git.drupalcode.org/project/imagecache_external.git", - "reference": "3.0.0" + "reference": "3.0.1" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/imagecache_external-3.0.0.zip", - "reference": "3.0.0", - "shasum": "8975bf8229dcfae47600502b872b01861eee1440" + "url": "https://ftp.drupal.org/files/projects/imagecache_external-3.0.1.zip", + "reference": "3.0.1", + "shasum": "f36e080a5059d760f4c47ad21ac9391f1b1ea6b3" }, "require": { - "drupal/core": "^8 || ^9" + "drupal/core": "^9.3 || ^10" }, "type": "drupal-module", "extra": { "drupal": { - "version": "3.0.0", - "datestamp": "1605799095", + "version": "3.0.1", + "datestamp": "1665918248", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -4705,6 +4709,10 @@ { "name": "larowlan", "homepage": "https://www.drupal.org/user/395439" + }, + { + "name": "swentel", + "homepage": "https://www.drupal.org/user/107403" } ], "description": "Allows you to fetch external images and use image styles on them.", @@ -6027,17 +6035,17 @@ }, { "name": "drupal/search_api", - "version": "1.26.0", + "version": "1.27.0", "source": { "type": "git", "url": "https://git.drupalcode.org/project/search_api.git", - "reference": "8.x-1.26" + "reference": "8.x-1.27" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/search_api-8.x-1.26.zip", - "reference": "8.x-1.26", - "shasum": "a37f4ac23f7f0517df85fd450b4a9a50333ae93d" + "url": "https://ftp.drupal.org/files/projects/search_api-8.x-1.27.zip", + "reference": "8.x-1.27", + "shasum": "b8c9a055fe43435c09231fd93d3e07c5d2863a46" }, "require": { "drupal/core": "^9.3 || ^10.0" @@ -6058,8 +6066,8 @@ "type": "drupal-module", "extra": { "drupal": { - "version": "8.x-1.26", - "datestamp": "1664975343", + "version": "8.x-1.27", + "datestamp": "1666211720", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -6846,20 +6854,20 @@ }, { "name": "drupal/views_bulk_edit", - "version": "2.7.0", + "version": "2.8.0", "source": { "type": "git", "url": "https://git.drupalcode.org/project/views_bulk_edit.git", - "reference": "8.x-2.7" + "reference": "8.x-2.8" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/views_bulk_edit-8.x-2.7.zip", - "reference": "8.x-2.7", - "shasum": "148457820e7ecd78942326c9c799147ed440f2a6" + "url": "https://ftp.drupal.org/files/projects/views_bulk_edit-8.x-2.8.zip", + "reference": "8.x-2.8", + "shasum": "8600f5688d21d5d98e56b5f8c154997f6cb190c1" }, "require": { - "drupal/core": "^8 || ^9" + "drupal/core": "^9.1 || ^10" }, "require-dev": { "drupal/views_bulk_operations": "~3.0" @@ -6870,8 +6878,8 @@ "type": "drupal-module", "extra": { "drupal": { - "version": "8.x-2.7", - "datestamp": "1664355764", + "version": "8.x-2.8", + "datestamp": "1666257164", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -6901,20 +6909,21 @@ }, { "name": "drupal/views_bulk_operations", - "version": "4.2.0", + "version": "4.2.1", "source": { "type": "git", "url": "https://git.drupalcode.org/project/views_bulk_operations.git", - "reference": "4.2.0" + "reference": "4.2.1" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/views_bulk_operations-4.2.0.zip", - "reference": "4.2.0", - "shasum": "b18fd9a43c47ffaf20f5f888871ff801b6f9f99f" + "url": "https://ftp.drupal.org/files/projects/views_bulk_operations-4.2.1.zip", + "reference": "4.2.1", + "shasum": "3bce967e24c0ce19fc7e0de031594729e22c38ef" }, "require": { - "drupal/core": "^9.4 || ^10" + "drupal/core": "^9.4 || ^10", + "php": ">=7.4.0" }, "require-dev": { "drush/drush": "^11" @@ -6925,8 +6934,8 @@ "type": "drupal-module", "extra": { "drupal": { - "version": "4.2.0", - "datestamp": "1664360435", + "version": "4.2.1", + "datestamp": "1666185226", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -6951,17 +6960,9 @@ "name": "Graber", "homepage": "https://www.drupal.org/user/1599440" }, - { - "name": "infojunkie", - "homepage": "https://www.drupal.org/user/48424" - }, { "name": "joelpittet", "homepage": "https://www.drupal.org/user/160302" - }, - { - "name": "Jon Pugh", - "homepage": "https://www.drupal.org/user/17028" } ], "description": "Adds an ability to perform bulk operations on selected entities from view results. Provides an API to create such operations.", @@ -7372,23 +7373,23 @@ }, { "name": "ezimuel/guzzlestreams", - "version": "3.0.1", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/ezimuel/guzzlestreams.git", - "reference": "abe3791d231167f14eb80d413420d1eab91163a8" + "reference": "b4b5a025dfee70d6cd34c780e07330eb93d5b997" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ezimuel/guzzlestreams/zipball/abe3791d231167f14eb80d413420d1eab91163a8", - "reference": "abe3791d231167f14eb80d413420d1eab91163a8", + "url": "https://api.github.com/repos/ezimuel/guzzlestreams/zipball/b4b5a025dfee70d6cd34c780e07330eb93d5b997", + "reference": "b4b5a025dfee70d6cd34c780e07330eb93d5b997", "shasum": "" }, "require": { "php": ">=5.4.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "~9.0" }, "type": "library", "extra": { @@ -7419,9 +7420,9 @@ "stream" ], "support": { - "source": "https://github.com/ezimuel/guzzlestreams/tree/3.0.1" + "source": "https://github.com/ezimuel/guzzlestreams/tree/3.1.0" }, - "time": "2020-02-14T23:11:50+00:00" + "time": "2022-10-24T12:58:50+00:00" }, { "name": "ezimuel/ringphp", @@ -15340,25 +15341,30 @@ }, { "name": "phpdocumentor/type-resolver", - "version": "1.6.1", + "version": "1.6.2", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "77a32518733312af16a44300404e945338981de3" + "reference": "48f445a408c131e38cab1c235aa6d2bb7a0bb20d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", - "reference": "77a32518733312af16a44300404e945338981de3", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/48f445a408c131e38cab1c235aa6d2bb7a0bb20d", + "reference": "48f445a408c131e38cab1c235aa6d2bb7a0bb20d", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", + "php": "^7.4 || ^8.0", "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { "ext-tokenizer": "*", - "psalm/phar": "^4.8" + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^9.5", + "rector/rector": "^0.13.9", + "vimeo/psalm": "^4.25" }, "type": "library", "extra": { @@ -15384,9 +15390,9 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.2" }, - "time": "2022-03-15T21:29:03+00:00" + "time": "2022-10-14T12:47:21+00:00" }, { "name": "phpspec/prophecy", diff --git a/conf/cmi/imagecache_external.settings.yml b/conf/cmi/imagecache_external.settings.yml index fc7282d8..f2a4dff7 100644 --- a/conf/cmi/imagecache_external.settings.yml +++ b/conf/cmi/imagecache_external.settings.yml @@ -6,7 +6,7 @@ imagecache_external_batch_flush_limit: 1000 imagecache_external_hosts: '' imagecache_external_management: unmanaged imagecache_external_use_whitelist: 1 -imagecache_fallback_image: '' +imagecache_fallback_image: 0 imagecache_external_allowed_mimetypes: - image/jpg - image/jpg;charset=utf-8 @@ -19,4 +19,7 @@ imagecache_external_allowed_mimetypes: - application/octet-stream - application/octet-stream;charset=utf-8 - binary/octet-stream + - image/webp + - image/webp;charset=utf-8 imagecache_external_cron_flush_frequency: 0 +imagecache_subdirectories: false