mtg: classify deck operations as read, edit and owner
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
- Ambito
- backend-api-design
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
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di myOmikron/code
-
wayfinder:task
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
wayfinder:task
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
myOmikron/code#102 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
ready-for-agent
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
ready-for-agent
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
ready-for-agent
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di myOmikron/code
Issue simili
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
apex-dev-tools/apex-log-parser#199 ·
I maintainer di solito rispondono entro 1 giorno
-
area/frontend/library-panels automated-triage type/bug type/ux
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
PostHog/posthog.com#21607 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
ajv-validator/ajv#2689 ·
-
[Bug]: IME confirmation Enter can submit the SSH port-forward dialogForse già presa @seijikohara l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno