Inconsistency in `DatasetVersionInfo` model? (Date vs string)
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
从 src/datasets/domain/models/Dataset.ts 中引用的 DatasetVersionInfo 定义以及 src/datasets/infra/repositories/transformers/datasetTransformers.ts 中的转换开始。对比 releaseTime、createTime 和 lastUpdateTime 相对于 Dataverse API 响应的表示方式。完成的标准是,模型和 transformer 对这三个字段都使用明确且一致的时间戳表示方式。
由索引模型根据 Issue 内容生成。
描述
I noticed that in the DatasetVersionInfo model, the timestamps use inconsistent types:
releaseTime and createTime are represented as Date objects, while lastUpdateTime is represented as an ISO 8601 string and not transformed into a Date object:
The return values from the Dataverse API for retrieving a dataset version are all consistently ISO 8601 strings:
I was wondering what the reason for this is, or whether this inconsistency should be cleaned up? (If so, I'd be open to opening a PR for that)
- 主要语言
- TypeScript
- 星标
- 20
- 派生
- 11
- 平均合并
- 2 天 5 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
IQSS/dataverse-client-javascript 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
IQSS/dataverse-client-javascript#477 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
IQSS/dataverse-client-javascript#465 · 1 条评论 · 2 个 reaction ·
-
GREI Re-arch
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 4/5 3-5 天 新手友好度 66/100
-
难度 4/5 3-5 天 新手友好度 48/100
查看 IQSS/dataverse-client-javascript 的全部 Issue
相似的 Issue
-
area/core status/need-triage
难度 2/5 1-3 小时 新手友好度 88/100
google-gemini/gemini-cli#29602 ·
维护者通常 1 天内回复
-
area: backend enhancement priority: low
难度 2/5 1-3 小时 新手友好度 88/100
snapotter-hq/SnapOtter#1879 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
Tencent/BrowserSkill#390 ·
维护者通常 1 天内回复
-
good first issue status: needs triaging type: bug version: 2.0
难度 2/5 1-3 小时 新手友好度 85/100
medusajs/medusa#17094 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复