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

Refactor extract File Metadata to its own model #285

Merged
merged 15 commits into from
Feb 8, 2024

Conversation

MellyGray
Copy link
Contributor

@MellyGray MellyGray commented Jan 23, 2024

What this PR does / why we need it:

This PR introduces a refactor to separate file metadata into its own model. This change is necessary to enable the reuse of file metadata in both the File model and the FilePreview model

Special notes for your reviewer:

I didn't add this PR to the sprint board because I think that this PR is part of the other PR #281. I've just split the PR to facilitate the code review, but once both PRs are reviewed we can merge this one into #281 to QA them together. Let me know if that makes sense

Suggestions on how to test this:

Run boh unit and e2e tests and check that everything works as usual

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

no

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

no

@coveralls
Copy link

coveralls commented Jan 23, 2024

Coverage Status

coverage: 97.548% (-0.4%) from 97.92%
when pulling 16fad5f on refactor/263-extract-file-metadata
into d5c11f3 on feature/263-add-filemetadata-section-to-the-file-page.

@MellyGray MellyGray marked this pull request as ready for review January 23, 2024 12:39
@MellyGray MellyGray added Size: 3 A percentage of a sprint. 2.1 hours. pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows labels Jan 31, 2024
Base automatically changed from feature/263-add-filemetadata-section-to-the-file-page to develop February 1, 2024 12:18
@ekraffmiller ekraffmiller self-assigned this Feb 2, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I like how the code is shared between the Dataset Page and the File Page!
I just have some questions about file access logic.

Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the issues were addressed, looks good!

@ekraffmiller ekraffmiller removed their assignment Feb 5, 2024
@GPortas GPortas self-assigned this Feb 8, 2024
Copy link
Contributor

@GPortas GPortas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes have been reviewed and workflows work as usual.

Approving.

@GPortas GPortas merged commit 4e949d3 into develop Feb 8, 2024
13 of 14 checks passed
@GPortas GPortas deleted the refactor/263-extract-file-metadata branch February 8, 2024 15:14
jayanthkomarraju pushed a commit to jayanthkomarraju/dataverse-frontend that referenced this pull request May 31, 2024
Refactor extract File Metadata to its own model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows Size: 3 A percentage of a sprint. 2.1 hours. SPA: File Page
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants