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

Avoid internal categories to show in facets and results in public searches

    Details

      Description

      Motivation

      This story is a slipt from LPS-115314 - As a categories administrator I can flag a vocabulary for internal use only.

      Technical Requirements

      • Internal marked as internal will be backend viewable only, and can be used for internal searches and categorization 
      • When using the Bar Search portlet In public-facing pages (not in the administration), internal categories must not show neither as a facet nor in the search results
      • Some restrictions have to be considered:
        • It won't be possible to change visibility config of vocabularies once they're created (i. e., created as public then switch to internal)
        • It won't be possible to move categories between vocabularies with a different visibility configuration. When choosing a vocabulary for a category to be moved to, vocabularies with different config won't show in the selector (see task LPS-119262) and a warning is shown.

      Acceptance Criteria

      • Given a vocabulary that is marked as internal
      • When a user searches a category belonging to that vocabulary in a public context 
      • Then the assets marked with that category don't show as results and the category is not shown as a facet in the left-side filters 

      • Given a vocabulary that is marked as internal
      • When a user searches a category belonging to that vocabulary in an administration context (ie, Web Content application)
      • Then the assets marked with that category show as results for that search

      • Given a vocabulary that is marked as internal
      • When a user searches a category belonging to that vocabulary in an web content admin context 
      • Then the assets marked with that category show as results and the category is shown as a facet in the left-side filters 

      • Given a vocabulary that is marked either internal or public
      • When a user tries to move a category from it to another vocabulary 
      • Then the vocabularies with a different visibility config doesn't appear in the selection modal, and a warning message is shown.

      • Given a vocabulary that is marked either internal or public
      • When a user wants to edit the vocabulary 
      • Then the Visibility section allows no changes 

      • Given the vocabulary creation screen
      • When a user hovers the info icon next to Visibility
      • Then a tooltip shows: If checking Internal, the vocabulary will not be displayed in pages, either through widgets, fragments or content mapping, and can be used for internal searches and categorization only. Visibility configuration cannot be reverted.

      • Given the content dashboard category filter
      • When the user selects any internal categories
      • Then the results retrieve contents for those categories

      Test Scenarios

      Test Scenarios Test Strategy Kind of test Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd ? (unit or integration) Could it be covered by POSHI?
      Internal categories are not shown in facets and result in a public context Critical Manual No No Yes
      Public categories are shown in facets and result in a public context High Manual No No Yes
      Internal categories are shown in facets and result in an administrator context Critical Manual No Yes Yes
      Public categories are shown in facets and result in an administrator context High Manual No Yes Yes
      Visibility is not editable for vocabularies High Manual No No Yes
      Categories can only be moved to vocabularies with the same visibility High Manual No No Yes
      A confirmation message is shown when a vocabulary is saved Medium Manual No No Yes
      Info icon for visibility section in vocabularies creation shows a message Low Manual No No  Yes

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.gutierrez David Gutiérrez Mesa
              Reporter:
              julia.molano Julia Molano
              Engineering Assignee:
              Ruben Pulido
              Recent user:
              Luiz Queiroz
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master