Skip to content

Conversation

@ChengShi-1
Copy link
Contributor

@ChengShi-1 ChengShi-1 commented May 7, 2025

What this PR does / why we need it:

add use case of getFileVersionSummaries

Which issue(s) this PR closes:

Related Dataverse PRs:

IQSS/dataverse#11464 waiting

Special notes for your reviewer:

Commented the part that is affected, will be uncommented after the dataverse PR is merged

Suggestions on how to test this:

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

Additional documentation:

@ChengShi-1 ChengShi-1 linked an issue May 7, 2025 that may be closed by this pull request
@github-actions github-actions bot added FY25 Sprint 22 FY25 Sprint 22 (2025-04-23 - 2025-05-07) GREI Re-arch GREI re-architecture-related SPA.Q2.2 Files Page: Versions Tab SPA: File Page labels May 7, 2025
@ChengShi-1 ChengShi-1 added Size: 3 A percentage of a sprint. 2.1 hours. Original size: 3 labels May 7, 2025
@ChengShi-1 ChengShi-1 moved this to In Progress 💻 in IQSS Dataverse Project May 7, 2025
@ChengShi-1 ChengShi-1 marked this pull request as ready for review May 7, 2025 14:29
@ChengShi-1 ChengShi-1 self-assigned this May 7, 2025
@cmbz cmbz added the FY25 Sprint 23 FY25 Sprint 23 (2025-05-07 - 2025-05-21) label May 7, 2025
@ChengShi-1 ChengShi-1 moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project May 9, 2025
@ChengShi-1 ChengShi-1 removed their assignment May 9, 2025
@g-saracca g-saracca moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project May 14, 2025
@g-saracca g-saracca self-assigned this May 14, 2025
Copy link
Contributor

@g-saracca g-saracca 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 left some comments.
I think I will review again when related PR gets merged 👍🏼

@ChengShi-1
Copy link
Contributor Author

Hi @g-saracca , Thanks for review! This PR is ready for review again.

I added a transformer to better structure the payload to data model of FileVersionSummaryInfo, and filtered out isDraft isDeaccessioned isReleased and versionNumber/minorNumber which could be described and included by versionState and datasetVersion.

this.buildApiEndpoint(this.filesResourceName, 'versionDifferences', fileId),
true
)
.then((response) => FileVersionSummaryInfoTransformers(response))
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @ChengShi-1 , just this comment and we are good to go.
Please use the transformers naming convention as in here instead of FileVersionSummaryInfoTransformers.

Copy link
Contributor

@g-saracca g-saracca left a comment

Choose a reason for hiding this comment

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

Great! Approving!

@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project May 15, 2025
@ofahimIQSS
Copy link
Contributor

looking good from my end. merging.

@ofahimIQSS ofahimIQSS merged commit 5002c75 into develop May 15, 2025
5 checks passed
@ofahimIQSS ofahimIQSS deleted the 297-file-page-file-version-summary-use-case branch May 15, 2025 14:56
@github-project-automation github-project-automation bot moved this from Ready for QA ⏩ to Merged 🚀 in IQSS Dataverse Project May 15, 2025
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 22 FY25 Sprint 22 (2025-04-23 - 2025-05-07) FY25 Sprint 23 FY25 Sprint 23 (2025-05-07 - 2025-05-21) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA: File Page SPA.Q2.2 Files Page: Versions Tab

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

File Page: File Version Summary Use Case

5 participants