Let players turn off recorded match notices

Open
#303 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
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
openapi, python

Research direction

Read ADR 0041 and compare the single match notification path with the CSV batch path, especially send_batch_notices. Trace the existing audit pattern for privacy or profile settings and the player settings API route; inspect the related tests and OpenAPI generation workflow. Done means the opt-out defaults on, is audited, suppresses only recorded match emails in both paths, and the API, notice guidance, privacy inventory, ADR, and tests reflect the chosen policy.

Written by the indexing model from the issue text.

Description

area:email area:players enhancement needs-decision priority:p2 size:S

Context: #208 (ADR 0041) emails each player when a verified Organizer records a confirmed match for them. The notice is always sent, with no setting to turn it off, because it is how players catch bad or fraudulent uploads. ADR 0041 leaves an opt-out to a later issue. A player in a busy league may get many of these emails and want fewer.

Tasks:

  • Decide what a player may turn off: the per-match email only, or all recorded match notices. Players who turn it off should still be able to see recorded matches (for example in a list in the app), so the fraud check is weaker but not gone
  • Add the setting with its own field. Default on. Record a change through the existing audit pattern for privacy or profile settings
  • Decide whether players aged 13 to 17 may turn it off
  • Skip the email for a player who turned it off, in both the single match path and the CSV batch path (send_batch_notices)
  • Add a short line to the notice telling the player where to change the setting, built from FRONTEND_URL, and keep the email hygiene checks passing
  • Update docs/privacy/personal-data-inventory.md if the field counts as personal data (ADR 0009), and amend ADR 0041
  • Expose the setting through PATCH /api/v1/me/player or the settings route the web app uses, and regenerate openapi/openapi.json
  • Tests

Acceptance criteria:

  • A player who turned the notice off gets no recorded match email, from a single submission or a CSV upload
  • A new player has the notice on
  • Changing the setting records one Audit Event
  • Dispute and hold notices are not affected

Consider with: #37 (digest and daily budget). A digest may remove most of the need for an opt-out, so decide this after or alongside #37.

Related: #208, ADR 0041

Size: S

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.