Skip to content

Commit

Permalink
Merge pull request #443 from City-of-Helsinki/dev
Browse files Browse the repository at this point in the history
Dev to main
  • Loading branch information
rpnykanen authored Apr 20, 2023
2 parents 9bc2f92 + 7ac988f commit 3b949e1
Show file tree
Hide file tree
Showing 24 changed files with 67 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: |
composer install
$(drush sql:connect) < latest.sql
drush deploy
drush cim -y && drush updb -y && drush cr
composer update drupal/helfi_* drupal/hdbt* -W
drush cr && drush updb -y && drush cex -y
# Update platform
Expand Down
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ dependencies:
- field.field.paragraph.social_media_link.field_social_media_link
- paragraphs.paragraphs_type.social_media_link
module:
- link
- hdbt_admin_tools
- link
_core:
default_config_hash: aWojfz5AeLM97eeoyKxUlJpYkuG2X8qLl2KOaczBukY
id: paragraph.social_media_link.default
targetEntityType: paragraph
bundle: social_media_link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@ dependencies:
- paragraphs.paragraphs_type.contact_card
module:
- entity_reference_revisions
- helfi_platform_config
- image
- telephone
_core:
default_config_hash: X5x-5vSXj4FHXf2NNNyzzwVH7xlQUk6wGBYjejfb-iQ
id: paragraph.contact_card.default
targetEntityType: paragraph
bundle: contact_card
mode: default
content:
field_contact_description:
type: text_span
label: visually_hidden
label: hidden
settings: { }
third_party_settings: { }
weight: 5
Expand All @@ -50,7 +53,7 @@ content:
region: content
field_contact_name:
type: string
label: visually_hidden
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
Expand All @@ -67,22 +70,22 @@ content:
region: content
field_contact_title:
type: string
label: visually_hidden
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 2
region: content
field_email:
type: email_mailto
label: visually_hidden
label: hidden
settings: { }
third_party_settings: { }
weight: 4
region: content
field_phone_number:
type: telephone_link
label: visually_hidden
label: hidden
settings:
title: ''
third_party_settings: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ dependencies:
- field.field.paragraph.social_media_link.field_social_media_link
- paragraphs.paragraphs_type.social_media_link
module:
- link
- hdbt_admin_tools
- link
_core:
default_config_hash: WtJ8D0kqvYryjBD0kBTGg0SOQkCyGq7qF-uD4W_3z9g
id: paragraph.social_media_link.default
targetEntityType: paragraph
bundle: social_media_link
Expand Down
2 changes: 1 addition & 1 deletion conf/cmi/easy_breadcrumb.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ replaced_titles: ''
custom_paths: ''
include_home_segment: true
alternative_title_field: ''
home_segment_title: Decision-making
home_segment_title: Decision
home_segment_keep: false
include_title_segment: true
title_from_page_when_available: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ uuid: a59907e9-8dfe-482c-a091-df1469e35bd4
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: imFLQtHenUWCDEXySYBm0H7gJ55i3_AF8zALft8uiqo
id: helfi_news
label: 'Helfi: News'
label_plural: 'Helfi: News'
Expand Down Expand Up @@ -33,7 +35,7 @@ field_mapper_config:
value: '$.attributes[''short_title'']'
storage_client_id: helfi_news
storage_client_config: { }
persistent_cache_max_age: 10800
persistent_cache_max_age: 1800
annotation_entity_type_id: null
annotation_bundle_id: null
annotation_field_name: null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ langcode: en
status: true
dependencies: { }
_core:
default_config_hash: XSm-lbRmOWP_eJRFTo14HMiNtxsc5scm42lmq8Qjcy8
default_config_hash: zCk_D7oSjREqCU2vFZI4uyGywY_PFNicpUIFuWxtawA
id: helfi_news_groups
label: 'Helfi: News groups'
label_plural: 'Helfi: News groups'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ langcode: en
status: true
dependencies: { }
_core:
default_config_hash: h4y6pjlsSfKM9cgEi9tWGsJ57_zj1b4CelECji9A1Y0
default_config_hash: p1queceC0XdJdYY5diRNVw-hdAFymgdpq7fhQudsddE
id: helfi_news_neighbourhoods
label: 'Helfi: News neighbourhoods'
label_plural: 'Helfi: News neighbourhoods'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ langcode: en
status: true
dependencies: { }
_core:
default_config_hash: wkWXjXpGr6lPWM3nZ-8RqlBCt7nsAuHiP7EC1Vh4oMc
default_config_hash: OdJNKJELJhbOjN4qCgGAHw_Ypudx5Kt3NqcwLn2qbx0
id: helfi_news_tags
label: 'Helfi: News tags'
label_plural: 'Helfi: News tags'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependencies:
- paragraphs.paragraphs_type.social_media_link
module:
- entity_reference_revisions
_core:
default_config_hash: _iSBK3sYqVn5QyzC_C451nR3IF0EGhan4bEp1liTbiU
id: paragraph.contact_card.field_contact_social_media
field_name: field_contact_social_media
entity_type: paragraph
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- field.storage.paragraph.field_contact_title
- paragraphs.paragraphs_type.contact_card
_core:
default_config_hash: 3_-eiSIFayhR_hbFNjQDMu1oq8JCPYQ1v1lpVExyWOo
default_config_hash: pbFbrbO2unkgfSmtKMvjmixhJIx4Ac1sZ3r7u77lIC4
id: paragraph.contact_card.field_contact_title
field_name: field_contact_title
entity_type: paragraph
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependencies:
- paragraphs.paragraphs_type.contact_card_listing
module:
- entity_reference_revisions
_core:
default_config_hash: zR-r30I0kOV247OcU6yxNT2re2IFSq7pUjNogusJVxw
id: paragraph.contact_card_listing.field_contact_card
field_name: field_contact_card
entity_type: paragraph
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ dependencies:
config:
- field.storage.paragraph.field_title
- paragraphs.paragraphs_type.contact_card_listing
_core:
default_config_hash: kdKc_1jRpFFpVgiylfofxe6JZyl5xOjMYEAlvcwPdCU
id: paragraph.contact_card_listing.field_title
field_name: field_title
entity_type: paragraph
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ dependencies:
- paragraphs.paragraphs_type.social_media_link
module:
- hdbt_admin_tools
_core:
default_config_hash: wqE_Zq3v_7AaVAV9KOkhWdkkT_SJTl-Z7wNW6DxFaXI
id: paragraph.social_media_link.field_icon
field_name: field_icon
entity_type: paragraph
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/field.storage.paragraph.field_contact_card.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependencies:
enforced:
config:
- paragraphs.paragraphs_type.contact_card_listing
_core:
default_config_hash: hrjTJNnrxG5N3Ui9q7IAhEBLr4FburA9QNAA1X0FhTo
id: paragraph.field_contact_card
field_name: field_contact_card
entity_type: paragraph
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependencies:
enforced:
config:
- paragraphs.paragraphs_type.contact_card
_core:
default_config_hash: JHpZWWkBGCdrVGR6FpM2u4rbduOL4NCt2ihnVsSkYRc
id: paragraph.field_contact_social_media
field_name: field_contact_social_media
entity_type: paragraph
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ dependencies:
module:
- paragraphs
- text
_core:
default_config_hash: V_erLPi4c9bT-uhAlgcpJJX8LbR02Btsi8yzMVAIpo4
id: paragraph.field_news_list_description
field_name: field_news_list_description
entity_type: paragraph
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/field.storage.paragraph.field_news_list_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ status: true
dependencies:
module:
- paragraphs
_core:
default_config_hash: xapLq-jZodnhyWktgf76RTu9dEBAgWBq-ay41DJpsXQ
id: paragraph.field_news_list_title
field_name: field_news_list_title
entity_type: paragraph
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/field.storage.paragraph.field_phone_number.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ dependencies:
module:
- paragraphs
- telephone
_core:
default_config_hash: kxmWRH9TJh5fRoM_YvyuycrIfHCulYKplVTkFm9DXAM
id: paragraph.field_phone_number
field_name: field_phone_number
entity_type: paragraph
Expand Down
2 changes: 2 additions & 0 deletions conf/cmi/field.storage.paragraph.field_social_media_link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependencies:
enforced:
config:
- paragraphs.paragraphs_type.social_media_link
_core:
default_config_hash: '-njlxNwWIC8XUfPK115lFcUTt2_i0Lm6ldsKWrh6Ge8'
id: paragraph.field_social_media_link
field_name: field_social_media_link
entity_type: paragraph
Expand Down
1 change: 1 addition & 0 deletions conf/cmi/rest.resource.helfi_debug_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ configuration:
authentication:
- cookie
- basic_auth
- basic_auth
1 change: 1 addition & 0 deletions conf/cmi/rest.resource.helfi_debug_package_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ configuration:
authentication:
- cookie
- basic_auth
- basic_auth
10 changes: 10 additions & 0 deletions public/sites/default/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@
$config['helfi_navigation.api']['key'] = $navigation_authentication_key;
}

// Make sure project name and app env are defined in GitHub actions too.
if ($github_repository = getenv('GITHUB_REPOSITORY')) {
if (!getenv('APP_ENV')) {
putenv('APP_ENV=ci');
}

if (!getenv('PROJECT_NAME')) {
putenv('PROJECT_NAME=' . $github_repository);
}
}
$config['helfi_api_base.environment_resolver.settings']['environment_name'] = getenv('APP_ENV');
$config['helfi_api_base.environment_resolver.settings']['project_name'] = getenv('PROJECT_NAME');

Expand Down

0 comments on commit 3b949e1

Please sign in to comment.