From 46dea34a89e596940880fd7b9626f6ff8a5e4da5 Mon Sep 17 00:00:00 2001 From: hel-platta-automation <95360595+hel-platta-automation@users.noreply.github.com> Date: Fri, 25 Oct 2024 08:25:36 +0300 Subject: [PATCH 1/3] Update configuration (#1523) --- composer.lock | 131 +++++++++--------- ...xternal_entity_type.linkedevents_event.yml | 2 +- conf/cmi/raven.settings.yml | 16 +-- conf/cmi/user.role.ad_user.yml | 2 + conf/cmi/user.role.admin.yml | 2 + conf/cmi/user.role.anonymous.yml | 1 + conf/cmi/user.role.authenticated.yml | 1 + conf/cmi/user.role.content_producer.yml | 2 + .../user.role.content_producer_industry.yml | 2 + conf/cmi/user.role.editor.yml | 2 + conf/cmi/user.role.grants_admin.yml | 2 + conf/cmi/user.role.grants_producer.yml | 15 ++ .../user.role.grants_producer_industry.yml | 2 + conf/cmi/user.role.helsinkiprofiili.yml | 2 + conf/cmi/user.role.json_api_user.yml | 2 + conf/cmi/user.role.performance_test_user.yml | 2 + conf/cmi/user.role.read_only.yml | 2 + conf/cmi/user.role.survey_editor.yml | 2 + docker/openshift/crons/pubsub.sh | 15 +- 19 files changed, 126 insertions(+), 79 deletions(-) diff --git a/composer.lock b/composer.lock index 683b38a715..281512f68c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "1d3ab16ba09ab7e754afd7b71ae122b5", + "content-hash": "651e43dad6d2c4dc496a5ce9c851467f", "packages": [ { "name": "asm89/stack-cors", @@ -5404,6 +5404,10 @@ "name": "Sascha Eggenberger (saschaeggi)", "homepage": "https://www.drupal.org/u/saschaeggi", "role": "Maintainer" + }, + { + "name": "saschaeggi", + "homepage": "https://www.drupal.org/user/1999056" } ], "description": "Gin Toolbar for Frontend use", @@ -5714,16 +5718,16 @@ }, { "name": "drupal/helfi_azure_fs", - "version": "2.0.7", + "version": "2.0.8", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-module-helfi-azure-fs.git", - "reference": "f35b0a703e2da09374c4ca137dd6519274db552a" + "reference": "c1ce8909d3ab797bd75e391ed6d80c06b82799c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-azure-fs/zipball/f35b0a703e2da09374c4ca137dd6519274db552a", - "reference": "f35b0a703e2da09374c4ca137dd6519274db552a", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-azure-fs/zipball/c1ce8909d3ab797bd75e391ed6d80c06b82799c9", + "reference": "c1ce8909d3ab797bd75e391ed6d80c06b82799c9", "shasum": "" }, "require": { @@ -5740,9 +5744,6 @@ "type": "drupal-module", "extra": { "patches": { - "drupal/core": { - "UHF-10533 D10.3 images": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-module-helfi-azure-fs/f933226cdd9b046d76757d4f885d3d3567365264/patches/UHF-10533-d10-images.patch" - }, "twistor/flysystem-stream-wrapper": { "PHP 8.2 support (https://www.drupal.org/project/flysystem/issues/3387094)": "https://raw.githubusercontent.com/City-of-Helsinki/drupal-module-helfi-azure-fs/ddb222622b92d1c2b7db975a84167a00579a1ad0/patches/3387094-add-context-property-to-stream-wrapper.patch" }, @@ -5756,10 +5757,10 @@ ], "description": "Helfi - Azure FS", "support": { - "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-azure-fs/tree/2.0.7", + "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-azure-fs/tree/2.0.8", "issues": "https://github.com/City-of-Helsinki/drupal-module-helfi-azure-fs/issues" }, - "time": "2024-10-11T07:42:06+00:00" + "time": "2024-10-23T12:15:22+00:00" }, { "name": "drupal/helfi_drupal_tools", @@ -5767,12 +5768,12 @@ "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-tools.git", - "reference": "82d8131850bb17d30ac8f72eec0bd5568e4b3640" + "reference": "53ad81c4249c6dd38deea3f6014ad0b1be47f2db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-tools/zipball/82d8131850bb17d30ac8f72eec0bd5568e4b3640", - "reference": "82d8131850bb17d30ac8f72eec0bd5568e4b3640", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-tools/zipball/53ad81c4249c6dd38deea3f6014ad0b1be47f2db", + "reference": "53ad81c4249c6dd38deea3f6014ad0b1be47f2db", "shasum": "" }, "require": { @@ -5844,7 +5845,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-23T08:02:58+00:00" + "time": "2024-10-23T10:28:01+00:00" }, { "name": "drupal/helfi_formtool_embed", @@ -5950,16 +5951,16 @@ }, { "name": "drupal/helfi_platform_config", - "version": "4.6.19", + "version": "4.6.20", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config.git", - "reference": "c17835fd4b1629ab55852a857320d6bd102b963d" + "reference": "f5451a53f0e83dcf1fc811c9ced0687f43cd4b7f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/c17835fd4b1629ab55852a857320d6bd102b963d", - "reference": "c17835fd4b1629ab55852a857320d6bd102b963d", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-helfi-platform-config/zipball/f5451a53f0e83dcf1fc811c9ced0687f43cd4b7f", + "reference": "f5451a53f0e83dcf1fc811c9ced0687f43cd4b7f", "shasum": "" }, "require": { @@ -6078,23 +6079,23 @@ ], "description": "HELfi platform config", "support": { - "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/4.6.19", + "source": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/tree/4.6.20", "issues": "https://github.com/City-of-Helsinki/drupal-helfi-platform-config/issues" }, - "time": "2024-10-22T08:56:56+00:00" + "time": "2024-10-24T12:01:48+00:00" }, { "name": "drupal/helfi_proxy", - "version": "3.3.0", + "version": "3.3.1", "source": { "type": "git", "url": "https://github.com/City-of-Helsinki/drupal-module-helfi-proxy.git", - "reference": "efdf8d46f8b0f0114ab079f61661d1909b2a870e" + "reference": "0372472dbcc0ae1cea760a8d455b729ead9978f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-proxy/zipball/efdf8d46f8b0f0114ab079f61661d1909b2a870e", - "reference": "efdf8d46f8b0f0114ab079f61661d1909b2a870e", + "url": "https://api.github.com/repos/City-of-Helsinki/drupal-module-helfi-proxy/zipball/0372472dbcc0ae1cea760a8d455b729ead9978f6", + "reference": "0372472dbcc0ae1cea760a8d455b729ead9978f6", "shasum": "" }, "require": { @@ -6123,10 +6124,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/3.3.0", + "source": "https://github.com/City-of-Helsinki/drupal-module-helfi-proxy/tree/3.3.1", "issues": "https://github.com/City-of-Helsinki/drupal-module-helfi-proxy/issues" }, - "time": "2024-06-26T05:50:50+00:00" + "time": "2024-10-25T05:12:00+00:00" }, { "name": "drupal/helfi_tpr", @@ -8514,7 +8515,7 @@ ], "authors": [ { - "name": "Heine", + "name": "heine", "homepage": "https://www.drupal.org/user/17943" }, { @@ -10072,17 +10073,17 @@ }, { "name": "drupal/views_bulk_operations", - "version": "4.3.0", + "version": "4.3.1", "source": { "type": "git", "url": "https://git.drupalcode.org/project/views_bulk_operations.git", - "reference": "4.3.0" + "reference": "4.3.1" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/views_bulk_operations-4.3.0.zip", - "reference": "4.3.0", - "shasum": "887e784e3e41b05d6f8915c223d42f4273ada604" + "url": "https://ftp.drupal.org/files/projects/views_bulk_operations-4.3.1.zip", + "reference": "4.3.1", + "shasum": "1089fe41ddb01313f34d55e19e8f3a5157889430" }, "require": { "drupal/core": "^10.3 || ^11" @@ -10099,8 +10100,8 @@ "type": "drupal-module", "extra": { "drupal": { - "version": "4.3.0", - "datestamp": "1729513620", + "version": "4.3.1", + "datestamp": "1729683242", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -11068,29 +11069,29 @@ }, { "name": "fileeye/mimemap", - "version": "2.1.2", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/FileEye/MimeMap.git", - "reference": "2cb60da59d5c6fb881a78b481d513c4c68a1a93c" + "reference": "c8c686cc6f77316b23128a83334877debf645dfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FileEye/MimeMap/zipball/2cb60da59d5c6fb881a78b481d513c4c68a1a93c", - "reference": "2cb60da59d5c6fb881a78b481d513c4c68a1a93c", + "url": "https://api.github.com/repos/FileEye/MimeMap/zipball/c8c686cc6f77316b23128a83334877debf645dfb", + "reference": "c8c686cc6f77316b23128a83334877debf645dfb", "shasum": "" }, "require": { - "php": ">=7.4" + "php": ">=8.1" }, "require-dev": { "composer-runtime-api": "^2.0.0", - "sebastian/comparator": ">=4", - "sebastian/diff": ">=4", - "symfony/console": ">=5.4", - "symfony/filesystem": ">=5.4", - "symfony/var-dumper": ">=5.4", - "symfony/yaml": ">=5.4" + "sebastian/comparator": ">=5", + "sebastian/diff": ">=5", + "symfony/console": ">=6.4", + "symfony/filesystem": ">=6.4", + "symfony/var-dumper": ">=6.4", + "symfony/yaml": ">=6.4" }, "bin": [ "bin/fileeye-mimemap" @@ -11120,9 +11121,9 @@ ], "support": { "issues": "https://github.com/FileEye/MimeMap/issues", - "source": "https://github.com/FileEye/MimeMap/tree/2.1.2" + "source": "https://github.com/FileEye/MimeMap/tree/2.2.0" }, - "time": "2024-06-29T16:52:07+00:00" + "time": "2024-10-20T18:59:36+00:00" }, { "name": "fileeye/pel", @@ -11967,16 +11968,16 @@ }, { "name": "league/container", - "version": "4.2.2", + "version": "4.2.3", "source": { "type": "git", "url": "https://github.com/thephpleague/container.git", - "reference": "ff346319ca1ff0e78277dc2311a42107cc1aab88" + "reference": "72f9bebe7bd623007782a40f5ec305661ab706d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/container/zipball/ff346319ca1ff0e78277dc2311a42107cc1aab88", - "reference": "ff346319ca1ff0e78277dc2311a42107cc1aab88", + "url": "https://api.github.com/repos/thephpleague/container/zipball/72f9bebe7bd623007782a40f5ec305661ab706d8", + "reference": "72f9bebe7bd623007782a40f5ec305661ab706d8", "shasum": "" }, "require": { @@ -12037,7 +12038,7 @@ ], "support": { "issues": "https://github.com/thephpleague/container/issues", - "source": "https://github.com/thephpleague/container/tree/4.2.2" + "source": "https://github.com/thephpleague/container/tree/4.2.3" }, "funding": [ { @@ -12045,7 +12046,7 @@ "type": "github" } ], - "time": "2024-03-13T13:12:53+00:00" + "time": "2024-10-23T12:06:58+00:00" }, { "name": "league/flysystem", @@ -20604,16 +20605,16 @@ }, { "name": "php-http/discovery", - "version": "1.19.4", + "version": "1.20.0", "source": { "type": "git", "url": "https://github.com/php-http/discovery.git", - "reference": "0700efda8d7526335132360167315fdab3aeb599" + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/discovery/zipball/0700efda8d7526335132360167315fdab3aeb599", - "reference": "0700efda8d7526335132360167315fdab3aeb599", + "url": "https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d", + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d", "shasum": "" }, "require": { @@ -20677,9 +20678,9 @@ ], "support": { "issues": "https://github.com/php-http/discovery/issues", - "source": "https://github.com/php-http/discovery/tree/1.19.4" + "source": "https://github.com/php-http/discovery/tree/1.20.0" }, - "time": "2024-03-29T13:00:05+00:00" + "time": "2024-10-02T11:20:13+00:00" }, { "name": "php-http/guzzle7-adapter", @@ -20745,16 +20746,16 @@ }, { "name": "php-http/httplug", - "version": "2.4.0", + "version": "2.4.1", "source": { "type": "git", "url": "https://github.com/php-http/httplug.git", - "reference": "625ad742c360c8ac580fcc647a1541d29e257f67" + "reference": "5cad731844891a4c282f3f3e1b582c46839d22f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-http/httplug/zipball/625ad742c360c8ac580fcc647a1541d29e257f67", - "reference": "625ad742c360c8ac580fcc647a1541d29e257f67", + "url": "https://api.github.com/repos/php-http/httplug/zipball/5cad731844891a4c282f3f3e1b582c46839d22f4", + "reference": "5cad731844891a4c282f3f3e1b582c46839d22f4", "shasum": "" }, "require": { @@ -20796,9 +20797,9 @@ ], "support": { "issues": "https://github.com/php-http/httplug/issues", - "source": "https://github.com/php-http/httplug/tree/2.4.0" + "source": "https://github.com/php-http/httplug/tree/2.4.1" }, - "time": "2023-04-14T15:10:03+00:00" + "time": "2024-09-23T11:39:58+00:00" }, { "name": "php-http/promise", diff --git a/conf/cmi/external_entities.external_entity_type.linkedevents_event.yml b/conf/cmi/external_entities.external_entity_type.linkedevents_event.yml index f263c5183f..819ef5ee38 100644 --- a/conf/cmi/external_entities.external_entity_type.linkedevents_event.yml +++ b/conf/cmi/external_entities.external_entity_type.linkedevents_event.yml @@ -8,8 +8,8 @@ id: linkedevents_event label: 'LinkedEvents: Event' label_plural: 'LinkedEvents: Events' description: 'Event entities from https://api.hel.fi/linkedevents.' -generate_aliases: false read_only: true +generate_aliases: false field_mapper_id: jsonpath field_mapper_config: field_mappings: diff --git a/conf/cmi/raven.settings.yml b/conf/cmi/raven.settings.yml index 983d704b24..d2afac6392 100644 --- a/conf/cmi/raven.settings.yml +++ b/conf/cmi/raven.settings.yml @@ -4,14 +4,14 @@ client_key: '' environment: '' release: '' log_levels: - 1: 1 - 2: 2 - 3: 3 - 4: 4 - 5: 0 - 6: 0 - 7: 0 - 8: 0 + emergency: true + alert: true + critical: true + error: true + warning: false + notice: false + info: false + debug: false stack: true timeout: 2.0 message_limit: 2048 diff --git a/conf/cmi/user.role.ad_user.yml b/conf/cmi/user.role.ad_user.yml index d1c3ef4d7b..89763b05b0 100644 --- a/conf/cmi/user.role.ad_user.yml +++ b/conf/cmi/user.role.ad_user.yml @@ -6,6 +6,7 @@ dependencies: - taxonomy.vocabulary.news_tags module: - file + - raven - taxonomy id: ad_user label: 'AD User' @@ -14,3 +15,4 @@ is_admin: null permissions: - 'delete own files' - 'edit terms in news_tags' + - 'send performance traces to sentry' diff --git a/conf/cmi/user.role.admin.yml b/conf/cmi/user.role.admin.yml index c3ee3c3409..601310a188 100644 --- a/conf/cmi/user.role.admin.yml +++ b/conf/cmi/user.role.admin.yml @@ -56,6 +56,7 @@ dependencies: - path - pathauto - publication_date + - raven - redirect - responsive_image - role_delegation @@ -283,6 +284,7 @@ permissions: - 'revert service revisions' - 'schedule publishing of nodes' - 'select account cancellation method' + - 'send performance traces to sentry' - 'set announcement published on date' - 'set landing_page published on date' - 'set page published on date' diff --git a/conf/cmi/user.role.anonymous.yml b/conf/cmi/user.role.anonymous.yml index ad16764477..60e2693019 100644 --- a/conf/cmi/user.role.anonymous.yml +++ b/conf/cmi/user.role.anonymous.yml @@ -20,6 +20,7 @@ permissions: - 'access content' - 'display eu cookie compliance popup' - 'send javascript errors to sentry' + - 'send performance traces to sentry' - 'view helfi_announcements external entity' - 'view helfi_news external entity' - 'view helfi_news_groups external entity' diff --git a/conf/cmi/user.role.authenticated.yml b/conf/cmi/user.role.authenticated.yml index 4fb5f2c754..d1d55248c8 100644 --- a/conf/cmi/user.role.authenticated.yml +++ b/conf/cmi/user.role.authenticated.yml @@ -32,6 +32,7 @@ permissions: - 'display eu cookie compliance popup' - 'edit own address content' - 'send javascript errors to sentry' + - 'send performance traces to sentry' - 'use text format full_html' - 'use text format minimal' - 'use text format webform_default' diff --git a/conf/cmi/user.role.content_producer.yml b/conf/cmi/user.role.content_producer.yml index 8f35351246..c674e78fd1 100644 --- a/conf/cmi/user.role.content_producer.yml +++ b/conf/cmi/user.role.content_producer.yml @@ -35,6 +35,7 @@ dependencies: - path - pathauto - publication_date + - raven - scheduler - system - taxonomy @@ -125,6 +126,7 @@ permissions: - 'revert page revisions' - 'revert service revisions' - 'schedule publishing of nodes' + - 'send performance traces to sentry' - 'set announcement published on date' - 'set landing_page published on date' - 'set page published on date' diff --git a/conf/cmi/user.role.content_producer_industry.yml b/conf/cmi/user.role.content_producer_industry.yml index 5e7d0b7534..09c3a0656a 100644 --- a/conf/cmi/user.role.content_producer_industry.yml +++ b/conf/cmi/user.role.content_producer_industry.yml @@ -18,6 +18,7 @@ dependencies: - override_node_options - paragraphs - path + - raven - scheduler - system - taxonomy @@ -51,6 +52,7 @@ permissions: - 'override service published option' - 'revert service revisions' - 'schedule publishing of nodes' + - 'send performance traces to sentry' - 'translate editable entities' - 'translate interface' - 'update media' diff --git a/conf/cmi/user.role.editor.yml b/conf/cmi/user.role.editor.yml index 603f3c5a78..22a63ffb9f 100644 --- a/conf/cmi/user.role.editor.yml +++ b/conf/cmi/user.role.editor.yml @@ -32,6 +32,7 @@ dependencies: - paragraphs_library - path - publication_date + - raven - redirect - scheduler - system @@ -132,6 +133,7 @@ permissions: - 'revert news_item revisions' - 'revert page revisions' - 'schedule publishing of nodes' + - 'send performance traces to sentry' - 'set announcement published on date' - 'set landing_page published on date' - 'set news_item published on date' diff --git a/conf/cmi/user.role.grants_admin.yml b/conf/cmi/user.role.grants_admin.yml index 323e4cf698..11293a7ac7 100644 --- a/conf/cmi/user.role.grants_admin.yml +++ b/conf/cmi/user.role.grants_admin.yml @@ -44,6 +44,7 @@ dependencies: - path - pathauto - publication_date + - raven - role_delegation - scheduler - system @@ -214,6 +215,7 @@ permissions: - 'revert service revisions' - 'schedule publishing of nodes' - 'select account cancellation method' + - 'send performance traces to sentry' - 'set announcement published on date' - 'set landing_page published on date' - 'set news_item published on date' diff --git a/conf/cmi/user.role.grants_producer.yml b/conf/cmi/user.role.grants_producer.yml index 6353b17c99..9f11962e68 100644 --- a/conf/cmi/user.role.grants_producer.yml +++ b/conf/cmi/user.role.grants_producer.yml @@ -3,15 +3,29 @@ langcode: en status: true dependencies: config: + - media.type.file + - media.type.image + - media.type.remote_video - node.type.landing_page - node.type.page - node.type.service + - taxonomy.vocabulary.avustuslaji + - taxonomy.vocabulary.keywords + - taxonomy.vocabulary.news_tags + - taxonomy.vocabulary.target_group + - taxonomy.vocabulary.ukk_kategoriat + - taxonomy.vocabulary.unit_type module: + - block_content + - content_translation - file - locale - media + - menu_link_content - path + - raven - system + - taxonomy - toolbar - view_unpublished - webform @@ -28,6 +42,7 @@ permissions: - 'delete own files' - 'edit any webform' - 'edit terms in news_tags' + - 'send performance traces to sentry' - 'translate any webform' - 'translate avustuslaji taxonomy_term' - 'translate block_content' diff --git a/conf/cmi/user.role.grants_producer_industry.yml b/conf/cmi/user.role.grants_producer_industry.yml index ad77327c2f..bae9d5d196 100644 --- a/conf/cmi/user.role.grants_producer_industry.yml +++ b/conf/cmi/user.role.grants_producer_industry.yml @@ -11,6 +11,7 @@ dependencies: - locale - media - path + - raven - system - toolbar - view_unpublished @@ -26,6 +27,7 @@ permissions: - 'create url aliases' - 'delete own files' - 'edit any webform' + - 'send performance traces to sentry' - 'translate interface' - 'view any unpublished landing_page content' - 'view any unpublished page content' diff --git a/conf/cmi/user.role.helsinkiprofiili.yml b/conf/cmi/user.role.helsinkiprofiili.yml index 315cafb3c8..cb6fb13043 100644 --- a/conf/cmi/user.role.helsinkiprofiili.yml +++ b/conf/cmi/user.role.helsinkiprofiili.yml @@ -7,6 +7,7 @@ dependencies: - grants_mandate - grants_oma_asiointi - grants_profile + - raven - webform id: helsinkiprofiili label: HelsinkiProfiili @@ -18,5 +19,6 @@ permissions: - 'delete own files' - 'edit own webform submission' - 'get mandates from dvv' + - 'send performance traces to sentry' - 'view own grants_profile' - 'view own webform submission' diff --git a/conf/cmi/user.role.json_api_user.yml b/conf/cmi/user.role.json_api_user.yml index 9871557ef6..7ee500c140 100644 --- a/conf/cmi/user.role.json_api_user.yml +++ b/conf/cmi/user.role.json_api_user.yml @@ -4,6 +4,7 @@ status: true dependencies: module: - file + - raven - webform id: json_api_user label: 'JSON API User' @@ -12,3 +13,4 @@ is_admin: null permissions: - 'access any webform configuration' - 'delete own files' + - 'send performance traces to sentry' diff --git a/conf/cmi/user.role.performance_test_user.yml b/conf/cmi/user.role.performance_test_user.yml index b19cd6f36e..bc331adc52 100644 --- a/conf/cmi/user.role.performance_test_user.yml +++ b/conf/cmi/user.role.performance_test_user.yml @@ -4,9 +4,11 @@ status: true dependencies: module: - file + - raven id: performance_test_user label: 'Performance test user' weight: 8 is_admin: null permissions: - 'delete own files' + - 'send performance traces to sentry' diff --git a/conf/cmi/user.role.read_only.yml b/conf/cmi/user.role.read_only.yml index dfdf13bb4b..bc79e76464 100644 --- a/conf/cmi/user.role.read_only.yml +++ b/conf/cmi/user.role.read_only.yml @@ -11,6 +11,7 @@ dependencies: - helfi_tpr - node - paragraphs + - raven - view_unpublished id: read_only label: 'Vain luku' @@ -18,6 +19,7 @@ weight: -7 is_admin: null permissions: - 'delete own files' + - 'send performance traces to sentry' - 'view any unpublished announcement content' - 'view any unpublished landing_page content' - 'view any unpublished page content' diff --git a/conf/cmi/user.role.survey_editor.yml b/conf/cmi/user.role.survey_editor.yml index 7ba1bc811e..87fcad06df 100644 --- a/conf/cmi/user.role.survey_editor.yml +++ b/conf/cmi/user.role.survey_editor.yml @@ -8,6 +8,7 @@ dependencies: - content_translation - node - publication_date + - raven _core: default_config_hash: CliaTgzCQcvNF9ot3u_EbHnydymXh8bvNgNFlSffj9s id: survey_editor @@ -22,6 +23,7 @@ permissions: - 'edit any survey content' - 'edit own survey content' - 'revert survey revisions' + - 'send performance traces to sentry' - 'set survey published on date' - 'translate survey node' - 'view survey revisions' diff --git a/docker/openshift/crons/pubsub.sh b/docker/openshift/crons/pubsub.sh index c20c01a4ca..7589ed46fa 100644 --- a/docker/openshift/crons/pubsub.sh +++ b/docker/openshift/crons/pubsub.sh @@ -1,10 +1,15 @@ #!/bin/bash -#echo "Running PubSub daemon: $(date +'%Y-%m-%dT%H:%M:%S%:z')" +if [ -z "$DRUPAL_PUBSUB_VAULT" ]; then + echo "PubSub is not configured, exiting." + exit 0 +fi -#while true -#do +echo "Running PubSub daemon: $(date +'%Y-%m-%dT%H:%M:%S%:z')" + +while true +do # PubSub process exists with success return code after # certain number of messages and should then be restarted. -# drush helfi:azure:pubsub-listen || exit 1 -#done + drush helfi:azure:pubsub-listen || exit 1 +done From 35d97621c4cad4c5ead180b2f5c9469ef2cb7b6f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 6 Nov 2024 04:48:07 +0000 Subject: [PATCH 2/3] fix: upgrade @faker-js/faker from 8.3.1 to 8.4.1 Snyk has created this PR to upgrade @faker-js/faker from 8.3.1 to 8.4.1. See this package in npm: @faker-js/faker See this project in Snyk: https://app.snyk.io/org/city-of-helsinki/project/aed93529-486e-499e-9b12-5815057dc0ec?utm_source=github&utm_medium=referral&page=upgrade-pr --- e2e/package-lock.json | 9 +++++---- e2e/package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/e2e/package-lock.json b/e2e/package-lock.json index 73356a29a2..32e96b7a81 100644 --- a/e2e/package-lock.json +++ b/e2e/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "ISC", "devDependencies": { - "@faker-js/faker": "^8.3.1", + "@faker-js/faker": "^8.4.1", "@playwright/test": "^1.41.2", "@types/lodash.clonedeep": "^4.5.9", "@types/node": "^20.11.7", @@ -18,9 +18,9 @@ } }, "node_modules/@faker-js/faker": { - "version": "8.3.1", - "resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-8.3.1.tgz", - "integrity": "sha512-FdgpFxY6V6rLZE9mmIBb9hM0xpfvQOSNOLnzolzKwsE1DH+gC7lEKV1p1IbR0lAYyvYd5a4u3qWJzowUkw1bIw==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/@faker-js/faker/-/faker-8.4.1.tgz", + "integrity": "sha512-XQ3cU+Q8Uqmrbf2e0cIC/QN43sTBSC8KF12u29Mb47tWrt2hAgBXSgpZMj4Ao8Uk0iJcU99QsOCaIL8934obCg==", "dev": true, "funding": [ { @@ -28,6 +28,7 @@ "url": "https://opencollective.com/fakerjs" } ], + "license": "MIT", "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0", "npm": ">=6.14.13" diff --git a/e2e/package.json b/e2e/package.json index 73004b3bb6..c0bcbfcf28 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -12,7 +12,7 @@ "author": "", "license": "ISC", "devDependencies": { - "@faker-js/faker": "^8.3.1", + "@faker-js/faker": "^8.4.1", "@playwright/test": "^1.41.2", "@types/lodash.clonedeep": "^4.5.9", "@types/node": "^20.11.7", From 6d8698a1a356fcae646c58f2d654b981e153a9fe Mon Sep 17 00:00:00 2001 From: Janne Suominen Date: Wed, 6 Nov 2024 11:01:29 +0200 Subject: [PATCH 3/3] Update e2e tests --- e2e/utils/data/application/application_data_29.ts | 12 ++++++------ e2e/utils/data/application/application_data_48.ts | 8 ++++---- e2e/utils/data/application/application_data_49.ts | 4 ++-- e2e/utils/data/application/application_data_51.ts | 8 ++++---- e2e/utils/data/application/application_data_52.ts | 6 +++--- e2e/utils/data/application/application_data_54.ts | 12 ++++++------ e2e/utils/data/application/application_data_57.ts | 8 ++++---- e2e/utils/data/application/application_data_60.ts | 4 ++-- e2e/utils/data/application/application_data_61.ts | 8 ++++---- e2e/utils/data/application/application_data_62.ts | 8 ++++---- e2e/utils/data/application/application_data_63.ts | 8 ++++---- e2e/utils/data/application/application_data_67.ts | 8 ++++---- e2e/utils/data/application/application_data_68.ts | 8 ++++---- 13 files changed, 51 insertions(+), 51 deletions(-) diff --git a/e2e/utils/data/application/application_data_29.ts b/e2e/utils/data/application/application_data_29.ts index eeeb460899..e56bb7ce9a 100644 --- a/e2e/utils/data/application/application_data_29.ts +++ b/e2e/utils/data/application/application_data_29.ts @@ -155,7 +155,7 @@ const baseForm_29: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -207,7 +207,7 @@ const baseForm_29: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -287,7 +287,7 @@ const baseForm_29: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -339,7 +339,7 @@ const baseForm_29: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -400,7 +400,7 @@ const baseForm_29: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -408,7 +408,7 @@ const baseForm_29: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, diff --git a/e2e/utils/data/application/application_data_48.ts b/e2e/utils/data/application/application_data_48.ts index dcddaa3685..52ab034a8f 100644 --- a/e2e/utils/data/application/application_data_48.ts +++ b/e2e/utils/data/application/application_data_48.ts @@ -179,7 +179,7 @@ const baseForm_48: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -231,7 +231,7 @@ const baseForm_48: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -287,7 +287,7 @@ const baseForm_48: FormData = { value: faker.number.float({ min: 1, max: 100, - precision: 2 + multipleOf: 2 }).toString(), }, "edit-osa-aikainen-henkilosto": { @@ -299,7 +299,7 @@ const baseForm_48: FormData = { value: faker.number.float({ min: 1, max: 100, - precision: 2 + multipleOf: 2 }).toString(), }, "edit-vapaaehtoinen-henkilosto": { diff --git a/e2e/utils/data/application/application_data_49.ts b/e2e/utils/data/application/application_data_49.ts index e6800b1b14..c37dde4c0b 100644 --- a/e2e/utils/data/application/application_data_49.ts +++ b/e2e/utils/data/application/application_data_49.ts @@ -205,7 +205,7 @@ const baseForm_49: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -257,7 +257,7 @@ const baseForm_49: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, diff --git a/e2e/utils/data/application/application_data_51.ts b/e2e/utils/data/application/application_data_51.ts index 4703024689..b8749458eb 100644 --- a/e2e/utils/data/application/application_data_51.ts +++ b/e2e/utils/data/application/application_data_51.ts @@ -146,7 +146,7 @@ const baseFormRegisteredCommunity_51: FormData = { // value: faker.number.float({ // min: 1000, // max: 10000, - // precision: 2 + // multipleOf: 2 // }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -198,7 +198,7 @@ const baseFormRegisteredCommunity_51: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -260,7 +260,7 @@ const baseFormRegisteredCommunity_51: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -268,7 +268,7 @@ const baseFormRegisteredCommunity_51: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, diff --git a/e2e/utils/data/application/application_data_52.ts b/e2e/utils/data/application/application_data_52.ts index 69bbba8703..40690b0066 100644 --- a/e2e/utils/data/application/application_data_52.ts +++ b/e2e/utils/data/application/application_data_52.ts @@ -140,7 +140,7 @@ const baseFormRegisteredCommunity_52: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -192,7 +192,7 @@ const baseFormRegisteredCommunity_52: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -363,7 +363,7 @@ const baseFormRegisteredCommunity_52: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency }, diff --git a/e2e/utils/data/application/application_data_54.ts b/e2e/utils/data/application/application_data_54.ts index 7c3bbebc84..3265cc7497 100644 --- a/e2e/utils/data/application/application_data_54.ts +++ b/e2e/utils/data/application/application_data_54.ts @@ -159,7 +159,7 @@ const baseFormRegisteredCommunity_54: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -211,7 +211,7 @@ const baseFormRegisteredCommunity_54: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -292,7 +292,7 @@ const baseFormRegisteredCommunity_54: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -344,7 +344,7 @@ const baseFormRegisteredCommunity_54: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -411,7 +411,7 @@ const baseFormRegisteredCommunity_54: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -419,7 +419,7 @@ const baseFormRegisteredCommunity_54: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, diff --git a/e2e/utils/data/application/application_data_57.ts b/e2e/utils/data/application/application_data_57.ts index 8a2a6bed9b..968ef4df42 100644 --- a/e2e/utils/data/application/application_data_57.ts +++ b/e2e/utils/data/application/application_data_57.ts @@ -155,7 +155,7 @@ const baseFormRegisteredCommunity_57: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -207,7 +207,7 @@ const baseFormRegisteredCommunity_57: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -288,7 +288,7 @@ const baseFormRegisteredCommunity_57: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -340,7 +340,7 @@ const baseFormRegisteredCommunity_57: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, diff --git a/e2e/utils/data/application/application_data_60.ts b/e2e/utils/data/application/application_data_60.ts index d1ee776eb8..a5c02811d6 100644 --- a/e2e/utils/data/application/application_data_60.ts +++ b/e2e/utils/data/application/application_data_60.ts @@ -168,7 +168,7 @@ const baseFormRegisteredCommunity_60: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -220,7 +220,7 @@ const baseFormRegisteredCommunity_60: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, diff --git a/e2e/utils/data/application/application_data_61.ts b/e2e/utils/data/application/application_data_61.ts index fe5db8dc34..fb2b008534 100644 --- a/e2e/utils/data/application/application_data_61.ts +++ b/e2e/utils/data/application/application_data_61.ts @@ -138,7 +138,7 @@ const baseFormRegisteredCommunity_61: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -190,7 +190,7 @@ const baseFormRegisteredCommunity_61: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -256,7 +256,7 @@ const baseFormRegisteredCommunity_61: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -264,7 +264,7 @@ const baseFormRegisteredCommunity_61: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, diff --git a/e2e/utils/data/application/application_data_62.ts b/e2e/utils/data/application/application_data_62.ts index 03e9e0bdcd..ccf930a737 100644 --- a/e2e/utils/data/application/application_data_62.ts +++ b/e2e/utils/data/application/application_data_62.ts @@ -145,7 +145,7 @@ const baseFormRegisteredCommunity_62: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -197,7 +197,7 @@ const baseFormRegisteredCommunity_62: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -278,7 +278,7 @@ const baseFormRegisteredCommunity_62: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -330,7 +330,7 @@ const baseFormRegisteredCommunity_62: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, diff --git a/e2e/utils/data/application/application_data_63.ts b/e2e/utils/data/application/application_data_63.ts index b212784333..30f24eaa0c 100644 --- a/e2e/utils/data/application/application_data_63.ts +++ b/e2e/utils/data/application/application_data_63.ts @@ -145,7 +145,7 @@ const baseFormRegisteredCommunity_63: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -197,7 +197,7 @@ const baseFormRegisteredCommunity_63: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -278,7 +278,7 @@ const baseFormRegisteredCommunity_63: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -330,7 +330,7 @@ const baseFormRegisteredCommunity_63: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, diff --git a/e2e/utils/data/application/application_data_67.ts b/e2e/utils/data/application/application_data_67.ts index a27923986f..52675d8a4c 100644 --- a/e2e/utils/data/application/application_data_67.ts +++ b/e2e/utils/data/application/application_data_67.ts @@ -140,7 +140,7 @@ const baseFormRegisteredCommunity_67: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -192,7 +192,7 @@ const baseFormRegisteredCommunity_67: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -272,7 +272,7 @@ const baseFormRegisteredCommunity_67: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -324,7 +324,7 @@ const baseFormRegisteredCommunity_67: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, diff --git a/e2e/utils/data/application/application_data_68.ts b/e2e/utils/data/application/application_data_68.ts index 0e43e5ea77..7187075095 100644 --- a/e2e/utils/data/application/application_data_68.ts +++ b/e2e/utils/data/application/application_data_68.ts @@ -157,7 +157,7 @@ const baseFormRegisteredCommunity_68: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -209,7 +209,7 @@ const baseFormRegisteredCommunity_68: FormData = { value: faker.number.float({ min: 1000, max: 10000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -264,7 +264,7 @@ const baseFormRegisteredCommunity_68: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, }, @@ -272,7 +272,7 @@ const baseFormRegisteredCommunity_68: FormData = { value: faker.number.float({ min: 100, max: 1000, - precision: 2 + multipleOf: 2 }).toString(), viewPageFormatter: viewPageFormatCurrency, },