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

[test] Cover token-registry cache fallback and read-through behavior

Aperta
#1,713 9 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

@olalekan22-tech ci sta già lavorando.

Dal 22/10/2026.

  • #1826 di @olalekan22-tech — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
73/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
redis, typescript
Ambito
backend, testing

Direzione di ricerca

Start with backend/src/services/token-registry.service.ts at line 15, then read the existing backend tests for the metadata store and token list route to follow their setup. Add tests with injected or mocked dependencies for Redis hits, invalid cached JSON, Redis outages, database hits, and cold lookups. Done means DB cache hits skip RPC, Redis write failures preserve successful lookups, and the backend suite runs in CI.

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

Descrizione

backend points: 150 Stellar Wave testing

Labels: testing, backend, points: 150
File/location: backend/src/services/token-registry.service.ts:15

Description:
Existing token metadata tests cover the separate in-memory metadata store and token list route, not the TokenRegistry service. Redis corruption/outage and database cache hit/miss behavior lack tests, risking unnecessary network traffic and failed lookups.

Acceptance Criteria:

  • Test Redis hit, invalid cached JSON, unavailable Redis, database hit and cold lookup paths using injected/mocked dependencies.
  • Assert DB cache hits avoid RPC and Redis write failures do not turn a successful metadata lookup into an error; run the suite in backend CI.

Notes:
Searched backend/tests: existing metadata/route tests target lib/token-metadata; none import services/token-registry.service.

Audited commit: 649b6976a100fd964ce191428eef1faeb50aaa39. Closest prior issues reviewed: #1323. This report concerns the specific failure or uncovered test paths described above, rather than repeating the original feature request.

Lingua principale
TypeScript
Stelle
18
Fork
250
Merge medio
5g 6h
PR unite (30g)
83

Preparare l'ambiente

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 LabsCrypt/flowfi

Tutte le issue di LabsCrypt/flowfi

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.