Offline match queue
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- html, javascript
Research direction
Start with the frontend v1 proposal and related issue #22 to find the app entry points and match submission flow. Read config/api_errors.py and apps/matches/services.py:1105-1117 in the backend, plus plans/frontend-v1/research/backend-api.md, to understand response handling. Done means pending matches persist in IndexedDB, retry on app open and the online event, handle each listed response, and show queue state and validation errors without silently dropping items.
Written by the indexing model from the issue text.
Description
Why
Players record matches on courts with poor signal. Frontend v1 needs a connection to submit a match. We deferred offline entry from v1 so v1 stays small. Frontend #22 first listed it.
What
Queue match submissions on the device and send them later.
- Store pending submissions in IndexedDB (the full
MatchCreateInbody). - Flush the queue when the app opens and on the
onlineevent. iOS has no Background Sync, so do not depend on it. - Handle each response:
- 2xx: remove from the queue.
- 409
duplicate_match: count as sent if it names the player's own match (backendrecord_matchtreats a retry by the same submitter as the same result). - 401: keep the item, ask the player to sign in, retry after login.
- 422: remove it from the queue and show the player the field errors so they can fix and resubmit.
- 5xx or network error: keep and retry later.
- Show the queue state in the UI ("2 matches waiting to send").
- Do not drop an item silently.
Context
- Error shapes and codes:
config/api_errors.pyin openpickleball/backend, and the research noteplans/frontend-v1/research/backend-api.md. - Duplicate handling:
record_matchin openpickleball/backend, apps/matches/services.py:1105-1117. - Related: #22 (PWA).
- Frontend v1 proposal: https://github.com/openpickleball/frontend/blob/main/plans/frontend-v1/proposal.md (lands on main shortly).
- Dominant language
- HTML
- Stars
- 0
- Forks
- 1
- Avg merge
- 42m
- Merged PRs (30d)
- 108
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openpickleball/frontend
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openpickleball/frontend#222 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openpickleball/frontend#70 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/frontend#19 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 42/100
openpickleball/frontend#220 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 58/100
openpickleball/frontend#219 ·
Maintainers usually reply within 1 day
All issues in openpickleball/frontend
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
canonical/canonical.com#3135 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
we-promise/sure#5844 ·
Maintainers usually reply within 1 day
-
BitVariantVariablesBrowserTests fails on the scrolled variables of BitHeaderPossibly taken @yasmoradi claimed this today. Openarea / BlazorUI
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
bitfoundation/bitplatform#15485 ·
Maintainers usually reply within 1 day
-
bug help wanted ui
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
userFRM/egui-charts#4292 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day