Mercurial > libervia-pubsub
view .hgtags @ 451:0e6e176cb572
pgsql: fix items order:
Due to a misinterpretation, items where returned in wrong order when RSM was used.
Pubsub vanilla `max_items` is reversing the items order to get last items, but when this
attribute is not used (RSM being used or not), the items must be in chronological order.
This patch fixes it, so RSM returns oldest items by defaut, and empty `<before/>` must be
used to get last page (and thus most recent items).
Items are always finally ordered chronologically inside the returned page (default by
`update` time, but this can be modified when a specific order is requested).
Reference field is also fixed to use `updated` instead of `item_id` when item are ordered
by `update`.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 06 Jun 2021 19:42:57 +0200 |
parents | 4b5d4da54d9e |
children | af167e95527c |
line wrap: on
line source
b2149e448465d54e39bb8892ba9ded3313510738 idavoll-0.5.0 e289636ccc4f9e3690879aaf7b9bb5f2674c3fc8 idavoll-0.7.3 560b6cdc50b20d7590a70b0311d4781e3296c589 0.1.0 232002e132dbf9c7563d9f78f4b5e2bcdc2764de 0.1.1 642dffb9d6f1e7b2e7d5e9cb6ba17b6950fdf0bb 0.2.0 0861da6975b57dcaa1c69b2833232fe191346f87 0.3.0