IQSS / IQSS/dataverse-client-javascript
Implement canDownloadFiles and canManageFilesPermissions fields for dataset user permission
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 20
- Forks
- 11
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/datasets/domain/models/DatasetUserPermissions.ts and compare the existing dataset user permission fields with the requested canDownloadFiles and canManageFilesPermissions fields. Read the native API documentation for “Know If a User Can Download at Least One File from a Dataset Version” to determine whether it informs canDownloadFiles. Done means both fields are represented in the permission model and their data source is established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, authorization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100