]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Allow ordering events by date
authorJeremy Cline <jcline@redhat.com>
Tue, 15 Oct 2019 21:30:11 +0000 (17:30 -0400)
committerStephen Finucane <stephen@that.guru>
Sat, 30 Nov 2019 17:00:39 +0000 (17:00 +0000)
commite0f3220b3698fa3f9383b8c536a01f57cad8df15
tree8e3d3c17047254213851d02801ebe2f59e91cccf
parente53d7985a15a90617d653645d1bb0c2693b73ff6
Allow ordering events by date

By default, the events API orders events by date in descending order
(newest first). However, it's useful to be able to order the events by
oldest events first. For example, when a client is polling the events
API for new events since a given date and wishes to process them in
chronological order.

Signed-off-by: Jeremy Cline <jcline@redhat.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/api/event.py
patchwork/tests/api/test_event.py
releasenotes/notes/api-order-events-by-date-7484164761c5231b.yaml [new file with mode: 0644]