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

Introduces the CopyProjectFolderJob #14892

Closed
wants to merge 3 commits into from
Closed

Conversation

mereghost
Copy link
Contributor

Relate Work Package: OP#53035

What?

Due to the need of polling for OneDrive we have split the copy and file link setup process from the main ProjectCopy service.

How?

I introduced a new job and a couple of new services, deprecating the already existing ones.

More details, tonight at OpenProject News. 🤣

@mereghost mereghost self-assigned this Mar 6, 2024
@mereghost mereghost force-pushed the impl/split-storage-jobs branch from 2729a4a to bcf95e7 Compare March 6, 2024 10:41
@mereghost mereghost requested review from akabiru, Kharonus and a team March 6, 2024 10:45
@mereghost mereghost force-pushed the impl/split-storage-jobs branch from bcf95e7 to f53190e Compare March 6, 2024 11:32
@mereghost mereghost marked this pull request as ready for review March 6, 2024 11:32
Copy link
Member

@Kharonus Kharonus left a comment

Choose a reason for hiding this comment

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

At least one thing me thinks is preventing a merge right now. The others are open questions und uncertain issues.

attributes['creator_id'] = @user.id
attributes['container_id'] = @work_packages_map[source_file_link.container_id]

# TODO: Do something when this fails
Copy link
Member

Choose a reason for hiding this comment

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

🟡 resolve todo? 😁

This is not part of current implementation, I know. What should we do?

CopyFileLinksService seems to not return a ServiceResult right now. Should it return one and log the included failures from the caller?

Or simply log the failures when the creation fails.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was part of the feedback I wanted. I think for now I'll just log the errors.

We need to decide on what to return when some object does multiple operations, some of which might fail but not be catastrophic. A success with errors feels about right, but I'm no sure. Same goes of for having a result on a failure, feels correct but... idk.

@mereghost mereghost force-pushed the impl/split-storage-jobs branch from b6ff58d to 24af3be Compare March 6, 2024 15:59
akabiru
akabiru previously approved these changes Mar 6, 2024
Copy link
Member

@akabiru akabiru 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 to me 👍🏾

@mereghost mereghost force-pushed the impl/split-storage-jobs branch 2 times, most recently from 6e273b9 to 75dfe3a Compare March 11, 2024 16:19
@mereghost mereghost requested a review from Kharonus March 18, 2024 08:43
@mereghost mereghost force-pushed the impl/split-storage-jobs branch 2 times, most recently from f301189 to 1391c36 Compare March 20, 2024 10:05
@akabiru akabiru dismissed their stale review March 20, 2024 13:28

stale

@mereghost mereghost force-pushed the impl/split-storage-jobs branch from 1391c36 to 8856f81 Compare March 21, 2024 13:13
@mereghost mereghost force-pushed the impl/split-storage-jobs branch from 8856f81 to 1aa09a2 Compare March 25, 2024 15:36
@mereghost
Copy link
Contributor Author

PR #15054 includes this one and supersedes it. Closing for now.

@mereghost mereghost closed this Mar 25, 2024
@mereghost mereghost deleted the impl/split-storage-jobs branch June 17, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants