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

Include IN and NOT IN operators in User's and Organization properties in the Segment Editor

Details

    • Story
    • Status: Closed
    • Minor
    • Resolution: Discarded
    • None
    • None
    • Segments Editor

    Description

      Motivation

      Multiselection for some of the properties in the Segment Editor is not working properly, as operators IN / NOT IN are not included. We are designing a new solution for this kind of properties.

      The complete review of modes of properties' selection and eventually allowing multiselection for the rest of properties will be tackled in other stories.

      Design

      https://www.figma.com/file/xJ9gz2tIHsr75crYMLGKAY/LPS-122019-Change-operators-AND-and-OR-in-users-and-organization-criteria?node-id=0%3A1

      Refinement

      https://docs.google.com/document/d/1vJiTZXNfRnOUJbVvlS80bEiBJLsg2nHyqqRBIQS8vUw/edit?usp=sharing

      Technical Requirements

      • All multiselection properties in the segment editor will include "IN" and "NOT IN" operators in the dropdown selector (with "Equals" and "Not Equals"). These include: 
        • USER properties: USER
        • ORGANIZATION properties: ORGANIZATION, PARENT ORGANIZATION
      • When clicking on the select button, an item selector will show and the user is able to select all or some of the items
      • After clicking Save, a part of the values selected will show comma-separated, and the whole list will be shown when hovering
      • For deselecting any of the values, the user has to click on the Select button again and deselect whichever values he wants
      • The values selected will show as checked in the modal when the user clicks on the Select button

      Acceptance Criteria

      • Given the segment editor
      • When the user drops in User (User's), Organization or Parent Organization properties (Organizations')
      • Then s/he can select IN and NOT IN as operators for building the condition

      • Given the IN and NOT IN as operators
      • When the user clicks on the Select button
      • Then a modal shows and the user is able to select multiple items

      • Given the modal window for multiselection
      • When the user clicks on the Save button
      • Then the values selected are shown in the text box as a truncated list

      • Given the textbox showing the list of selected values
      • When the user hovers over it
      • Then the full list of values is shown in a tooltip

      • Given the modal window for multiselection
      • When the user clicks on the Cancel button or the close icon
      • Then no changes are applied to the selection

      • Given the values selected 
      • When the user clicks on the Select button
      • Then the modal shows and the user is able to deselect any items and select new ones

      • Given all the values selected with an IN operator
      • When the segment is created
      • Then it will include all the matching users (User's), organizations or Parent Organizations selected

      • Given all the values selected with an NOT IN operator
      • When the segment is created
      • Then it will exclude all the matching users (User's), organizations or Parent Organizations selected

      Attachments

        Issue Links

          Activity

            People

              support-qa Support QA
              julia.molano Julia Molano
              Sarai Diaz Sarai Diaz (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package