Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-1693

Sort on License Type should sort by label

    XMLWordPrintable

Details

    • ERM Sprint 115, ERM Sprint 116, ERM Sprint 117
    • Bienenvolk

    Description

      Overview:
      Steps to Reproduce:

      1. Create at least two licenses with different types
      2. Do a search which displays licenses with a variety of types
      3. Click "Type" column header in the results MCL
      4. Note that the type does not sort alphabetically by displayed value in the results MCL

      Expected Results:

      Should sort alphabetically ASC by type label
      Actual Results:

      Sorts ASC by type id (I believe)

      Additional Information:

      Currently the sort applied is `sort=type%3Basc`

      I think the correct sort is `sort=type.label%3Basc`

      URL:
      Interested parties:

       

      Dev task breakdown

      It appears that there is no neat way to map between column name and sort term in SASQ, rather that it directly grabs from the column name. We can intefere with the `onSort` function and insert `.label` where applicable, or take the slightly  easier route of renaming the column.

       -- 

      Changing lines:

       -- 

      From "type" to "type.label" should do the trick.

      NOTE: We don't want to change the internationalised column header, or any of the formatters, just the keys for Type
       

      https://issues.folio.org/browse/ERM-1691?focusedCommentId=105812&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-105812

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                ostephens Owen Stephens
                ostephens Owen Stephens
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases