-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API for activity page #44
Comments
Yikes, a silly bug but an easy fix. Thanks @paskal98 for discovering and report it.
Good idea, I included location lat, lng to the response.
Hmm, also a good point. (Although wouldn't this always be a potential issue with paginated searches?) I could drop limit and offset and use two dates and allow the most recent date to be null so that the search interval goes up to the present? |
Some other benefits I can see: if you use dates instead of limit and offset, it supports a query interface (although we don't really need one), also, that the responses could be cached (but deleting a reported location should invalidate the cache). I think the biggest reason is that it simplifies the frontend code a bit, since it's nice to show complete days of changes, and with limit and offset, we can never be sure we got all the data for the last day. |
Replaces limit and offset with explicit timestamp interval earliest–latest. Closes API for activity page #44.
Live API now provides |
Missing data - see falling-fruit/falling-fruit-web#537 (comment) . Maybe there's a join to the users table that should be a left join?
Also, address is sometimes missing - maybe the payload could include coordinates, and then we'd render that instead.
Also: @paskal98 suggests to modify the API for /locations/changes to include the ability to search by date parameters “start” and “end". Makes sense to me - with "offset", if someone adds a change just as we query, won't it mess up the data?
The text was updated successfully, but these errors were encountered: