Skip to content

Commit

Permalink
Merge pull request #244 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 d7f4324 + d8b5fb6 commit 361feed
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 43 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
38 changes: 19 additions & 19 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,10 +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: tDxBNw8YR1W7aF9xxBj7hnkhn4jEogjXacxgoPweawU
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,18 +15,19 @@ dependencies:
- paragraphs.paragraphs_type.contact_card
module:
- entity_reference_revisions
- helfi_platform_config
- image
- telephone
_core:
default_config_hash: PhtZOF9M7u2XUpd_mrtEfGVJjzlMNobbQzpgabuIzeA
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 @@ -52,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 @@ -69,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,10 +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: R04V_PfwK58f0cqACEAJAQ5SLoVTL_DUGjvHotl3QzA
default_config_hash: WtJ8D0kqvYryjBD0kBTGg0SOQkCyGq7qF-uD4W_3z9g
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 @@ -3,7 +3,7 @@ langcode: en
status: true
dependencies: { }
_core:
default_config_hash: BzWvGC8hEXxFUxhZtUxQ30sNFcsZNIAFC5JX9okISYY
default_config_hash: imFLQtHenUWCDEXySYBm0H7gJ55i3_AF8zALft8uiqo
id: helfi_news
label: 'Helfi: News'
label_plural: 'Helfi: News'
Expand Down Expand Up @@ -35,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 @@ -9,7 +9,7 @@ dependencies:
module:
- entity_reference_revisions
_core:
default_config_hash: QHbMutsxDDQ1YAxKNp1M0uOFZpE9bAsgCJWUZx_571w
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 @@ -9,7 +9,7 @@ dependencies:
module:
- entity_reference_revisions
_core:
default_config_hash: ahiIf8mL1Cvo-3b4xbtntl38eYtquEjbnaiBkI5ljRM
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 @@ -6,7 +6,7 @@ dependencies:
- field.storage.paragraph.field_title
- paragraphs.paragraphs_type.contact_card_listing
_core:
default_config_hash: wVwE7xrXuQ3BymCdqpyrTEoV_pKubFHD709zQ7JDZW4
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 @@ -8,7 +8,7 @@ dependencies:
module:
- hdbt_admin_tools
_core:
default_config_hash: lvgcvPv34Bw-DXlz67PyI8wVfAGk6FiOnp-u0Ql35GU
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: 1 addition & 1 deletion conf/cmi/field.storage.paragraph.field_contact_card.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
config:
- paragraphs.paragraphs_type.contact_card_listing
_core:
default_config_hash: 9CXmH7Y-XH4RQUNfGNuKswYhJ9n4pf9SX1UcJAzV55o
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 @@ -9,7 +9,7 @@ dependencies:
config:
- paragraphs.paragraphs_type.contact_card
_core:
default_config_hash: 1H9u881LSxLCHsrduHm-5yTBSUFBF29lwiH_IjbeJBk
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 @@ -9,7 +9,7 @@ dependencies:
config:
- paragraphs.paragraphs_type.social_media_link
_core:
default_config_hash: 1xLQ-NmVVuQrMJICy3v3H1gDVe3t6nNY5sdEMlEYgoU
default_config_hash: '-njlxNwWIC8XUfPK115lFcUTt2_i0Lm6ldsKWrh6Ge8'
id: paragraph.field_social_media_link
field_name: field_social_media_link
entity_type: paragraph
Expand Down
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 361feed

Please sign in to comment.