Uh oh!
There was an error while loading. Please reload this page.
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
473021fCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| 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
rullzer
commented
Nov 26, 2019
Ah mmm let me actually finish my todos... |
962e241 to
07501faComparerullzer
commented
Nov 27, 2019
Maybe instead of the path store the file id + name of the node? That makes it less error prone. |
rullzer
commented
Nov 27, 2019
We should probably have autocomplete on the user search? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rullzer
commented
Nov 27, 2019
Good to go now form my PoV |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ToDo for later polishing:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ChristophWurst
commented
Nov 27, 2019
Partly done with 24178cf but not pretty. |
rullzer
commented
Nov 27, 2019
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rullzer
commented
Nov 27, 2019
Ok review time. lets get this in |
cf09f19 to
a676b7fCompareThis 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
08a1b92Compare
Allow users to initiate transfer ownership
We need to find some way to initiate this.
TODO: