openproject icon indicating copy to clipboard operation
openproject copied to clipboard

Implements the CopyTemplateFolderCommand for OneDrive/Sharepoint

Open mereghost opened this issue 1 year ago • 0 comments

~~Relax... take a deep breath... Now imagine an incredible description for this PR.~~

Related WorkPackage: [OP#52450](https://community.openproject.org/projects/openproject/work_packages/52450)

What?

This PR intends to mirror the behaviour of Nextcloud::CopyTemplateFolder .

How?

Copy template folder basically copies a folder while renaming it. It is only applied on AMPF ProjectStorage.

Creating some robust tests required some minor changes that made it necessary to do some retouches on some of the already existing cassettes, which triggered some changes as to make tests good and robust enough to handle cassette changes.

Note that the OneDrive request return a 202 and a progress url . Said URL has the new itemId for the copied data.

What's really important?

Your mental health. :+1:

But on this PR, mainly the test cases and the CopyTemplateFolder logic.

mereghost avatar Feb 13 '24 14:02 mereghost