add file access(restricted) and permission canDownloadFile check to FilePreview #221
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
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 fileobservations: number/int
shows how many observations for the tabular fileIn dataset item preview, thumbnail waits to be added as well.
thumbnail: string
Waiting for IQSS/dataverse#11027
The text was updated successfully, but these errors were encountered: