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

Replace File use case #267

Merged
merged 10 commits into from
Feb 26, 2025
Merged

Replace File use case #267

merged 10 commits into from
Feb 26, 2025

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!

@ofahimIQSS
Copy link
Contributor

tests are passing - Merging PR

@ofahimIQSS ofahimIQSS merged commit 25520a1 into develop Feb 26, 2025
5 checks passed
@ofahimIQSS ofahimIQSS deleted the feat/258-replace-file-use-case branch February 26, 2025 15:14
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
3 participants