Skip to content

Commit

Permalink
Update configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
hel-platta-automation authored and github-actions[bot] committed May 20, 2024
1 parent b276ed7 commit be3efab
Show file tree
Hide file tree
Showing 34 changed files with 107 additions and 261 deletions.
66 changes: 33 additions & 33 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 @@ -2,8 +2,6 @@ uuid: b95230b8-fb95-4373-b877-6117cf4d0f46
langcode: en
status: true
dependencies:
config:
- field.field.helfi_news_groups.helfi_news_groups.field_frontpage_term_id
module:
- external_entities
_core:
Expand All @@ -13,14 +11,6 @@ targetEntityType: helfi_news_groups
bundle: helfi_news_groups
mode: default
content:
field_frontpage_term_id:
type: string_textfield
weight: -4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
title:
type: string_textfield
weight: -5
Expand All @@ -29,4 +19,5 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
hidden: { }
hidden:
tid: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ uuid: d13089ef-9704-4770-90a9-fd9fedc50405
langcode: en
status: true
dependencies:
config:
- field.field.helfi_news_neighbourhoods.helfi_news_neighbourhoods.field_frontpage_term_id
module:
- external_entities
_core:
Expand All @@ -13,14 +11,6 @@ targetEntityType: helfi_news_neighbourhoods
bundle: helfi_news_neighbourhoods
mode: default
content:
field_frontpage_term_id:
type: string_textfield
weight: -4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
title:
type: string_textfield
weight: -5
Expand All @@ -29,4 +19,5 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
hidden: { }
hidden:
tid: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ uuid: 972acdae-8e71-4d12-a335-bc91828f4851
langcode: en
status: true
dependencies:
config:
- field.field.helfi_news_tags.helfi_news_tags.field_frontpage_term_id
module:
- external_entities
_core:
Expand All @@ -13,14 +11,6 @@ targetEntityType: helfi_news_tags
bundle: helfi_news_tags
mode: default
content:
field_frontpage_term_id:
type: string_textfield
weight: -4
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
title:
type: string_textfield
weight: -5
Expand All @@ -29,4 +19,5 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
hidden: { }
hidden:
tid: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ uuid: 045f335b-7059-4d6a-9240-43909f3c1704
langcode: en
status: true
dependencies:
config:
- field.field.helfi_news_groups.helfi_news_groups.field_frontpage_term_id
module:
- external_entities
_core:
Expand All @@ -22,5 +20,5 @@ content:
weight: 0
region: content
hidden:
field_frontpage_term_id: true
search_api_excerpt: true
tid: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ uuid: f8d0f0da-4aff-436c-a4b8-4df8c6ee82f8
langcode: en
status: true
dependencies:
config:
- field.field.helfi_news_neighbourhoods.helfi_news_neighbourhoods.field_frontpage_term_id
module:
- external_entities
_core:
Expand All @@ -22,5 +20,5 @@ content:
weight: 0
region: content
hidden:
field_frontpage_term_id: true
search_api_excerpt: true
tid: true
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ uuid: 7060dc64-5f95-4fa5-8046-bf0ad5e265c4
langcode: en
status: true
dependencies:
config:
- field.field.helfi_news_tags.helfi_news_tags.field_frontpage_term_id
module:
- external_entities
_core:
Expand All @@ -22,5 +20,5 @@ content:
weight: 0
region: content
hidden:
field_frontpage_term_id: true
search_api_excerpt: true
tid: true
31 changes: 17 additions & 14 deletions conf/cmi/external_entities.external_entity_type.helfi_news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,40 @@ langcode: en
status: true
dependencies: { }
_core:
default_config_hash: 3cezkDpNnpY89NCorCj-4mBIeItsVAEG803y-phaZTM
default_config_hash: daIUGTR2nijXztOFPGoKZP9hdqNwUXU1g1Iksa29Rxo
id: helfi_news
label: 'Helfi: News'
label_plural: 'Helfi: News'
description: ''
generate_aliases: false
read_only: true
generate_aliases: null
field_mapper_id: jsonpath
field_mapper_config:
field_mappings:
id:
value: $.id
value: '$._source.uuid_langcode[0]'
uuid:
value: $.id
value: '$._source.uuid[0]'
title:
value: "$.attributes['title']"
main_image:
uri: "$.relationships['main_image']['data']['relationships']['media_image']['data']['attributes']['uri']['url']"
title: "$.relationships['main_image']['data']['relationships']['media_image']['data']['meta']['alt']"
value: '$._source.title[0]'
tags_uuid:
value: '$._source.news_tags_uuid[*]'
tags:
value: "$.relationships['tags']['data'][*]['attributes']['name']"
value: '$._source.field_news_item_tags[*]'
groups:
value: "$.relationships['groups']['data'][*]['attributes']['name']"
value: '$._source.field_news_groups[*]'
groups_uuid:
value: '$._source.news_groups_uuid[*]'
neighbourhoods:
value: "$.relationships['neighbourhoods']['data'][*]['attributes']['name']"
value: '$._source.field_news_neighbourhoods[*]'
neighbourhoods_uuid:
value: '$._source.neighbourhoods_uuid[*]'
node_url:
value: "$.attributes['path']['alias']"
value: '$._source.url[0]'
published_at:
value: "$.attributes['published_at']"
value: '$._source.published_at[0]'
short_title:
value: "$.attributes['short_title']"
value: '$._source.short_title[0]'
storage_client_id: helfi_news
storage_client_config: { }
persistent_cache_max_age: 1800
Expand Down
Loading

0 comments on commit be3efab

Please sign in to comment.