-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Conversation
2729a4a
to
bcf95e7
Compare
bcf95e7
to
f53190e
Compare
There was a problem hiding this 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.
...pp/common/storages/peripherals/storage_interaction/one_drive/copy_template_folder_command.rb
Outdated
Show resolved
Hide resolved
modules/storages/app/services/projects/copy/storage_project_folders_dependent_service.rb
Outdated
Show resolved
Hide resolved
modules/storages/app/services/projects/copy/storage_project_folders_dependent_service.rb
Outdated
Show resolved
Hide resolved
modules/storages/app/services/storages/file_links/copy_file_links_service.rb
Show resolved
Hide resolved
attributes['creator_id'] = @user.id | ||
attributes['container_id'] = @work_packages_map[source_file_link.container_id] | ||
|
||
# TODO: Do something when this fails |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
b6ff58d
to
24af3be
Compare
There was a problem hiding this 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 👍🏾
modules/storages/app/services/storages/file_links/copy_file_links_service.rb
Show resolved
Hide resolved
modules/storages/app/workers/storages/copy_project_folders_job.rb
Outdated
Show resolved
Hide resolved
modules/storages/app/workers/storages/copy_project_folders_job.rb
Outdated
Show resolved
Hide resolved
6e273b9
to
75dfe3a
Compare
f301189
to
1391c36
Compare
1391c36
to
8856f81
Compare
8856f81
to
1aa09a2
Compare
PR #15054 includes this one and supersedes it. Closing for now. |
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. 🤣