Skip to content
Snippets Groups Projects
Commit 5cce060a authored by sv's avatar sv Committed by Taras Kruts
Browse files

Issue #3310800 by SV: Switch to language_with_fallback filter

parent 7cde0952
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,10 @@ field_settings:
dependencies:
module:
- group
language_with_fallback:
label: 'Language (with fallback)'
property_path: language_with_fallback
type: string
name:
label: 'Owner » User » Name'
datasource_id: 'entity:profile'
......
......@@ -39,6 +39,10 @@ field_settings:
dependencies:
config:
- field.storage.node.field_event_date_end
language_with_fallback:
label: 'Language (with fallback)'
property_path: language_with_fallback
type: string
node_grants:
label: 'Node access information'
property_path: search_api_node_grants
......@@ -114,6 +118,7 @@ processor_settings:
plugin_id: ignorecase
all_fields: true
fields:
- language_with_fallback
- rendered_item
- title
- type
......@@ -193,6 +198,7 @@ processor_settings:
plugin_id: transliteration
all_fields: true
fields:
- language_with_fallback
- rendered_item
- title
- type
......
......@@ -39,6 +39,10 @@ field_settings:
dependencies:
module:
- group
language_with_fallback:
label: 'Language (with fallback)'
property_path: language_with_fallback
type: string
name:
label: 'Group creator » User » Name'
datasource_id: 'entity:group'
......@@ -83,6 +87,7 @@ processor_settings:
fields:
- field_group_description
- label
- language_with_fallback
- name
- rendered_item
- type
......@@ -189,6 +194,7 @@ processor_settings:
fields:
- field_group_description
- label
- language_with_fallback
- name
- rendered_item
- type
......
......@@ -153,17 +153,17 @@ display:
link_to_item: false
multi_separator: ', '
filters:
search_api_language:
id: search_api_language
language_with_fallback:
id: language_with_fallback
table: search_api_index_social_all
field: search_api_language
field: language_with_fallback
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api_language
operator: in
value:
'***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***'
und: und
group: 1
exposed: false
expose:
......@@ -193,7 +193,6 @@ display:
default_group: All
default_group_multiple: { }
group_items: { }
plugin_id: search_api_language
sorts:
search_api_relevance:
id: search_api_relevance
......
......@@ -280,13 +280,14 @@ display:
min: ''
max: ''
plugin_id: search_api_date
search_api_language:
id: search_api_language
language_with_fallback:
id: language_with_fallback
table: search_api_index_social_content
field: search_api_language
field: language_with_fallback
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api_language
operator: in
value:
'***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***'
......@@ -299,7 +300,7 @@ display:
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
operator_list: { }
identifier: ''
required: false
remember: false
......@@ -317,9 +318,8 @@ display:
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
plugin_id: search_api_language
default_group_multiple: { }
group_items: { }
sorts:
search_api_relevance:
id: search_api_relevance
......
......@@ -172,13 +172,14 @@ display:
group_items: { }
reduce_duplicates: false
plugin_id: search_api_options
search_api_language:
id: search_api_language
language_with_fallback:
id: language_with_fallback
table: search_api_index_social_groups
field: search_api_language
field: language_with_fallback
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api_language
operator: in
value:
'***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***'
......@@ -191,7 +192,7 @@ display:
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
operator_list: { }
identifier: ''
required: false
remember: false
......@@ -209,9 +210,8 @@ display:
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
plugin_id: search_api_language
default_group_multiple: { }
group_items: { }
sorts:
search_api_relevance:
id: search_api_relevance
......
search_api.index.social_all:
expected_config: { }
update_actions:
add:
field_settings:
language_with_fallback:
label: 'Language (with fallback)'
property_path: language_with_fallback
type: string
search_api.index.social_content:
expected_config: { }
update_actions:
add:
field_settings:
language_with_fallback:
label: 'Language (with fallback)'
property_path: language_with_fallback
type: string
change:
processor_settings:
ignorecase:
fields:
- language_with_fallback
- rendered_item
- title
- type
transliteration:
plugin_id: transliteration
all_fields: true
fields:
- language_with_fallback
- rendered_item
- title
- type
search_api.index.social_groups:
expected_config: { }
update_actions:
add:
field_settings:
language_with_fallback:
label: 'Language (with fallback)'
property_path: language_with_fallback
type: string
change:
processor_settings:
ignorecase:
fields:
- field_group_description
- label
- language_with_fallback
- name
- rendered_item
- type
transliteration:
fields:
- field_group_description
- label
- language_with_fallback
- name
- rendered_item
- type
views.view.search_groups:
expected_config: { }
update_actions:
delete:
display:
default:
display_options:
filters:
search_api_language:
add:
display:
default:
display_options:
filters:
language_with_fallback:
id: language_with_fallback
table: search_api_index_social_groups
field: language_with_fallback
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api_language
operator: in
value:
'***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***'
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
views.view.search_all:
expected_config: { }
update_actions:
delete:
display:
default:
display_options:
filters:
search_api_language:
add:
display:
default:
display_options:
filters:
language_with_fallback:
id: language_with_fallback
table: search_api_index_social_all
field: language_with_fallback
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api_language
operator: in
value:
'***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***'
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
views.view.search_content:
expected_config: { }
update_actions:
delete:
display:
default:
display_options:
filters:
search_api_language:
add:
display:
default:
display_options:
filters:
language_with_fallback:
id: language_with_fallback
table: search_api_index_social_content
field: language_with_fallback
relationship: none
group_type: group
admin_label: ''
plugin_id: search_api_language
operator: in
value:
'***LANGUAGE_language_interface***': '***LANGUAGE_language_interface***'
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
......@@ -277,3 +277,17 @@ function social_search_update_11401(): string {
// Output logged messages to related channel of update execution.
return $updateHelper->logger()->output();
}
/**
* Replace search_api_language with language_with_fallback filter in the search.
*/
function social_search_update_11402(): string {
/** @var \Drupal\update_helper\Updater $updateHelper */
$updateHelper = \Drupal::service('update_helper.updater');
// Execute configuration update definitions with logging of success.
$updateHelper->executeUpdate('social_search', __FUNCTION__);
// Output logged messages to related channel of update execution.
return $updateHelper->logger()->output();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment