Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-124960

Different conditions from the same filter combined by AND (only for categories and tags)

    Details

      Description

      Motivation

      Currently, when filtering by two different conditions coming from the same filter (i.e., two categories), these conditions are combined by an OR operator, so results show all assets containing one or another condition. After a test run with users, we've confirmed that they're expecting the filter to be more restrictive and only show the results matching both conditions. This solution will provide also more coherence in filter combination, as when mixing conditions from different filters they're currently being combined with an AND.

      Technical Requirements

      • When selecting two or more conditions within the category and tag filters, results will be restricted to assets accomplishing all of them (AND operator)
      • When selecting two or more conditions within the author and subtype filters, as they are multi-selectable but single per asset, results will give back contents accomplishing at least one of the conditions (OR operator)
      • Conditions from one filter will always be combined with an AND operator with those of other filters, as it currently happens

      Acceptance Criteria

      Given a Web Content 1 that has Category 1 and Category 2. And Web Content 2 _ that has only _ Category 1
      When a user filter by Category 1 and Category 2 
      Then they will see only Web Content 1 in the list

      Given a Web Content 1 that has Category 1 and Category 2. And Web Content 2 _ that has only _ Category 1
      When a user filter by Category 1 
      Then they will see Web Content 1 and Web Content 2 in the list

      Given a Web Content 1 of type Subtype 1  And __ Web Content 2 _ of type _Subtype 2.
      When a user filter by Subtype 1 and Subtype 2 
      Then they will see Web Content 1 and Web Content 2 in the list

      Given a Web Content 1 of type Type 1.
      When a user filter by Subtype 1
      Then they will see only Web Content 1 in the list
      NOTE: This was already covered in LPS-114984, isn't it?

      Given a Web Content 1 that has Tag 1 and Tag 2. And Web Content 2 _ that has only _ Tag 1
      When a user filter by Tag 1 and Tag 2 
      Then they will see only Web Content 1 in the list

      Given a Web Content 1 that has Tag 1 and Tag 2. And Web Content 2 _ that has only _ Tag 1
      When a user filter by Tag 1 
      Then they will see Web Content 1 and Web Content 2 in the list

      Given a Web Content 1 that is authored by User 1 And __ Web Content 2 _ authored by _User 2.
      When a user filter by User 1 and User 2 
      Then they will see Web Content 1 and Web Content 2 in the list

      Given a Web Content 1 that is authored by User 1
      When a user filter by User 1
      Then they will see Web Content 1 in the list
      NOTE: This was already covered in LPS-114985, isn't it?

      Given a Web Content 1 that is authored by User 1 and has Category 1 and Category 2, a_nd _Web Content 2 authored by User 2 and has Category 1 .
      When a user filter by User 1 and Category 1 and Category 2
      Then they will see only Web Content 1 in the list

      Given a Web Content 1 that is authored by User 1 and has Category 1 and Category 2, a_nd _Web Content 2 authored by User 2 and has Category 1.
      When a user filter by User 1 and Category 1
      Then they will see only Web Content 1 in the list

       h1. Test Scenarios

      AC ID Test Strategy Test Scenarios Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd? (unit or integration) Poshi?
      01 Low When there's a WebContent1 that has Category1 and Category2 and WebContent2 that has Category1, and the user filters by Category1 and Category2, only the WebContent1 is shown in the list NO  NO  
      02 Low When there's a WebContent1 that has Category1 and Category2 and WebContent2 that has Category1, and the user filters by Category1, both web content are shown in the list NO  NO   
      03 Medium When there's a WebContent1 of type Subtype1 and WebContent2 of type Subtype2, and the user filters by Subtype1 and Subtype2, both web content are shown in the list NO  NO   
      04 High When there's a WebContent1 that has Tag1 and Tag2 and WebContent2 that has Tag1, and the user filters by Tag1 and Tag2, only the WebContent1 is shown in the list NO  NO   
      05 Low When there's a WebContent1 that has Tag1 and Tag2 and WebContent2 that has Tag1, and the user filters by Tag1, both web content are shown in the list NO  NO   
      06 Low When there's a WebContent1 authored by Author1 and WebContent2 authored by Author2, and the user filters by Author1 and Author2, both web content are shown in the list NO  NO   
      07 Medium When there's a WebContent1 authored by Author1 and has Category1 and Category2 and a WebContent2 authored by Author2 and has Category1, and the user filters by Author1 and Category1 and Category2, only the WebContent1 is shown in the list NO  NO   
      08 Medium When there's a WebContent1 authored by Author1 and has Category1 and Category2 and a WebContent2 authored by Author2 and has Category1, and the user filters by Author1 and Category1, only the WebContent1 is shown in the list NO  NO   
      09 Medium When there's a WebContent1 authored by Author1 and has Category1 and Category2 and a WebContent2 authored by Author2 and has Category1, and the user filters by Author1, Author2 and Category1, both web content are shown in the list NO  NO   
      - Medium When there's a WebContent1 authored by Author1 and has Category1 and Category2 and a WebContent2 authored by Author2 and has Category1, and the user filters by Author1, Author2 and Category2, none of the content are shown in the list This test makes non sense since the filter by author is an OR, not AND NO   NO  
      10 High When there's a WebContent1 of type Subtype1 that has Category1 and Category2 and a WebContent2 of Subtype2 that has Category1, and the user filters by Subtype1 and Category1, only the WebContent1 is shown in the list NO  NO   
      11 Medium When there's a WebContent1 of type Subtype1 that has Category1 and Category2 and a WebContent2 of Subtype2 that has Category1, and the user filters by Subtype1, Subtype2 and Category1, both web content are shown in the list  NO  NO  
      - Medium When there's a WebContent1 of type Subtype1 that has Category1 and Category2 and a WebContent2 of Subtype2 that has Category1, and the user filters by Subtype1, Subtype2 and Category2, none of the web content are shown in the list This test makes non sense since the filter by Subtype is an OR, not AND NO   NO  
      12 Medium When there's a WebContent1 that has Tag1, Category1 and Category2 and a WebContent2 that has Tag2 and Category1, and the user filters by Tag1 and Category1, both web content are shown in the list NO  NO   
      - Medium When there's a WebContent1 that has Tag1, Category1 and Category2 and a WebContent2 that has Tag2 and Category1, and the user filters by Tag1, Tag2 and Category1, both web content are shown in the list NO   NO  
      - Medium When there's a WebContent1 that has Tag1, Category1 and Category2 and a WebContent2 that has Tag2 and Category1, and the user filters by Tag1, Tag2 and Category2, none of the web content are shown in the list NO  NO   

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-qa Support QA
              Reporter:
              julia.molano Julia Molano
              Recent user:
              Julia Molano
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master