Details
-
Story
-
Status: Closed
-
Minor
-
Resolution: Completed
-
None
-
TANGO | #69 DEV | Oct29-Nov19, TANGO | #70 DEV | Nov19-Dec10, TANGO | #71 DEV | Dec10-Jan14, TANGO | #72 DEV | Jan14-Feb04, TANGO | #73 DEV | Feb04-Feb25
Description
Background
Collections are sets of content items that you can use to group and filter information. You can create Personalized Variations of a Collection in order to display different sets of content to different subsets of users. A Collection can have several Variations. Each Variation is associated to one segment. There is a default Variation called "Anyone" which encompasses all users that do not belong to any specified Variation.
For more information about Collections see: About Collections and Collection Pages
For more information about Personalized Variations see: Personalizing Collections
Motivation
See PTR-2036 - Make Personalized Variations predictable for Content Sets.
With the newly added capabilities to order Variations (LPS-101448) and Combine Assets for All Segments (LPS-108368), we must now ensure that assets in the Asset Publisher and Collection Display Fragment are displayed accurately, according to their Variation.
Requirements
- Variations will be prioritize from the top of the list to the bottom (Variations at the top will have the highest priority, Variations at the bottom will have the lowest).
- Any Variation below the default "Anyone" will not be considered.
- When a user belongs to multiple segments and the "Combine Assets" configuration is disabled:
- they will only see assets associated with the highest priority variation they belong to.
- this applies to both Manual and Dynamic Collections.
- they will only see assets associated with the highest priority variation they belong to.
- When a user belongs to multiple segments and the "Combine Assets" configuration is enabled for a Dynamic Collection:
- they will see all assets associated with all segments they belong to - except those belonging to the "Anyone" Variation.
- they will not see any duplicated assets (for example: if an asset exists in multiple segments that the user belongs to, they will only see that asset once).
- the assets shown to the user will be ordered according to:
- The asset priority (different from the variation priority)
- The creationDate of the asset
- Note: Originally we had planned on ordering the assets by the priority of the variation they belong to (similarly to how Manual Collections are ordered), however we ran into technical limitations which led to this ordering. For more details see
LPS-147233.
- When a user belongs to multiple segments and the "Combine Assets" configuration is enabled for a Manual Collection:
- they will see all assets associated with all segments they belong to - except those belonging to the "Anyone" Variation.
- they will not see any duplicated assets (for example: if an asset exists in multiple segments that the user belongs to, they will only see that asset once).
- the assets shown to the user will be ordered according to:
- The priority of the Variation
- The priority of the asset established in the Variation
- When a user does not belong to any segment, they will see assets associated with the "Anyone" Variation.
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 (seeLPS-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:PV3PV2PV1Anyone
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 inwe 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).--LPS-108368and it's disabled by default. Its 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,
"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 pageThen 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 |
|
Low | No | No |
|
High | No | No | |
|
High | No | No | |
|
High | No | No | |
|
High | No | No | |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | 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. |
|
Medium | No | No |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | No | |
|
Medium | No | No |
Attachments
Issue Links
- causes
-
LPS-147235 Anyone collection is not handle properly in Content Sets
- Closed
-
LPS-150725 All Collections are mixed if the setting to "Combine Assets from All Segments in Asset Publisher for Dynamic Collections" is enabled
- Closed
- fixes
-
LPS-122636 No order fixed in the evaluation of segment in a Content Set
- Closed
- is a dependency of
-
LPS-122636 No order fixed in the evaluation of segment in a Content Set
- Closed