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

Limit the number of categories selected from config in the audit graph

    Details

      Description

      Motivation

      As the audit graph will just allow the crossing of two vocabularies for the moment, we need to limit the number of vocabularies selected in the configuration option.

      Design

      https://www.figma.com/file/7OioAN94tAUQHPwYkNTOBn/LPS-115658-Allow-marketers-to-select-which-vocabularies-to-show-in-the-audit-graph?node-id=26%3A2646

      Technical Requirements

      GENERAL NICE TO HAVE FEATURES

      • Flip the position of "In Use" and "Available" boxes, to show Available in the left side and In Use in the right side of screen
      • Ordering: the category occupying the highest position in the "Current" list will be featured in the X axis

      TECHNICAL REQ.

      Acceptance Criteria

      • Given the configuration modal 
      • When the user accesses the first time
      • Then Audience and Stage vocabularies are in the "In Use" box and Topic vocabulary is in the "Available" box

      • Given the configuration modal 
      • A help text shows: Select a maximum of two vocabularies to be displayed on the graph. The vocabulary in the top position in the “In Use” box will be featured on the “X” axis.

      • Given the configuration modal 
      • When there are two vocabularies in the "In Use" box
      • Then the add button (arrow to right) is disabled

      • Given the configuration modal 
      • When there's a vocabulary in the "In use" box is selected and in the top or the second position of the list
      • Then the up or down button are disabled accordingly

      • Given the configuration modal 
      • When there's a vocabulary in the "In use" box is in the top position of the list and user clicks on Save
      • Then the graph will feature that vocabulary in the X axis

      • Given the configuration modal 
      • When there's a vocabulary in the "In use" box is in the second position of the list and user clicks on Save
      • Then the graph will feature that vocabulary in the checkbox legend above

      • Given the configuration modal 
      • When the user has removed all vocabularies from the In Use box and clicks on Save 
      • Then a warning message will show: Select at least one vocabulary to show on the chart 

       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 Regression When the user accesses to the configuration modal for the first time, Audience and Stage vocabularies are in the "In Use" box and Topic vocabulary is in the "Available" box  No  No  Yes
      02 Regression When the user accesses to the configuration modal, a help text shows: Select a maximum of two vocabularies to be displayed on the graph. The vocabulary in the top position in the “In Use” box will be featured on the “X” axis.  No  No Yes 
      03 Regression When there's a vocabulary in the "In use" box is selected and in the top or the second position of the list, the up or down button are disabled accordingly  No  No  Yes
      04 Smoke When there's a vocabulary in the "In use" box is in the top position of the list and user clicks on Save, the graph will feature that vocabulary in the X axis  No  No  Yes
      05 Smoke When there's a vocabulary in the "In use" box is in the second position of the list and user clicks on Save, the graph will feature that vocabulary in the checkbox legend above  No  No Yes 
      06 Sanity When the user has removed all vocabularies from the In Use box and clicks on Save , a warning message will show: Select at least one vocabulary to show on the chart   No  No Yes 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              carlos.brichete Carlos Brichete Báez
              Reporter:
              julia.molano Julia Molano
              Engineering Assignee:
              Sarai Diaz
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master