Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#1,713 9 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 7 天内回复

@olalekan22-tech 已经在做这个了。

开始于 2026年10月22日。

  • #1826 来自 @olalekan22-tech —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
73/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
redis, typescript
领域
backend, testing

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
18
派生
250
平均合并
5 天 6 小时
30 天内合并 PR
83

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

LabsCrypt/flowfi 的其他 Issue

查看 LabsCrypt/flowfi 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。