Let players search for other players by location
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- openapi, python
- Domain
- api, backend, documentation, security
Research direction
First resolve the location-search definition, privacy and age rules, location-only search policy, and paging behavior before implementing. Then inspect the GET /api/v1/players/search endpoint, the relevant ADR and openapi/openapi.json, and existing player-search tests. Done means the agreed rules are applied in the query, the API specification and privacy documentation are updated, and tests cover hidden locations, minors, and made-up players and places.
Written by the indexing model from the issue text.
Description
Context
The app's Players tab (openpickleball/frontend#348) lets a player search other players by name. Players also want to find players near them, for example everyone in their city.
GET /api/v1/players/search matches only the start of a word in the display name. There is no way to filter by location.
This needs a decision before work starts. Location is personal data with its own privacy setting (city_region_visibility). Search by location must not reveal a location the player hid. For example, if a hidden player still showed up when searching "Springfield", the search would tell the viewer where they live.
Questions to decide
- What "location" means for search: city and region as stored at signup, or distance from the viewer (which needs coordinates and more privacy work)?
- Only players whose city and region the viewer may see can match a location search. Confirm this, and the rule for players aged 13 to 17 (see #323).
- Is a name required, or can a player search by location alone? A location-only search lists everyone in a place, which is much easier to scrape. ADR 0018's limits may need to change.
- Paging, since a city can have more than 20 players.
Draft scope, after the decision
- ADR, or an amendment to ADR 0018
- Location parameters on
GET /api/v1/players/search, and the regeneratedopenapi/openapi.json - Privacy and age rules applied in the query, not after it
- Update
docs/privacy/personal-data-inventory.mdif what is searchable changes - Tests with made-up players and places
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- Avg merge
- 1h 7m
- Merged PRs (30d)
- 206
Getting set up
- No Dockerfile or Docker Compose file
- No 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/backend
-
area:infra documentation priority:p2 size:S
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#472 ·
Maintainers usually reply within 1 day
-
Show doctl's error when the Deploy workflow's update failsPossibly taken @GeoBradDev claimed this today. Openarea:infra bug priority:p2 size:S
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#471 ·
Maintainers usually reply within 1 day
-
area:infra documentation type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openpickleball/backend#196 ·
Maintainers usually reply within 1 day
-
area:infra type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#195 ·
Maintainers usually reply within 1 day
-
area:api enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
openpickleball/backend#470 ·
Maintainers usually reply within 1 day
All issues in openpickleball/backend
Similar issues
-
[Resource]: SpaicelyOpenresource-submission validation-passed
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bvis/aegis-hass#725 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPossibly taken @NimaVaziri claimed this today. OpenPytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainers usually reply within 1 day