IQSS / IQSS/dataverse-client-javascript

Return file info in `GetPrivateUrlDataset` use case

未关闭 适合新手
#477 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
20
派生
11
平均合并
2 天 5 小时
30 天内合并 PR
1

描述

The dataverse API for retrieving a dataset using a private URL /api/datasets/privateUrlDatasetVersion/... returns information about dataset files, but the transformer used by the GetPrivateUrlDataset use case doesn't transform it, so it's not returned:

https://github.com/IQSS/dataverse-client-javascript/blob/0043dddf5e7d9358d0dcac176cb8c0f325aab78b/src/datasets/infra/repositories/DatasetsRepository.ts#L56-L68

Image

It would be useful to receive the file info from that use case.

Should the use case/transformer be extended? If yes, I'd be open to creating a PR for that.

贡献指南

打开贡献指南

从这里开始

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

调研方向

从 src/datasets/infra/repositories/DatasetsRepository.ts 中 issue 引用的 GetPrivateUrlDataset transformer 开始。检查 private URL dataset 响应是如何转换的,以及文件信息在其他地方是如何处理的。当 use case 返回 API 提供的 dataset 文件信息时,即表示完成。

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

评估

技术栈
typescript
领域
api
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
基本清楚
新手友好度
72/100

把新 issue 发到你的邮箱

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