diff --git a/config/sync/facets.facet.content_listing_status.yml b/config/sync/facets.facet.content_listing_status.yml deleted file mode 100644 index 218912d61eb66c1500972ffe16f5bfe2ffc82516..0000000000000000000000000000000000000000 --- a/config/sync/facets.facet.content_listing_status.yml +++ /dev/null @@ -1,66 +0,0 @@ -uuid: 1db850b1-f7c4-4678-8d30-75d9b8b2bb78 -langcode: en -status: true -dependencies: { } -id: content_listing_status -name: Status -weight: 0 -min_count: 0 -missing: false -missing_label: others -url_alias: status -facet_source_id: 'search_api_field:paragraph.content_listing.content_listing' -field_identifier: entity_status -query_operator: or -hard_limit: 0 -exclude: false -use_hierarchy: false -keep_hierarchy_parents_active: false -hierarchy: - type: taxonomy - config: { } -expand_hierarchy: false -enable_parent_when_child_gets_disabled: true -widget: - type: checkbox - config: - show_numbers: false - arbitrary_facet_plugin: _none - soft_limit: -1 - show_reset_link: false - reset_text: 'Show all' - hide_reset_when_no_selection: false - soft_limit_settings: - show_less_label: 'Show less' - show_more_label: 'Show more' -empty_behavior: - behavior: none -only_visible_when_facet_source_is_visible: false -show_only_one_result: false -show_title: false -processor_configs: - exclude_specified_items: - processor_id: exclude_specified_items - weights: - build: 50 - settings: - exclude: archived - regex: false - invert: true - hierarchy_processor: - processor_id: hierarchy_processor - weights: - build: 100 - settings: { } - replace: - processor_id: replace - weights: - post_query: 50 - settings: - replacements: 'archived|Show archived' - url_processor_handler: - processor_id: url_processor_handler - weights: - pre_query: 50 - build: 15 - settings: { } diff --git a/config/sync/field.field.paragraph.content_listing.content_listing.yml b/config/sync/field.field.paragraph.content_listing.content_listing.yml index 44926844a42ba8c81a96d1d6d333a559f74d0179..9713cb8e6589003e5554e43e897d7389315d62b3 100644 --- a/config/sync/field.field.paragraph.content_listing.content_listing.yml +++ b/config/sync/field.field.paragraph.content_listing.content_listing.yml @@ -22,9 +22,6 @@ default_value: content_listing_type: weight: 0 region: top - content_listing_status: - weight: 1 - region: top enabled: 1 show_archived: unarchived query_presets: '' diff --git a/tests/features/community_content/archive.listings.feature b/tests/features/community_content/archive.listings.feature index d0c6472ab18b54588a2c01a33d9d3766fee6497e..89231cccba2a6f6d2be932b489ea41c4cadc15ba 100644 --- a/tests/features/community_content/archive.listings.feature +++ b/tests/features/community_content/archive.listings.feature @@ -65,18 +65,13 @@ Feature: Archived content on content listings - groups and paragraphs. @javascript Scenario: Content listing paragraph can control visibility of archived items. And custom_page content: - | title | collection | state | - | Some page | Some collection | published | - | Poly page | Some collection | published | + | title | collection | state | topic | + | Some page | Some collection | published | Supplier exchange | And I append "layout" to "field_paragraphs_body" field in "node" entity with following "Some page" title: | behavior_settings | a:3:{s:17:"layout_paragraphs";a:4:{s:6:"layout";s:13:"layout_onecol";s:6:"config";a:1:{s:5:"label";s:0:"";}s:11:"parent_uuid";N;s:6:"region";N;}s:16:"background_theme";a:0:{}s:11:"extra_class";a:0:{}} | - And I append "layout" to "field_paragraphs_body" field in "node" entity with following "Poly page" title: - | behavior_settings | a:3:{s:17:"layout_paragraphs";a:4:{s:6:"layout";s:13:"layout_onecol";s:6:"config";a:1:{s:5:"label";s:0:"";}s:11:"parent_uuid";N;s:6:"region";N;}s:16:"background_theme";a:0:{}s:11:"extra_class";a:0:{}} | When I am logged in as a moderator And I go to the edit form of the "Some page" "custom page" - And I select "HR" from "Topic" - And I additionally select "Supplier exchange" from "Topic" And I click "Choose component" And I click "Content listing" And I fill in "Query presets" with "entity_bundle|news" @@ -87,22 +82,7 @@ Feature: Archived content on content listings - groups and paragraphs. And I should see the "Published news" tile But I should not see the "Archived news" tile - When I go to the edit form of the "Poly page" "custom page" - And I select "Supplier exchange" from "Topic" - And I click "Choose component" - And I click "Content listing" - And I select "All" from "Show content" in the "Modal content" region - And I fill in "Query presets" with "entity_bundle|news" - And I press "Save" in the "Modal buttons" region - And I press "Update" - - When I go to the "Poly page" custom page - Then I should see the heading "Poly page" - And I should see the text "Show archived" - - When I go to the "Some page" custom page - Then I open the header local tasks menu - And I click "Edit" in the "Entity actions" region + When I go to the edit form of the "Some page" "custom page" Then I "edit" from the "Custom page body" field the child 1 paragraph of 1 layout And I select "Archived" from "Show content" in the "Modal content" region And I press "Save" in the "Modal buttons" region @@ -110,37 +90,22 @@ Feature: Archived content on content listings - groups and paragraphs. Then I should see the heading "Some page" And I should see the "Archived news" tile But I should not see the "Published news" tile - Then I should see the heading "Some page" - And I should not see the text "Show archived" - And I should see the "Archived news" tile - And I should not see the "Published news" tile - When I go to the "Some page" custom page - Then I open the header local tasks menu - And I click "Edit" in the "Entity actions" region + When I go to the edit form of the "Some page" "custom page" Then I "edit" from the "Custom page body" field the child 1 paragraph of 1 layout And I select "All" from "Show content" in the "Modal content" region And I press "Save" in the "Modal buttons" region And I press "Update" Then I should see the heading "Some page" - #Then I should see the following facet items "News, Show archived" in this order - And I should see the text "Show archived" - And I should not see the "Archived news" tile - And I should see the "Published news" tile - - When I go to "/collection/some-collection/some-page?f[0]=status%3Aarchived" And I should see the "Archived news" tile - And I should not see the "Published news" tile + And I should see the "Published news" tile - When I go to the "Some page" custom page - Then I open the header local tasks menu - And I click "Edit" in the "Entity actions" region + When I go to the edit form of the "Some page" "custom page" Then I "edit" from the "Custom page body" field the child 1 paragraph of 1 layout And I select "Unarchived" from "Show content" in the "Modal content" region And I press "Save" in the "Modal buttons" region And I press "Update" Then I should see the heading "Some page" - And I should not see the text "Show archived" And I should not see the "Archived news" tile And I should see the "Published news" tile diff --git a/web/modules/custom/search_api_field/search_api_field.module b/web/modules/custom/search_api_field/search_api_field.module index bea6f77396b5e37d142a5d9c19c64735dd7c32ed..3adad7e1cb716e3eb354509bc98c9de695965991 100644 --- a/web/modules/custom/search_api_field/search_api_field.module +++ b/web/modules/custom/search_api_field/search_api_field.module @@ -121,7 +121,6 @@ function search_api_field_entity_view(array &$build, EntityInterface $entity, En if ($display->getComponent($name)) { if ( !in_array($facet_name, [ - 'content_listing_status', 'field_collection_content_status', 'field_is_content_status', ])