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

Update file restriction fileds and tabular information to the file preview #234

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

ChengShi-1
Copy link
Contributor

@ChengShi-1 ChengShi-1 commented Jan 3, 2025

What this PR does / why we need it:

In collection page, some missing information is needed for every card item, including the lock icon, tags(categories), and tabular data info, so we need update in FilePreview model.

New fields include:

 restricted: boolean
 canDownloadFile: boolean
 categories: string[]
 tabularTags?: string[]
 variables?: number
 observations?: number

In datasetPreview, new field added
image_url: string

Which issue(s) this PR closes:

Related Dataverse PRs:

Special notes for your reviewer:

Suggestions on how to test this:

Run all testcases and visually inspect

Is there a release notes update needed for this change?:

Additional documentation:

@ChengShi-1 ChengShi-1 added FY25 Sprint 14 FY25 Sprint 14 (2025-01-02 - 2025-01-15) SPA: Collection Page SPA.Q4.2 Collection Page: Extended item cards information Size: 3 A percentage of a sprint. 2.1 hours. Original size: 3 GREI Re-arch GREI re-architecture-related labels Jan 3, 2025
@ChengShi-1 ChengShi-1 removed their assignment Jan 3, 2025
@ChengShi-1 ChengShi-1 marked this pull request as ready for review January 3, 2025 19:06
@ChengShi-1 ChengShi-1 marked this pull request as draft January 3, 2025 19:09
@ChengShi-1 ChengShi-1 marked this pull request as ready for review January 3, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 14 FY25 Sprint 14 (2025-01-02 - 2025-01-15) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA: Collection Page SPA.Q4.2 Collection Page: Extended item cards information
Projects
Status: Ready for Review ⏩
Development

Successfully merging this pull request may close these issues.

add file access(restricted) and permission canDownloadFile check to FilePreview
1 participant