IQSS / IQSS/dataverse-client-javascript
Implement canDownloadFiles and canManageFilesPermissions fields for dataset user permission
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 20
- 派生
- 11
- 平均合并
- 2 天 5 小时
- 30 天内合并 PR
- 1
描述
Inspired from this issue/TODO in front-end repo, in Dataset Permissions, it asked about adding canDownloadFiles and canManageFilesPermissions permission fields to js-dataverse. Based on the dataset user permission model in js-dataverse repo, we don't have these two fields yet.
In native API, one endpoint Know If a User Can Download at Least One File from a Dataset Version may be relevant to the canDownloadFiles field.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 src/datasets/domain/models/DatasetUserPermissions.ts 开始,将现有的数据集用户权限字段与请求的 canDownloadFiles 和 canManageFilesPermissions 字段进行比较。阅读“Know If a User Can Download at Least One File from a Dataset Version”的 native API 文档,以确定它是否能为 canDownloadFiles 提供信息。两个字段都在权限模型中得到表示,并且其数据源已确定,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- api, authorization
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100