Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

mtg: classify deck operations as read, edit and owner

Chiusa
#157 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start with parent issue #155 for the deck operation classification, then locate the deck handlers and their existing owner checks. Map each operation to the read, edit or owner lists in this issue and route its handler through the shared access check. Run the existing mtg tests and confirm the OpenAPI spec is unchanged; denied operations should still respond exactly like a missing deck.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

ready-for-agent

Parent

#155

What to build

Prefactor for deck Collaborators: every deck operation goes through one access check that classifies it as read, edit or owner, and that check resolves the caller to owner, Editor or Viewer. Only the owner can occur yet, so nothing changes for users. Later tickets then only widen the check instead of touching every deck handler again.

The classification (from #155):

  • read: deck, cards, tags, statistics
  • edit: deck update, colours, bracket, rule zero, advisor settings, card add, import, update, delete, deck-local tag create, update and delete, tag assign and unassign
  • owner: visibility, share token, folder, attach and detach collection, sourcing, drift, take, fill and return cards, delete, Collaborator management

Acceptance criteria

  • Every deck operation is classified as read, edit or owner in one place, and its handler asks the access check for that class instead of hand-rolling an owner check
  • The access check can express owner, Editor and Viewer outcomes; today only owner is ever granted, and a denied operation still answers exactly like a missing deck
  • No API or behaviour change: the OpenAPI spec is unchanged and all existing mtg tests pass
Lingua principale
TypeScript
Stelle
0
Fork
1
Merge medio
9h 53m
PR unite (30g)
136

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di myOmikron/code

Tutte le issue di myOmikron/code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.