-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add a transfer ownership background job #17736
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
Conversation
nickvergessen
left a comment
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use async await and try...catch please :)
Not then...else
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.
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.
@skjnldsv fix
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.
No time
|
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? |
ChristophWurst
left a comment
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.
Otherwise good to go
|
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intended? Now directories cannot be selected anymore.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
juliusknorr
left a comment
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.
Tested and works 👍
cf09f19 to
a676b7f
Compare
ChristophWurst
left a comment
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.
Tested and works 👍
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 <[email protected]>
Signed-off-by: Christoph Wurst <[email protected]>
a6c5e58 to
08a1b92
Compare
Allow users to initiate transfer ownership
We need to find some way to initiate this.
TODO: