shift-org / shift-org/shift-docs

Bike Summer page does two queries of the same data

Open
#957 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
30
Forks
25
Avg merge
9m
Merged PRs (30d)
1

Description

https://www.shift2bikes.org/api/events.php?startdate=2025-06-01T00%3A00%3A00-07%3A00&enddate=2025-07-13T00%3A00%3A00-07%3A00
https://www.shift2bikes.org/api/events.php?startdate=2025-06-19&enddate=2025-08-31

as a low bar, munging the calendar plugin's query to chop off the times would allow the browser to recognize them as the same query and cache.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Bike Summer page requests in the browser's network panel, then locate the calendar plugin code that constructs the two events.php queries. Normalize the calendar request so equivalent date ranges use the same cacheable query, and verify that the page no longer makes duplicate requests for the same data.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.