Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic update #306

Merged
merged 6 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .platform/ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tests/dtt/src/ExistingSite/ModuleEnabledTest.php&#10
tools/make/project/install.mk
389 changes: 196 additions & 193 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions conf/cmi/helfi_api_base.features.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
disable_email_sending: true
user_expire: false
1 change: 1 addition & 0 deletions conf/cmi/language/ar/webform.webform.contact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Contact
1 change: 1 addition & 0 deletions conf/cmi/language/es/webform.webform.contact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Contact
1 change: 1 addition & 0 deletions conf/cmi/language/et/webform.webform.contact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Contact
1 change: 1 addition & 0 deletions conf/cmi/language/fa/webform.webform.contact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Contact
4 changes: 2 additions & 2 deletions conf/cmi/language/fi/views.view.archive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ display:
pager:
options:
tags:
next: ››
previous: ‹‹
next: 'Seuraava ›'
previous: '‹ Edellinen'
expose:
items_per_page_label: 'Merkintöjä sivua kohti'
items_per_page_options_all_label: '- Kaikki -'
Expand Down
4 changes: 2 additions & 2 deletions conf/cmi/language/fi/views.view.glossary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ display:
pager:
options:
tags:
next: ››
previous: ‹‹
next: 'Seuraava ›'
previous: '‹ Edellinen'
expose:
items_per_page_label: 'Merkintöjä sivua kohti'
items_per_page_options_all_label: '- Kaikki -'
Expand Down
1 change: 0 additions & 1 deletion conf/cmi/language/fi/views.view.media.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
label: Media
description: 'Find and manage media.'
display:
default:
display_title: Oletus
Expand Down
5 changes: 2 additions & 3 deletions conf/cmi/language/fi/views.view.media_library.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
description: 'Find and manage media.'
display:
default:
display_title: Oletus
Expand All @@ -10,8 +9,8 @@ display:
pager:
options:
tags:
next: ››
previous: ‹‹
next: 'Seuraava ›'
previous: '‹ Edellinen'
expose:
items_per_page_label: 'Merkintöjä sivua kohti'
items_per_page_options_all_label: '- Kaikki -'
Expand Down
4 changes: 2 additions & 2 deletions conf/cmi/language/fi/views.view.redirect_404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ display:
items_per_page_options_all_label: '- Kaikki -'
offset_label: Offset
tags:
previous: ‹‹
next: ››
previous: '‹ Edellinen'
next: 'Seuraava ›'
fields:
path:
label: Polku
Expand Down
4 changes: 2 additions & 2 deletions conf/cmi/language/fi/views.view.taxonomy_term.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ display:
pager:
options:
tags:
next: ››
previous: ‹‹
next: 'Seuraava ›'
previous: '‹ Edellinen'
expose:
items_per_page_label: 'Merkintöjä sivua kohti'
items_per_page_options_all_label: '- Kaikki -'
Expand Down
4 changes: 2 additions & 2 deletions conf/cmi/language/fi/views.view.watchdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ display:
pager:
options:
tags:
next: ››
previous: ‹‹
next: 'Seuraava ›'
previous: '‹ Edellinen'
expose:
items_per_page_label: 'Merkintöjä sivua kohti'
items_per_page_options_all_label: '- Kaikki -'
Expand Down
1 change: 1 addition & 0 deletions conf/cmi/language/fi/webform.webform.contact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Contact
1 change: 1 addition & 0 deletions conf/cmi/language/fr/webform.webform.contact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Contact
1 change: 1 addition & 0 deletions conf/cmi/language/ru/webform.webform.contact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Contact
1 change: 1 addition & 0 deletions conf/cmi/language/sv/webform.webform.contact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Contact
1 change: 1 addition & 0 deletions conf/cmi/language/tr/core.date_format.fallback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: 'Fallback date format'
Original file line number Diff line number Diff line change
@@ -1 +1 @@
label: 'HTML Yearless date'
label: 'HTML Yılsız tarih'
1 change: 1 addition & 0 deletions conf/cmi/language/tr/webform.webform.contact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: Contact
22 changes: 0 additions & 22 deletions conf/cmi/rest.resource.helfi_debug_data.yml

This file was deleted.

29 changes: 29 additions & 0 deletions public/sites/default/all.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,32 @@
foreach ($additionalEnvVars as $var) {
$preflight_checks['environmentVariables'][] = $var;
}

/**
* The UI for environment indicator is broken, so we have to do this instead.
* See more info, https://www.drupal.org/project/environment_indicator/issues/2224983
*/
if (isset($_SERVER['HTTP_HOST'])) {
switch ($_SERVER['HTTP_HOST']) {
case 'edit.infofinland.fi':
$config['environment_indicator.indicator']['bg_color'] = '#ffffff';
$config['environment_indicator.indicator']['fg_color'] = '#000000';
$config['environment_indicator.indicator']['name'] = 'Production';
break;
case 'edit-infofinland.stage.hel.ninja':
$config['environment_indicator.indicator']['bg_color'] = '#3584e4';
$config['environment_indicator.indicator']['fg_color'] = '#000000';
$config['environment_indicator.indicator']['name'] = 'Stage';
break;
case 'edit-infofinland.test.hel.ninja':
$config['environment_indicator.indicator']['bg_color'] = '#ed333b';
$config['environment_indicator.indicator']['fg_color'] = '#000000';
$config['environment_indicator.indicator']['name'] = 'Test';
break;
case 'edit-infofinland.dev.hel.ninja':
$config['environment_indicator.indicator']['bg_color'] = '#33d17a';
$config['environment_indicator.indicator']['fg_color'] = '#000000';
$config['environment_indicator.indicator']['name'] = 'Development';
break;
}
}
29 changes: 0 additions & 29 deletions public/sites/default/env.indicator.settings.php

This file was deleted.

5 changes: 0 additions & 5 deletions public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,3 @@ function drupal_get_env(string|array $variables) : mixed {
$settings['deployment_identifier'] = filemtime(__DIR__ . '/../../../composer.lock');
}

// Environment indicator hack, see the file for more info
$env_indicator_settings = dirname(__FILE__) . '/env.indicator.settings.php';
if (file_exists($env_indicator_settings)) {
require_once $env_indicator_settings;
}
10 changes: 4 additions & 6 deletions tools/make/project/install.mk
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ifeq ($(DRUPAL_CONF_EXISTS),yes)
DRUPAL_NEW_TARGETS := up build drush-si drush-cr drush-locale-update drush-uli
DRUPAL_NEW_TARGETS := up build drush-si drush-cr drush-locale-update drush-helfi-locale-import drush-uli
else
DRUPAL_NEW_TARGETS := up build drush-si drush-locale-update drush-uli
DRUPAL_NEW_TARGETS := up build drush-si drush-helfi-enable-modules drush-locale-update drush-helfi-locale-import drush-uli
endif
DRUPAL_POST_INSTALL_TARGETS := drush-locale-update drush-deploy drush-uli
DRUPAL_POST_INSTALL_TARGETS := drush-locale-update drush-deploy drush-helfi-locale-import drush-uli

OC_LOGIN_TOKEN ?= $(shell bash -c 'read -s -p "You must obtain an API token by visiting https://oauth-openshift.apps.arodevtest.hel.fi/oauth/token/request (Token):" token; echo $$token')

Expand Down Expand Up @@ -43,6 +43,4 @@ drush-locale-update: ## Update translations.

PHONY += drush-helfi-locale-import
drush-helfi-locale-import: ## Update translations from helfi platform config.
$(call step,Import helfi platform config translations...)
$(call drush,helfi:locale-import helfi_platform_config)
$(call drush,cr)
# no-op