Skip to content

Commit 5e85d4a

Browse files
authored
Merge pull request #692 from City-of-Helsinki/update-configuration
Automatic update
2 parents a43749b + 0530484 commit 5e85d4a

File tree

10 files changed

+237
-130
lines changed

10 files changed

+237
-130
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
PHONY :=
22
PROJECT_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
3+
IS_CONTAINER := $(shell test ${CONTAINER_RUNNING} && echo true || echo false)
34

45
# Colors
56
NO_COLOR=\033[0m

composer.lock

Lines changed: 182 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

conf/cmi/editor.editor.full_html.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
module:
88
- ckeditor5
99
_core:
10-
default_config_hash: oCDUwt4GjXQJeBCiJlq5NKEU0d9JP2Kx3QZKMuDAi_g
10+
default_config_hash: i1fLaAzni2rKBDARlCWA1xa79zo_RYF-8oQ3x9wxgfM
1111
format: full_html
1212
editor: ckeditor5
1313
settings:
@@ -151,6 +151,11 @@ settings:
151151
weight: 19
152152
search: '(<a\b[^>]*?)\s+target\s*=\s*("_blank"|_blank)'
153153
replace: $1
154+
-
155+
enabled: true
156+
weight: 20
157+
search: '&nbsp;'
158+
replace: ' '
154159
ckeditor5_sourceEditing:
155160
allowed_tags:
156161
- '<figure tabindex>'

conf/cmi/editor.editor.minimal.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
module:
88
- ckeditor5
99
_core:
10-
default_config_hash: 5XykmWxByyrIQ2N9_zHqVQlMtBUy9wc5P9lPrM_g7oQ
10+
default_config_hash: oE8ZPS7LMQvOJv0JDM2AJcGyPAti79fl6vzr3v-GWM0
1111
format: minimal
1212
editor: ckeditor5
1313
settings:
@@ -133,6 +133,11 @@ settings:
133133
weight: 19
134134
search: '(<a\b[^>]*?)\s+target\s*=\s*("_blank"|_blank)'
135135
replace: $1
136+
-
137+
enabled: true
138+
weight: 20
139+
search: '&nbsp;'
140+
replace: ' '
136141
ckeditor5_sourceEditing:
137142
allowed_tags:
138143
- '<p data-chat-trigger>'

conf/cmi/openid_connect.client.tunnistamo.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,33 @@ id: tunnistamo
1010
label: Tunnistamo
1111
plugin: tunnistamo
1212
settings:
13-
client_id: placeholder
14-
client_secret: placeholder
13+
client_id: ''
14+
client_secret: ''
1515
iss_allowed_domains: ''
16-
is_production: 0
16+
prompt:
17+
login: login
1718
auto_login: 0
18-
environment_url: 'https://tunnistamo.test.hel.ninja'
19+
environment_url: ''
1920
client_scopes: 'openid,email'
2021
client_roles: { }
21-
debug_log: false
22+
ad_roles:
23+
-
24+
ad_role: Drupal_Helfi_kaupunkitaso_paakayttajat
25+
roles:
26+
- admin
27+
-
28+
ad_role: Drupal_Helfi_Tyo_ja_yrittäminen_sisallontuottajat_laaja
29+
roles:
30+
- editor
31+
-
32+
ad_role: Drupal_Helfi_Tyo_ja_yrittäminen_sisallontuottajat_suppea
33+
roles:
34+
- content_producer
35+
-
36+
ad_role: Drupal_Helfi_Etusivu_kayttajakyselyt
37+
roles:
38+
- survey_editor
39+
-
40+
ad_role: 947058f4-697e-41bb-baf5-f69b49e5579a
41+
roles:
42+
- super_administrator

docker/openshift/crons/cron.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
while true
44
do
5-
echo "Running cron: $(date +'%Y-%m-%dT%H:%M:%S%:z')\n"
5+
echo "Running cron: $(date +'%Y-%m-%dT%H:%M:%S%:z')"
66
drush cron
77
# Sleep for 10 minutes.
88
sleep 600

docker/openshift/hooks/db-replace/50-sanitize.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ fi
77

88
# Obfuscate user data
99
drush sql:sanitize
10+
# Convert file schemes for Stage file proxy
11+
drush sql-query "UPDATE file_managed SET uri = REPLACE(uri, 'azure://', 'public://');"

public/sites/default/settings.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,10 @@ function drupal_get_env(string|array $variables) : mixed {
385385
// Always default to blob storage if configured.
386386
if ($blob_storage_container = getenv('AZURE_BLOB_STORAGE_CONTAINER')) {
387387
$stage_file_proxy_origin = 'https://stplattaprod.blob.core.windows.net';
388-
$stage_file_proxy_dir = $blob_storage_container;
388+
// The container name uses the same naming convention across environments.
389+
// Make sure the container name also points to production.
390+
// For example: 'etusivu64e62test' -> 'etusivu64e62prod'.
391+
$stage_file_proxy_dir = str_replace(['test', 'staging'], 'prod', $blob_storage_container);
389392
}
390393
$config['stage_file_proxy.settings']['origin'] = $stage_file_proxy_origin;
391394
$config['stage_file_proxy.settings']['origin_dir'] = $stage_file_proxy_dir;

public/themes/custom/hdbt_subtheme/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/make/drupal.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ open-db-gui: ## Open database with GUI tool
126126
$(eval DB_PASS ?= drupal)
127127
@open mysql://$(DB_USER):$(DB_PASS)@$(shell docker compose port $(DB_SERVICE) 3306 | grep -v ::)/$(DB_NAME)
128128

129+
ifeq ($(IS_CONTAINER),false)
129130
define drush
130131
$(call docker_compose_exec,drush $(1),$(2))
131132
endef
133+
else
134+
define drush
135+
@drush $(1) $(2)
136+
endef
137+
endif

0 commit comments

Comments
 (0)