Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add file access(restricted) and permission canDownloadFile check to FilePreview #221

Open
ChengShi-1 opened this issue Nov 15, 2024 · 0 comments
Labels
FY25 Sprint 10 FY25 Sprint 10 (2024-11-06 - 2024-11-20) FY25 Sprint 11 FY25 Sprint 11 (2024-11-20 - 2024-12-04) FY25 Sprint 12 FY25 Sprint 12 (2024-12-04 - 2024-12-18) GREI Re-arch GREI re-architecture-related Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA: Collection Page SPA.Q4.2 Collection Page: Extended item cards information Waiting

Comments

@ChengShi-1
Copy link
Contributor

ChengShi-1 commented Nov 15, 2024

In order to show lock icon for restricted files in the collection page card, referring to this issue in the front-end repo IQSS/dataverse-frontend#548, we need deliver access and permission information for each file to the UI, so we could check whether the lock icon is needed. In filePreview, the following properties are missing, and needed to be added.
restricted: boolean
canDownloadFile: boolean
categories: array of string "categories" would be similar to what it is in metadata api, for example, {"label":"blob","description":"","restricted":true,"categories":["Data","Documentation"],"id":6}

For tabular files, there are some properties needed additionally.
tabularTags: array of string for example,{"tabularTags" : ["Event", "Genomics", "Geospatial"]}
variables: number/int shows how many variables we have for the tabular file
observations: number/int shows how many observations for the tabular file

In dataset item preview, thumbnail waits to be added as well.
thumbnail: string

Waiting for IQSS/dataverse#11027

@ChengShi-1 ChengShi-1 added SPA: Collection Page GREI Re-arch GREI re-architecture-related SPA.Q4.2 Collection Page: Extended item cards information FY25 Sprint 10 FY25 Sprint 10 (2024-11-06 - 2024-11-20) labels Nov 15, 2024
@ChengShi-1 ChengShi-1 self-assigned this Nov 15, 2024
@ChengShi-1 ChengShi-1 moved this to In Progress 💻 in IQSS Dataverse Project Nov 15, 2024
@ChengShi-1 ChengShi-1 changed the title add file access(restricted) and permission canDownloadFile check to FilePreview create file access use case Nov 18, 2024
@ChengShi-1 ChengShi-1 changed the title create file access use case add file access(restricted) and permission canDownloadFile check to FilePreview Nov 18, 2024
@ChengShi-1 ChengShi-1 added Size: 10 A percentage of a sprint. 7 hours. Original size: 10 labels Nov 19, 2024
@ChengShi-1 ChengShi-1 moved this from In Progress 💻 to This Sprint 🏃‍♀️ 🏃 in IQSS Dataverse Project Nov 20, 2024
@cmbz cmbz added the FY25 Sprint 11 FY25 Sprint 11 (2024-11-20 - 2024-12-04) label Nov 21, 2024
@ChengShi-1 ChengShi-1 moved this from This Sprint 🏃‍♀️ 🏃 to In Progress 💻 in IQSS Dataverse Project Dec 4, 2024
@ChengShi-1 ChengShi-1 moved this from In Progress 💻 to SPRINT READY in IQSS Dataverse Project Dec 4, 2024
@ChengShi-1 ChengShi-1 moved this from SPRINT READY to This Sprint 🏃‍♀️ 🏃 in IQSS Dataverse Project Dec 4, 2024
@cmbz cmbz added the FY25 Sprint 12 FY25 Sprint 12 (2024-12-04 - 2024-12-18) label Dec 5, 2024
@ChengShi-1 ChengShi-1 removed their assignment Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 10 FY25 Sprint 10 (2024-11-06 - 2024-11-20) FY25 Sprint 11 FY25 Sprint 11 (2024-11-20 - 2024-12-04) FY25 Sprint 12 FY25 Sprint 12 (2024-12-04 - 2024-12-18) GREI Re-arch GREI re-architecture-related Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA: Collection Page SPA.Q4.2 Collection Page: Extended item cards information Waiting
Projects
Status: This Sprint 🏃‍♀️ 🏃
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants