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

/direct/announcement doesn't return most recent announcements

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Awaiting Information
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.6, 19.3
    • Fix Version/s: None
    • Component/s: Announcements
    • Labels:
      None
    • Test Plan:
      Hide

      The /direct/announcement collections return the most recent announcements for users with a large number of announcements over multiple years, and the direct/announcement endpoint reliably returns matching results to the portal announcements view.

      Show
      The /direct/announcement collections return the most recent announcements for users with a large number of announcements over multiple years, and the direct/announcement endpoint reliably returns matching results to the portal announcements view.

      Description

      A user is unable to get the most recent announcements when request a collection of announcements using /direct/announcement/site/:ID.json or direct/announcement/user.json

      The documentation on the /direct/announcement/describe page states:
      There are two optional URL parameters available: 'n' to set the total number of announcements returned, and 'd' to set the number of days in the past to retrieve announcements for. If these parameters are not set, they are retrieved from the tool configuration, or the standard defaults of n=3 and d=10 are used.

      As a user, I'd expect this implementation to be ordered by most recent:
      i.e n=3, d=10. fetches the 3 most recent announcements from the past 10 days.
      i.e n=30, d=90. fetches the 30 most recent announcements from the past 90 days.

      I'm unable to find additional documentation that allows ordering by most recent, and the it's unclear what exactly the n and d parameter are doing in some cases - when doing large requests (i.e n=100, d=1000), the response includes more recent announcements than n=3, d=10.

      This can be reproduced on users that have many announcements over multiple months/years.

      Expected Behaviour:
      The /direct/announcement collections return the most recent announcements, matching the portal announcements section. 

      Affected Versions:
      I've had reports of this issue from users using 12.x to 19.3. I didn't find any information that pointed to it being fixed in more recent versions.

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                maintenanceteam Core Team
                Reporter:
                hendricks.alastair Alastair Hendricks
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Git Integration