Skip to content

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

@ChengShi-1

Description

@ChengShi-1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FY25 Sprint 10FY25 Sprint 10 (2024-11-06 - 2024-11-20)FY25 Sprint 11FY25 Sprint 11 (2024-11-20 - 2024-12-04)FY25 Sprint 12FY25 Sprint 12 (2024-12-04 - 2024-12-18)FY25 Sprint 14FY25 Sprint 14 (2025-01-02 - 2025-01-15)GREI Re-archGREI re-architecture-relatedOriginal size: 10SPA.Q4.2Collection Page: Extended item cards informationSPA: Collection PageSize: 10A percentage of a sprint. 7 hours.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions