Skip to content

Conversation

@g-saracca
Copy link
Contributor

What this PR does / why we need it:

Adds a new use case to the package: Replace File.
It is focused when a Dataverse installation is configured to use S3 storage with direct upload enabled.
It is based on this API endpoint.

Which issue(s) this PR closes:

Suggestions on how to test this:

Code and Tests review.

@g-saracca g-saracca added Size: 3 A percentage of a sprint. 2.1 hours. GREI Re-arch GREI re-architecture-related Original size: 3 SPA.Q1.6 Files Page: Files Edit Options FY25 Sprint 17 FY25 Sprint 17 (2025-02-12 - 2025-02-26) labels Feb 24, 2025
@g-saracca g-saracca changed the title Feat/258 replace file use case Replace File use case Feb 24, 2025
@ChengShi-1 ChengShi-1 self-assigned this Feb 24, 2025
@ChengShi-1 ChengShi-1 self-requested a review February 24, 2025 16:56
@g-saracca
Copy link
Contributor Author

Updated branch with develop

Copy link
Contributor

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

good overall, just one concern

@g-saracca g-saracca removed their assignment Feb 25, 2025
Copy link
Contributor

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

There are something related to pid as well, and we could also add a functional test to it

@g-saracca
Copy link
Contributor Author

Hi @ChengShi-1, I addressed all your requested changes. I didn't add functional test for this, there are already unit and integration tests, it's a little bit tricky to add functional tests for this as they depend on s3 bucket direct upload and it will require too much boilerplate for things that are tested already in the integration tests.

Copy link
Contributor

@ChengShi-1 ChengShi-1 left a comment

Choose a reason for hiding this comment

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

Good to me, approve!

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

tests are passing - Merging PR

@ofahimIQSS ofahimIQSS merged commit 25520a1 into develop Feb 26, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Ready for QA ⏩ to Merged 🚀 in IQSS Dataverse Project Feb 26, 2025
@ofahimIQSS ofahimIQSS deleted the feat/258-replace-file-use-case branch February 26, 2025 15:14
@scolapasta scolapasta moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 17 FY25 Sprint 17 (2025-02-12 - 2025-02-26) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA.Q1.6 Files Page: Files Edit Options

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Implement use-case for replacing a file

4 participants