Improvements to legality status on cards

Aperta
#169 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
api, databases

Direzione di ricerca

Start by tracing how card and printing responses are built and how restriction models are fetched for each card; the issue does not name files or tests. Decide how to represent each format’s legality, including statuses such as "banned", "legal", and "points_1". Done means cards and printings expose legality by format; the optional restriction_type model also needs a decision.

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

Descrizione

enhancement

Cards and printings should explicitly state their ban status in each format, to avoid having to fetch several restriction models for each card. The data could look something like this:

data : {
  ...
  attributes : {
    ...
    current_legality: {
      standard: "banned",
      startup: "legal",
      eternal: "points_1",
      system_gateway: "not_legal",
      ...
    }
  }
}

Additionally we could maybe add a restriction_type model, similar to the card_type and card_set_type models to formalise the different types of legality.

Lingua principale
Ruby
Stelle
10
Fork
9
Merge medio
2h 59m
PR unite (30g)
2

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 Null-Signal-Games/netrunnerdb-api-server

Tutte le issue di Null-Signal-Games/netrunnerdb-api-server

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.