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

As a power user, I want to define default sort (pre-order) values from my custom views

Details

    Description

      Context:

      When creating an application, is important to give flexibility for users. Only giving the ability to model the object and displaying it in an auto-generated way is not enough to fulfill our customers' needs. How the data is displayed for each use case and role in a company gives the business and users the agility they need to fulfill their tasks. Looking at this is important to show the information using a determined order, facilitating the users' understanding. After a custom view was created and published is necessary to show all entries for customers, allowing user to sort each column ascending or descending. 

      Mockups

      Mockup

      Acceptance Criteria

      1 - Given an admin user,
      when managing a Custom view,
      then I must be able to select columns to pre-order custom view data
      and I must be able to select which will be the ordination:  Ascending or Descending

      2 - Given an admin user,
      when I do not add columns to the view builder,
      then I do not able to add columns and select ordination

      3 - Given an admin user,
      when I do not add a default sort,
      then I must be able to see the custom view with data sorting as the endpoint response

      4 - Given an admin user,
      when managing a Custom view,
      then I must be able to add all columns to order my custom view

      5 - Given an admin user,
      when managing a Custom view,
      then I must be able to add metadata columns to order my custom view

      6 - Given an admin user,
      when managing a Custom view,
      then I must be able to edit a pre-order column

      7 - Given an admin user,
      when managing a Custom view,
      then I must be able to delete a pre-order column

      8 - Given an admin user,
      when managing a Custom view,
      then I must be able to order which pre-order will be present to the customers

      About entries in object views

      9 - Given an admin user,
      when access the object menu,
      then I must be able to see all entries to that object with default sort configurations

      10 - Given an admin user,
      when access the object menu,
      and the object have entries to show
      then I must be able to sort each column ascending or descending

      11 - Given an admin user,
      when I access again the custom object view
      then I must be able to see a custom view restored such as was originally configured

      Definition of Done (DoD):

      • All Acceptance Criteria were passed;
      • Make sure that the expected automated tests were created (unit / integration / functional) and passed successfully;
      • Validated by QA and Product Manager;
      • No critical bug related to Story scope (FP5);
      • Make sure that all system documentation were updated (if necessary)

      Attachments

        Issue Links

          1.
          [PM] Acceptance Criteria LPS-145175 Technical Task Closed Daniel Angotti (Inactive)  
          2.
          [DS] Mockups LPS-146241 Technical Task Closed Victor Santos (Inactive)  
          3.
          [BE] - Create model on database (SortColumn) LPS-146895 Technical Task Closed Paulo Albuquerque  
          4.
          [BE] - Create upgrade process LPS-146899 Technical Task Closed Mateus Santana  
          5.
          [BE] - Embed ObjectViewSortColumns inside ObjectView DTO on the REST API LPS-146896 Technical Task Closed Paulo Albuquerque  
          6.
          [BE] - Create Pre-sort Custom View Feature Flag LPS-147407 Technical Task Closed Mateus Santana  
          7.
          [BE] - Adapt code from Import/Export and include ObjectViewSortColumns (check if its being done already) LPS-146897 Technical Task Closed Mateus Santana  
          8.
          [BE] - Remove ObjectViewSortColumn if the field is removed LPS-146898 Technical Task Closed Paulo Albuquerque  
          9.
          [BE] - Show pre-order entries as it was pre-ordered on custom view creation LPS-147425 Technical Task Closed Mateus Santana  
          10.
          [FE] - Refactor View Builder to generic use LPS-146909 Technical Task Closed Daniel Bonasser  
          11.
          [FE] - Create Default Sort Component LPS-146911 Technical Task Closed Daniel Bonasser  
          12.
          [FE] - Create Modal Add Default Sort LPS-146912 Technical Task Closed Daniel Bonasser  
          13.
          [FE] - Edit/Delete the sort column LPS-146914 Technical Task Closed Daniel Bonasser  
          14.
          [FE] - Adapt the Context to support the DefaultSort LPS-146916 Technical Task Closed Daniel Bonasser  
          15.
          [FE] - Adapt index.tsx to fetch the DefaultSort LPS-146920 Technical Task Closed Daniel Bonasser  
          16.
          [FE] - Adapt the function to change the order of columns in Drag and Drop LPS-147261 Technical Task Closed Daniel Bonasser  
          17.
          [FE] - Reformulate the way that the objectViewColumn is created in the Frontend LPS-147967 Technical Task Closed Daniel Bonasser  
          18.
          [BE] - Create Integration Tests LPS-148437 Technical Task Closed Mateus Santana  
          19.
          [FE] Add feature flag to hide Default Sort in Object View LPS-148631 Technical Task Closed Daniel Bonasser  
          20.
          [BE] - FIX - Remove ObjectViewSortColumn if the field is removed LPS-148732 Technical Task Closed Marcela Cunha  
          21.
          [QA] Manual Validation - Round 1 LPS-148832 Technical Testing Closed André Farias  
          22.
          It is not possible view the Entry when add Author in Default Sort LPS-148845 Impedibug Closed Mateus Santana  
          23.
          Search to New Default Sort is broken LPS-148858 Impedibug Closed Daniel Bonasser  
          24.
          [QA] Manual Validation - Round 2 LPS-148924 Technical Testing Closed André Farias  
          25.
          [QA] Manual Validation - Round 3 LPS-149211 Technical Testing Closed Support QA  

          Activity

            People

              mateus.santana Mateus Santana
              luiz.jardim Luiz Jardim
              Mateus Santana Mateus Santana
              Kiyoshi Lee Kiyoshi Lee
              Victor Santos (Inactive)
              Mateus Santana, Paulo Albuquerque
              Daniel Bonasser
              André Farias, Evanilson Santana
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  7.4.3.18 CE GA18
                  7.4.13 DXP U18