List a Club's Events

Open
#260 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
15/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
fastapi, openapi, python
Domain
api, backend

Research direction

This issue is a stub that lists open questions rather than a settled change, and it depends on #230 and #125, which are not yet merged. Before any code, the maintainers need to decide which Event fields and whether the Organizer's name are exposed, and whether matches are listed at all (ADR 0031 and ADR 0018 cover sign-in and search). Done means a paged GET /api/v1/clubs/{code}/events with an explicit operation_id, a regenerated openapi/openapi.json, and tests using made-up Clubs and Events.

Written by the indexing model from the issue text.

Description

area:api enhancement triage

Stub: this issue holds the problem and the questions. It needs a full scope before work starts.

Problem: #230 adds GET /api/v1/clubs/{code} (code, name, city and region). Players and assistants also want to know what a Club runs: its Events, and perhaps its recent results. Nothing lists them.

Questions to decide:

  • Events. GET /api/v1/clubs/{code}/events: which Event fields are shown (kind, dates, Organizer's OPEN Code), and whether the Organizer's name is shown, since it can be a person's name (an identifying field).
  • Matches. A Club's match list would show players' results outside their own match history setting. Either leave matches out, or show only matches whose every player's match history visibility lets the viewer see them.
  • Search. Whether Clubs need a search by name or area, like player search (ADR 0018).
  • Sign-in. Every read needs sign-in, like players (ADR 0031).

Draft scope:

  • GET /api/v1/clubs/{code}/events, paged, with an explicit operation_id and the regenerated openapi/openapi.json
  • Decide the match list question above, and add it or record why not
  • Tests with made-up Clubs and Events

Out of scope:

  • Club profile and changes (#230), organizer Event endpoints (#125)
  • The MCP tool (#263)

Depends on: #230, #125

Dominant language
Python
Stars
0
Forks
1
Avg merge
1h 7m
Merged PRs (30d)
206

Getting set up

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.

More from openpickleball/backend

All issues in openpickleball/backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.