Skip to content
Snippets Groups Projects
Commit 6325cd8f authored by Claudiu Cristea's avatar Claudiu Cristea
Browse files

Merge branch 'ISAICP-8627' into 'develop'

ISAICP-8627: Issue with the Layout Editor’s “Content listing” component.

See merge request digit/digit-joinup-dev!1351
parents c099207c f74be545
No related branches found
No related tags found
1 merge request!172Release v1.106.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: { }
...@@ -22,9 +22,6 @@ default_value: ...@@ -22,9 +22,6 @@ default_value:
content_listing_type: content_listing_type:
weight: 0 weight: 0
region: top region: top
content_listing_status:
weight: 1
region: top
enabled: 1 enabled: 1
show_archived: unarchived show_archived: unarchived
query_presets: '' query_presets: ''
......
...@@ -65,18 +65,13 @@ Feature: Archived content on content listings - groups and paragraphs. ...@@ -65,18 +65,13 @@ Feature: Archived content on content listings - groups and paragraphs.
@javascript @javascript
Scenario: Content listing paragraph can control visibility of archived items. Scenario: Content listing paragraph can control visibility of archived items.
And custom_page content: And custom_page content:
| title | collection | state | | title | collection | state | topic |
| Some page | Some collection | published | | Some page | Some collection | published | Supplier exchange |
| Poly page | Some collection | published |
And I append "layout" to "field_paragraphs_body" field in "node" entity with following "Some page" title: 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:{}} | | 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 When I am logged in as a moderator
And I go to the edit form of the "Some page" "custom page" 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 "Choose component"
And I click "Content listing" And I click "Content listing"
And I fill in "Query presets" with "entity_bundle|news" And I fill in "Query presets" with "entity_bundle|news"
...@@ -87,22 +82,7 @@ Feature: Archived content on content listings - groups and paragraphs. ...@@ -87,22 +82,7 @@ Feature: Archived content on content listings - groups and paragraphs.
And I should see the "Published news" tile And I should see the "Published news" tile
But I should not see the "Archived news" tile But I should not see the "Archived news" tile
When I go to the edit form of the "Poly page" "custom page" When I go to the edit form of the "Some 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
Then I "edit" from the "Custom page body" field the child 1 paragraph of 1 layout 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 select "Archived" from "Show content" in the "Modal content" region
And I press "Save" in the "Modal buttons" region And I press "Save" in the "Modal buttons" region
...@@ -110,37 +90,22 @@ Feature: Archived content on content listings - groups and paragraphs. ...@@ -110,37 +90,22 @@ Feature: Archived content on content listings - groups and paragraphs.
Then I should see the heading "Some page" Then I should see the heading "Some page"
And I should see the "Archived news" tile And I should see the "Archived news" tile
But I should not see the "Published 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 When I go to the edit form of the "Some page" "custom page"
Then I open the header local tasks menu
And I click "Edit" in the "Entity actions" region
Then I "edit" from the "Custom page body" field the child 1 paragraph of 1 layout 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 select "All" from "Show content" in the "Modal content" region
And I press "Save" in the "Modal buttons" region And I press "Save" in the "Modal buttons" region
And I press "Update" And I press "Update"
Then I should see the heading "Some page" 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 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 When I go to the edit form of the "Some page" "custom page"
Then I open the header local tasks menu
And I click "Edit" in the "Entity actions" region
Then I "edit" from the "Custom page body" field the child 1 paragraph of 1 layout 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 select "Unarchived" from "Show content" in the "Modal content" region
And I press "Save" in the "Modal buttons" region And I press "Save" in the "Modal buttons" region
And I press "Update" And I press "Update"
Then I should see the heading "Some page" 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 not see the "Archived news" tile
And I should see the "Published news" tile And I should see the "Published news" tile
......
...@@ -121,7 +121,6 @@ function search_api_field_entity_view(array &$build, EntityInterface $entity, En ...@@ -121,7 +121,6 @@ function search_api_field_entity_view(array &$build, EntityInterface $entity, En
if ($display->getComponent($name)) { if ($display->getComponent($name)) {
if ( if (
!in_array($facet_name, [ !in_array($facet_name, [
'content_listing_status',
'field_collection_content_status', 'field_collection_content_status',
'field_is_content_status', 'field_is_content_status',
]) ])
......
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