PlaceAVote / pav-api

This repository contains the Placeavote API.
0 stars 0 forks source link

Weird behavior when I provide a from property to the GET /user/notifications endpoint. #101

Closed SudoPlz closed 8 years ago

SudoPlz commented 8 years ago

If I'm not mistaken the from property is there for us to get all the new notifications from the from point an on.

Right now that is not possible.

Things I've noticed that shouldn't be like that (in case that helps):

  1. Within the resulting object, the results array is sorted from the newest to the oldest, which is good, but the last_timestamp property is the timestamp of the last item and not the first (as it should be, since the first item is the newest).
  2. After passing a from property, the logical thing to expect is for all the resulting items to be newer than the from we specified. That is not the case, we also get older items.