gdg-x / boomerang

Easy website for your GDG Chapter
http://gdg-x.github.io/boomerang/
Apache License 2.0
74 stars 104 forks source link

gdg-x Hub API is using paging with a limit of 25, new events not showing on Event page #26

Closed Splaktar closed 9 years ago

Splaktar commented 10 years ago

I made some comments about this in commit 884d575

I'm not sure if the gdg-x hub API allows for specifying a larger limit, but paging should probably be handled in the JavaScript. It would be nice if the API gave the newest results first but that doesn't appear to be the default.

joshuawoodward commented 10 years ago

How long ago was the new event added? Hub pulls every 24hrs I think.

Splaktar commented 10 years ago

It was added a week ago or so.

Splaktar commented 10 years ago

There are two new APIs that need to be used: http://hub.gdgx.io/api/v1/chapters/<id>/events/upcoming http://hub.gdgx.io/api/v1/chapters/<id>/events/past

Just doing this should help with the initial issue of future events not showing. It would also be nice to have auto paging happen for older events on scroll.

Splaktar commented 9 years ago

This should be fixed now.