Implement canDownloadFiles and canManageFilesPermissions fields for dataset user permission

Open
#217 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
api, authorization

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.

Description

GREI Re-arch SPA: Edit Dataset Page

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.

Dominant language
TypeScript
Stars
20
Forks
11
Avg merge
2d 5h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from IQSS/dataverse-client-javascript

All issues in IQSS/dataverse-client-javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.