shift-org / shift-docs

Shift2Bikes: website and calendar for shift and pedalpalooza
https://shift2bikes.org
Other
22 stars 17 forks source link

Event range request improvements #771

Open carrythebanner opened 4 months ago

carrythebanner commented 4 months ago

Updated how event ranges are handled:

So now:

Also:

ionous commented 4 months ago

re: range in general. i think i can see it either way: an additional number of days to see. or, the absolute number of days to fetch. it might be worth adding a comment to the const EVENTS_RANGE to indicate that its the latter; and so therefore always needs to be 1 or greater. ( the server side could potentially get the same sort of comment on MaxRange, too; but maybe less important there because its able to validate > 0 when the request is submitted. )