api-client: typed helper to parse the audit JSON Lines export
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 85/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- api
调研方向
在 packages/api-client 中工作;先检查生成的客户端和现有的单元测试模式,找到适合放置解析器的位置。添加 parseAuditExport(text: string): AuditEventDto[],使其保留行顺序、忽略末尾换行,并在 JSON 行无效时抛出错误。添加单元测试并运行 pnpm nx test api-client。
由索引模型根据 Issue 内容生成。
描述
The audit export (/audit-events/export) returns application/x-ndjson, one AuditEventDto per line, which the generated client does not parse.
Task
In packages/api-client:
- add
parseAuditExport(text: string): AuditEventDto[]; - ignore a trailing newline, throw on invalid JSON lines, and keep the original order;
- add unit tests.
Acceptance
pnpm nx test api-client passes. No new dependency.
- 主要语言
- TypeScript
- 星标
- 2
- 派生
- 1
- 平均合并
- 7 小时 17 分钟
- 30 天内合并 PR
- 197
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
shipkeepdev/shipkeep 的其他 Issue
-
good first issue
难度 2/5 1-3 小时 新手友好度 84/100
shipkeepdev/shipkeep#295 ·
维护者通常 1 天内回复
-
good first issue priority:P2 track:control-plane
难度 2/5 1-3 小时 新手友好度 78/100
shipkeepdev/shipkeep#212 ·
维护者通常 1 天内回复
-
documentation good first issue priority:P3 track:control-plane
难度 2/5 1-3 小时 新手友好度 78/100
shipkeepdev/shipkeep#143 ·
维护者通常 1 天内回复
-
enhancement good first issue priority:P3 track:control-plane
难度 2/5 1-3 小时 新手友好度 85/100
shipkeepdev/shipkeep#142 ·
维护者通常 1 天内回复
-
documentation good first issue priority:P3 track:control-plane
难度 2/5 1-3 小时 新手友好度 85/100
shipkeepdev/shipkeep#141 ·
维护者通常 1 天内回复
查看 shipkeepdev/shipkeep 的全部 Issue
相似的 Issue
-
normalizePropName strips `#` characters from Figma property names instead of only the `#id` suffix未关闭
难度 2/5 1-3 小时 新手友好度 72/100
figma/code-connect#419 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
jeanibarz/knowledge-base-mcp-server#1268 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
Koenkk/zigbee-herdsman-converters#13820 ·
维护者通常 2 天内回复
-
A live recovery copy treats a large whole number and text with the same digits as the same value未关闭bug sharing & sync
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 1 天内回复