Skip to content

Commit

Permalink
Update configuration (#1523)
Browse files Browse the repository at this point in the history
  • Loading branch information
hel-platta-automation authored Oct 25, 2024
1 parent 8a44aed commit 46dea34
Show file tree
Hide file tree
Showing 19 changed files with 126 additions and 79 deletions.
131 changes: 66 additions & 65 deletions composer.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 8 additions & 8 deletions conf/cmi/raven.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.ad_user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- taxonomy.vocabulary.news_tags
module:
- file
- raven
- taxonomy
id: ad_user
label: 'AD User'
Expand All @@ -14,3 +15,4 @@ is_admin: null
permissions:
- 'delete own files'
- 'edit terms in news_tags'
- 'send performance traces to sentry'
2 changes: 2 additions & 0 deletions conf/cmi/user.role.admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ dependencies:
- path
- pathauto
- publication_date
- raven
- redirect
- responsive_image
- role_delegation
Expand Down Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions conf/cmi/user.role.anonymous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions conf/cmi/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.content_producer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dependencies:
- path
- pathauto
- publication_date
- raven
- scheduler
- system
- taxonomy
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.content_producer_industry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- override_node_options
- paragraphs
- path
- raven
- scheduler
- system
- taxonomy
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dependencies:
- paragraphs_library
- path
- publication_date
- raven
- redirect
- scheduler
- system
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.grants_admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ dependencies:
- path
- pathauto
- publication_date
- raven
- role_delegation
- scheduler
- system
Expand Down Expand Up @@ -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'
Expand Down
15 changes: 15 additions & 0 deletions conf/cmi/user.role.grants_producer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.grants_producer_industry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- locale
- media
- path
- raven
- system
- toolbar
- view_unpublished
Expand All @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.helsinkiprofiili.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- grants_mandate
- grants_oma_asiointi
- grants_profile
- raven
- webform
id: helsinkiprofiili
label: HelsinkiProfiili
Expand All @@ -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'
2 changes: 2 additions & 0 deletions conf/cmi/user.role.json_api_user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
module:
- file
- raven
- webform
id: json_api_user
label: 'JSON API User'
Expand All @@ -12,3 +13,4 @@ is_admin: null
permissions:
- 'access any webform configuration'
- 'delete own files'
- 'send performance traces to sentry'
2 changes: 2 additions & 0 deletions conf/cmi/user.role.performance_test_user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 2 additions & 0 deletions conf/cmi/user.role.read_only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ dependencies:
- helfi_tpr
- node
- paragraphs
- raven
- view_unpublished
id: read_only
label: 'Vain luku'
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'
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/user.role.survey_editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- content_translation
- node
- publication_date
- raven
_core:
default_config_hash: CliaTgzCQcvNF9ot3u_EbHnydymXh8bvNgNFlSffj9s
id: survey_editor
Expand All @@ -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'
15 changes: 10 additions & 5 deletions docker/openshift/crons/pubsub.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 46dea34

Please sign in to comment.