Missing relationships

Aperta
#170 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby

Direzione di ricerca

Start by reading the models and relationship definitions for cards, printings, restrictions, cycles, sets, pools, subtypes, formats, and snapshots. The issue lists candidate missing relationships but leaves it undecided which should be implemented and whether the restriction-to-format relationship is one-to-one or one-to-many. Done means agreeing on the intended relationships and adding the selected definitions with coverage for fetching them.

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

Descrizione

enhancement

I think we would benefit from having:

  • a relationship from cards/printings to their card type (so it can be fetched with an include)
  • a relationship from card/printings to restrictions (ditto)

Also some existing relationships are missing their inverses:

  • card does not have a hasMany relationship back to card_cycle
  • card_cycle, card_set, and card do not have a relationship back to card_pool
  • card does not have a relationship back to card_set
  • printing does not have a relationship back to card_subtype
  • restriction does not have a relationship back to format (I'm not sure if this would be a hasMany or hasOne relationship)
  • card_type does not have a relationship back to printing
  • card and restriction do not have a relationship back to snapshot

I don't know if all/any of these need implementing, but I think this is all of the missing ones.

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.