Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-40345

Announcements > Sort order problems

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.5 [Tentative], 12.2, 19.0 [Tentative]
    • Fix Version/s: 12.4, 19.0 [Tentative]
    • Component/s: Announcements
    • Labels:
      None
    • 12 status:
      Resolved
    • Test Plan:
      Hide
      1. navigate to an empty announcement tool
      2. create at least 11 announcements (body text being irrelevant) named like "A01", "A02", etc
      3. note that default sort order is by "Modified Date", descending (latest first), with 10 items viewable
      4. test column-click bug
        1. click "Modified Date" column
        2. verify that you see items A01 through A10, sorted in ascending order (the bug would result in seeing A2 through A11 ascending)
      5. test subset sort reset
        1. change the view to "show 5 items..."
        2. click the ">" button to view items 6-10
        3. click any sorting column, and verify that the set being viewed is reset to "1-5" (and that they are properly sorted, of course)
      Show
      navigate to an empty announcement tool create at least 11 announcements (body text being irrelevant) named like "A01", "A02", etc note that default sort order is by "Modified Date", descending (latest first), with 10 items viewable test column-click bug click "Modified Date" column verify that you see items A01 through A10, sorted in ascending order (the bug would result in seeing A2 through A11 ascending) test subset sort reset change the view to "show 5 items..." click the ">" button to view items 6-10 click any sorting column, and verify that the set being viewed is reset to "1-5" (and that they are properly sorted, of course)

      Description

      This patch fixes two issues with announcement sorting, one bug and one usability feature:

      1. a bug where the first time clicking on a sorting header, the sort will take any 'overflow' (based on the number of items being viewed) from the top of the list first, making the 'first x items' of a list actually be the last X items, though sorted correctly on-screen
        • example: in a list of items named 1-250 (created in ascending order), viewing 200 items, the first click of "modified by" would show items 50-250, correctly sorted by date, while items 1-49 (which should be the earliest and thus on the initial screen) are pushed off to first overflow page.
      2. if you were looking at a subset in the middle of the list (say, announcments 21-40 out of 60), doing a re-sort by clicking a column header would leave you looking at 21-40 of the new sort order, rather than re-sorting then showing you the first 20 of whatever you wanted.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bjones86 Brian Jones
                Reporter:
                bjones86 Brian Jones
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code