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

Clean up points queries

Aperta
#100 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
Refactoring
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
backend, databases

Direzione di ricerca

Start by reading the query code in AwardedPoint, AvailablePoint, and User, then inspect the existing tests for those models. Map the redundant queries and identify the reported N+1 cases before deciding whether a helper class is warranted. Done means the queries are simpler, comments explain the non-obvious parts, N+1 behavior is reduced, and tests cover the revised behavior.

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

Descrizione

enhancement tricky

There are a bunch of complex queries in AwardedPoint, AvailablePoint and User. with some redundancy. Clean it up, add comments, maybe refactor them to some helper class. Reduce N+1 problems. Also improve tests.

Lingua principale
Ruby
Stelle
51
Fork
42
Merge medio
1h 27m
PR unite (30g)
1

Guida per i contributori

Apri la 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 testmycode/tmc-server

Tutte le issue di testmycode/tmc-server

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.