Status: Awaiting Information
Affects Version/s: 12.6, 19.3
Fix Version/s: None
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.
The /direct/announcement collections return the most recent announcements, matching the portal announcements section.
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.