Add a transfer ownership background job#17736
Conversation
nickvergessen
left a comment
There was a problem hiding this comment.
Blocking merge as per private chat
b47072e to
473021f
Compare
|
|
||
| const url = generateOcsUrl('/apps/files/api/v1/', 2) + 'transferownership' | ||
|
|
||
| axios.post(url, data) |
There was a problem hiding this comment.
Use async await and try...catch please :)
Not then...else
|
Ah mmm let me actually finish my todos... |
962e241 to
07501fa
Compare
|
Maybe instead of the path store the file id + name of the node? That makes it less error prone. |
|
We should probably have autocomplete on the user search? |
|
Good to go now form my PoV |
|
ToDo for later polishing:
|
Partly done with 24178cf but not pretty. |
|
All resolved. |
|
|
||
| const picker = getFilePickerBuilder(t('files', 'Select directory to transfer')) | ||
| .setMultiSelect(false) | ||
| .addMimeTypeFilter('httpd/unix-directory') |
There was a problem hiding this comment.
Intended? Now directories cannot be selected anymore.
There was a problem hiding this comment.
Yes it is the great joy of the selector. We want to be able tos elect
- files
- folders
- root folder
There was a problem hiding this comment.
Ah ok, just was thinking that it would only transfer directories accoring to the UI. Anyway transfering files always fails for me. Let me check where that goes wrong.
There was a problem hiding this comment.
There was something in the transer ownership service that checked if the path is a directory. I changed it to also allow files.
|
Ok review time. lets get this in |
cf09f19 to
a676b7f
Compare
This job can be initiated by a user to transfer a file/folder to a target user. The target user will have to accept the job. Once that is done the transfers is initiated in the background. Both parties get notified when the job is done. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
a6c5e58 to
08a1b92
Compare
Allow users to initiate transfer ownership
We need to find some way to initiate this.
TODO: