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

As a content manager, I want the order of collections variations to determine the priority in which they're presented to the users in the matching segments

    Details

      Description

      Motivation

      See PTR-2036 - Make Personalized Variations predictable for Content Sets.

      Requirements

      • The order in the presentation of the variations on the Collection Page will be changed; the new created variations will be placed in the end of the list, so the "Anyone" variation won't be the last one until the user changes the order. The more higher the variation is placed on the list, the more priority it has (see LPS-101448).
      • always be in the last place (the hypothesis that we are assuming is that the more generic variations are created prior to the more specific ones). Example: Collection with 3 Personalized Variations (plus Anyone). The temporal order of creation of the PVs is: PV1, PV2, PV3. The order of the PVs on the side of the page would be:
        • PV3
        • PV2
        • PV1
        • Anyone
      • The priority of variations for users belonging to more than one segment will be the same featured on the list, that is: the highest placed variation will be prioritized over the next newer one, and so on.
        • When the setting Combine Assets from All Segments in Asset Publisher for Manual Collections is enabled (This setting was introduced in LPS-104108 and it's disabled by default. It's purpose is to allow a user to see the assets from all personalized variations it can belong to, instead of just the personalized variation with more priority. There's one setting for manual collections and another for dynamic collections. (You can find it in Control Panel > System Settings > Assets > Collections.), and -only for the case of manual collections,- we will sort first by variation priority and then by position (see https://issues.liferay.com/browse/PTR-2036 for details). This means that all assets included in the prioritized variation will be displayed in the first place, an then the assets included in the next variation, and so on. Assets won't be repeated, so in the case of an asset that is included in several variations, it will be displayed only once (in the most prioritized variation it is included). 
      • "Anyone" variation won't be never shown to users belonging to at least one segment.
      • We will add a help message informing about the prioritization: Create personalized variations of collections for different segments. For those users belonging to more than one segment, the variation displayed will be the one that is placed higher in the list. This message will show right below the PERSONALIZED VARIATIONS title, replacing the "No personalized variations yet" text when the first variation is created.

      Acceptance Criteria

      Note.- tested with Asset Publisher > Collections. Full test cases table should consider all these:

        Manual Collection Dynamic Collection Manual Collection + check enabled Dynamic Collection + check enabled
      Asset Publisher        
      Collection Display Fragment        

       

      • Given a user belonging to Segment 1
      • When there's a variation of a manual or dynamic collection targeting segment 1, and it is prioritized above the Anyone variation
      • Then the user belonging to that segment will see only the assets included in that variation

      • Given a user belonging to Segment 1 and Segment 2
      • When there's a variation of a manual or dynamic collection targeting segment 1 (variation 1), and another one targeting segment 2 (variation 2), and variation 1 is prioritized above variation 2
      • Then the user will see only the assets included in variation 1

      • Given a user belonging to Segment 1 and Segment 2, and the check Combine assets... enabled
      • When there's a variation of a manual or dynamic collection targeting segment 1 (variation 1), and another one targeting segment 2 (variation 2), and variation 1 is prioritized above variation 2
      • Then the user will see first the assets included in variation 1, and then the assets included in variation 2

      • Given a user belonging to Segment 1 and Segment 2, and the check Combine assets... enabled
      • When there's a variation of a manual or dynamic collection targeting segment 1 (variation 1), and another one targeting segment 2 (variation 2), and there's an asset included in the two variations
      • Then the repeated asset will be displayed only in the prioritized variation 

       --

      • Given the variation creation page 
      • Then the help text is the following: Create personalized variations of collections for different segments. For those users belonging to more than one segment, the variation displayed will be the one that is placed higher in the list.

      Acceptance Criteria

      Requirements Acceptance Criteria Test Strategy Covered by frontend test? (Yes/No) Covered by backend test?
      (Yes/No)**
      The new created variations will be placed in the end of the list, so the "Anyone" variation won't be the last one until the user changes the order. The more higher the variation is placed on the list, the more priority it has
      • Given a Segment 1
      • When the user creates a new variation
      • Then the new variation created is displayed at the bottom of the list
      Low     No
       
      • Given a user belonging to Segment 1
      • When there's a variation of a manual collection targeting segment 1, and it is prioritized above the Anyone variation
      • Then the user belonging to that segment will see only the assets included in that variation in Asset Publisher
      High    No
       
      • Given a user belonging to Segment 1
      • When there's a variation of a manual collection targeting segment 1, and it is prioritized above the Anyone variation
      • Then the user belonging to that segment will see only the assets included in that variation in Collection Display Fragment
      High   No 
       
      • Given a user belonging to Segment 1
      • When there's a variation of a dynamic collection targeting segment 1, and it is prioritized above the Anyone variation
      • Then the user belonging to that segment will see only the assets included in that variation in Asset Publisher
      High   No 
       
      • Given a user belonging to Segment 1
      • When there's a variation of a dynamic collection targeting segment 1, and it is prioritized above the Anyone variation
      • Then the user belonging to that segment will see only the assets included in that variation in Collection Display Fragment
      High   No 
       
      • Given a user belonging to Segment 1
      • When there's a variation of a manual collection targeting segment 1, and it is not prioritized above the Anyone variation
      • Then the user belonging to that segment will see only the assets included in 'Anyone' in Asset Publisher
      Medium    No
       
      • Given a user belonging to Segment 1
      • When there's a variation of a manual collection targeting segment 1, and it is not prioritized above the Anyone variation
      • Then the user belonging to that segment will see only the assets included in 'Anyone' in Collection Display Fragment
      Medium   No 
       
      • Given a user belonging to Segment 1
      • When there's a variation of a dynamic collection targeting segment 1, and it is not prioritized above the Anyone variation
      • Then the user belonging to that segment will see only the assets included in 'Anyone' in Asset Publisher
      Medium    No
       
      • Given a user belonging to Segment 1
      • When there's a variation of a dynamic collection targeting segment 1, and it is not prioritized above the Anyone variation
      • Then the user belonging to that segment will see only the assets included in 'Anyone' in Collection Display Fragment
      Medium    No
      The priority of variations for users belonging to more than one segment will be the same featured on the list, that is: the highest placed variation will be prioritized over the next newer one, and so on.
      • Given a user belonging to Segment 1 and Segment 2
      • When there's a variation of a manual collection targeting segment 2, and it is prioritized above the variation targeting segment 1
      • And both are prioritized above the anyone variation
      • Then the user will see only the assets included in the variation targeting segment 2 in Asset Publisher
      Medium    No
       
      • Given a user belonging to Segment 1 and Segment 2
      • When there's a variation of a manual collection targeting segment 2, and it is prioritized above the variation targeting segment 1
      • And both are prioritized above the anyone variation
      • Then the user will see only the assets included in the variation targeting segment 2 in Collection Display Fragment
      Medium   No 
       
      • Given a user belonging to Segment 1 and Segment 2
      • When there's a variation of a dynamic collection targeting segment 2, and it is prioritized above the variation targeting segment 1
      • And both are prioritized above the anyone variation
      • Then the user will see only the assets included in the variation targeting segment 2 in Asset Publisher
      Medium    No
       
      • Given a user belonging to Segment 1 and Segment 2
      • When there's a variation of a dynamic collection targeting segment 2, and it is prioritized above the variation targeting segment 1
      • And both are prioritized above the anyone variation
      • Then the user will see only the assets included in the variation targeting segment 2 in Collection Display Fragment
      Medium    No
       
      • Given a user belonging to Segment 1 and Segment 2
      • And the configuration to combine assets is enabled
      • When there's a variation of a manual collection targeting segment 1 and segment 2, and both are prioritized above the anyone variation
      • Then the user will see the assets included in both variations targeting segments in Asset Publisher
      Medium    No
       
      • Given a user belonging to Segment 1 and Segment 2
      • And the configuration to combine assets is enabled
      • When there's a variation of a manual collection targeting segment 1 and segment 2, and both are prioritized above the anyone variation
      • Then the user will see the assets included in both variations targeting segments in Collection Display Fragment
      Medium   No 
       
      • Given a user belonging to Segment 1 and Segment 2
      • And the configuration to combine assets is enabled
      • When there's a variation of a dynamic collection targeting segment 1 and segment 2, and both are prioritized above the anyone variation
      • Then the user will see the assets included in both variations targeting segments in Asset Publisher
      Medium   No 
       
      • Given a user belonging to Segment 1 and Segment 2
      • And the configuration to combine assets is enabled
      • When there's a variation of a dynamic collection targeting segment 1 and segment 2, and both are prioritized above the anyone variation
      • Then the user will see the assets included in both variations targeting segments in Collection Display Fragment
      Medium   No 
       
      • Given a user belonging to Segment 1 and Segment 2
      • And the configuration to combine assets is enabled
      • When there's a variation of a manual collection targeting segment 1 and segment 2, and both are prioritized above the anyone variation
      • And there is an asset present in both variations
      • Then the user will see the asset only once in Asset Publisher
      Medium    No
       
      • Given a user belonging to Segment 1 and Segment 2
      • And the configuration to combine assets is enabled
      • When there's a variation of a manual collection targeting segment 1 and segment 2, and both are prioritized above the anyone variation
      • And there is an asset present in both variations**
      • Then the user will see the asset only once in Collection Display Fragment
      Medium   No 
       
      • Given a user belonging to Segment 1 and Segment 2
      • And the configuration to combine assets is enabled
      • When there's a variation of a dynamic collection targeting segment 1 and segment 2, and both are prioritized above the anyone variation
      • And there is an asset present in both variations**
      • Then the user will see the asset only once in Asset Publisher
      Medium   No 
       
      • Given a user belonging to Segment 1 and Segment 2
      • And the configuration to combine assets is enabled
      • When there's a variation of a dynamic collection targeting segment 1 and segment 2, and both are prioritized above the anyone variation
      • And there is an asset present in both variations**
      • Then the user will see the asset only once in Collection Display Fragment
      Medium   No 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-qa Support QA
              Reporter:
              julia.molano Julia Molano
              Engineering Assignee:
              Yurena Cabrera
              Recent user:
              Rubén Heras
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package
                  Master