Skip to content

Conversation

@venkat-ecov-dev
Copy link
Contributor

@venkat-ecov-dev venkat-ecov-dev commented Feb 27, 2025

Related Issue(s):
##42

Proposed Changes:

  1. Created a custom copy_object function to interact with s3
  2. Handled server to server copy interaction in put api flow

PR Checklist:

  • This PR is made against the dev branch (all proposed changes except releases should be against dev, not main).
  • This PR has no breaking changes.
  • This PR contains only one commit.
  • I have updated or added new tests to cover the changes in this PR.
  • All tests are passing.
  • This PR affects the Source Cooperative Frontend & API,
    and I have opened issue/PR #XXX to track the change.

.copy_object((&copy_identifier_path).to_string(), key.clone(), None)
.await
{
Ok(_) => HttpResponse::NoContent().finish(),

Choose a reason for hiding this comment

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

IMO, we need to delete from source bucket after successful copy. Isn't it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in local testing its deleting the file from source folder.

@venkat-ecov-dev venkat-ecov-dev merged commit 1f1b3fa into dev Mar 7, 2025
@venkat-ecov-dev venkat-ecov-dev deleted the fix-file-move-issue branch March 7, 2025 16:33
This was referenced Mar 11, 2025
venkat-ecov-dev added a commit that referenced this pull request Mar 11, 2025
* fix: file empty on mv (#51)

* chore(dev): release 0.1.21 (#55)

Co-authored-by: source-coop-release[bot] <187876225+source-coop-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants