Skip to content

Commit

Permalink
Merge pull request #488 from City-of-Helsinki/UHF-X_configuration_fixes
Browse files Browse the repository at this point in the history
Removed instance specific configuration of districts field
  • Loading branch information
khalima authored Apr 4, 2023
2 parents 5a854d5 + 46ace19 commit 20a7e2a
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 73 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
label: 'Botteninnehåll'
label: Botteninnehåll
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ status: true
dependencies:
config:
- field.field.tpr_unit.tpr_unit.field_content
- field.field.tpr_unit.tpr_unit.field_districts
- field.field.tpr_unit.tpr_unit.field_lower_content
- field.field.tpr_unit.tpr_unit.field_metatags
- field.field.tpr_unit.tpr_unit.field_unit_type
Expand Down Expand Up @@ -120,16 +119,6 @@ content:
collapse_edit_all: collapse_edit_all
duplicate: duplicate
third_party_settings: { }
field_districts:
type: select2_entity_reference
weight: 29
region: content
settings:
width: 100%
autocomplete: false
match_operator: STARTS_WITH
match_limit: 10
third_party_settings: { }
field_lower_content:
type: paragraphs
weight: 28
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ status: true
dependencies:
config:
- field.field.tpr_unit.tpr_unit.field_content
- field.field.tpr_unit.tpr_unit.field_districts
- field.field.tpr_unit.tpr_unit.field_lower_content
- field.field.tpr_unit.tpr_unit.field_metatags
- field.field.tpr_unit.tpr_unit.field_unit_type
- responsive_image.styles.image__3_2
module:
- address
- entity_reference_revisions
Expand Down Expand Up @@ -214,7 +214,6 @@ content:
region: content
hidden:
created: true
field_districts: true
field_unit_type: true
hide_description: true
langcode: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ hidden:
description: true
email: true
field_content: true
field_districts: true
field_lower_content: true
field_metatags: true
field_unit_type: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ dependencies:
config:
- core.entity_view_mode.tpr_unit.teaser
- field.field.tpr_unit.tpr_unit.field_content
- field.field.tpr_unit.tpr_unit.field_districts
- field.field.tpr_unit.tpr_unit.field_lower_content
- field.field.tpr_unit.tpr_unit.field_metatags
- field.field.tpr_unit.tpr_unit.field_unit_type
- responsive_image.styles.image__3_2
module:
- address
- helfi_tpr
Expand Down Expand Up @@ -69,7 +69,6 @@ hidden:
description: true
email: true
field_content: true
field_districts: true
field_lower_content: true
field_metatags: true
field_unit_type: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ dependencies:
config:
- core.entity_view_mode.tpr_unit.teaser_with_image
- field.field.tpr_unit.tpr_unit.field_content
- field.field.tpr_unit.tpr_unit.field_districts
- field.field.tpr_unit.tpr_unit.field_lower_content
- field.field.tpr_unit.tpr_unit.field_metatags
- field.field.tpr_unit.tpr_unit.field_unit_type
- responsive_image.styles.image__3_2
module:
- address
- helfi_tpr
Expand Down Expand Up @@ -70,7 +70,6 @@ hidden:
description: true
email: true
field_content: true
field_districts: true
field_lower_content: true
field_metatags: true
field_unit_type: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ dependencies:
config:
- core.entity_view_mode.tpr_unit.wide_teaser
- field.field.tpr_unit.tpr_unit.field_content
- field.field.tpr_unit.tpr_unit.field_districts
- field.field.tpr_unit.tpr_unit.field_lower_content
- field.field.tpr_unit.tpr_unit.field_metatags
- field.field.tpr_unit.tpr_unit.field_unit_type
- responsive_image.styles.image__3_2
module:
- address
- helfi_tpr
Expand Down Expand Up @@ -85,7 +85,6 @@ hidden:
description: true
email: true
field_content: true
field_districts: true
field_lower_content: true
field_metatags: true
field_unit_type: true
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ status: true
dependencies:
config:
- core.entity_view_mode.tpr_service.teaser
- core.entity_view_mode.tpr_service.teaser_search_result
module:
- helfi_tpr
- text
- user
id: service_list
label: 'Service list'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ display:
filter_groups:
operator: AND
groups:
1: AND
- AND
style:
type: table
options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ display:
filter_groups:
operator: AND
groups:
1: AND
- AND
style:
type: table
options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,28 +80,28 @@ display:
clear_on_exposed: true
force_selection_info: false
selected_actions:
0:
-
action_id: 'entity:break_lock:tpr_unit'
preconfiguration:
add_confirmation: false
label_override: 'Break lock'
1:
-
action_id: 'remote_entity:migration_update:tpr_unit'
preconfiguration:
add_confirmation: false
label_override: Update
2:
-
action_id: views_bulk_edit
preconfiguration:
add_confirmation: false
label_override: 'Modify values'
get_bundles_from_results: true
4:
-
action_id: 'entity:unpublish_action:tpr_unit'
preconfiguration:
add_confirmation: false
label_override: 'Unpublish unit'
5:
-
action_id: 'entity:publish_action:tpr_unit'
preconfiguration:
add_confirmation: false
Expand Down
8 changes: 8 additions & 0 deletions modules/helfi_tpr_config/helfi_tpr_config.install
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,11 @@ function helfi_tpr_config_update_9035(): void {
\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_tpr_config');
}

/**
* Remove SOTE specific configuration. Double-check configuration updates.
*/
function helfi_tpr_config_update_9036(): void {
\Drupal::service('helfi_platform_config.config_update_helper')
->update('helfi_tpr_config');
}

0 comments on commit 20a7e2a

Please sign in to comment.