-
Notifications
You must be signed in to change notification settings - Fork 73
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
Delete poll permanently #823
Conversation
Signed-off-by: Vinzenz Rosenkranz <vinzenz.rosenkranz@uni-tuebingen.de>
Signed-off-by: Vinzenz Rosenkranz <vinzenz.rosenkranz@uni-tuebingen.de>
Signed-off-by: Vinzenz Rosenkranz <vinzenz.rosenkranz@uni-tuebingen.de>
Signed-off-by: Vinzenz Rosenkranz <vinzenz.rosenkranz@uni-tuebingen.de>
Signed-off-by: Vinzenz Rosenkranz <vinzenz.rosenkranz@uni-tuebingen.de>
Signed-off-by: Vinzenz Rosenkranz <vinzenz.rosenkranz@posteo.de>
Hi @v1r0x, I think, you should rebase this branch against Have a good day, |
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.
Old orphaned entries got removed within the migration and permanent deletion works too.
unprocessed log entries get deleted too. Which means, that some notificatons will never be sent under some circumstances. A valuable price IMHO.
Tavis can be ignored, because it bases on a known error, which is fixed in the master branch. In the end there are no valuable tests... |
@@ -55,6 +55,7 @@ | |||
['name' => 'poll#list', 'url' => '/polls/list/', 'verb' => 'GET'], | |||
['name' => 'poll#get', 'url' => '/polls/get/{pollId}', 'verb' => 'GET'], | |||
['name' => 'poll#delete', 'url' => '/polls/delete/{pollId}', 'verb' => 'GET'], | |||
['name' => 'poll#deletePermanently', 'url' => '/polls/delete/permanent/{pollId}', 'verb' => 'GET'], |
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.
Any reason for not using the DELETE
verb?
['name' => 'poll#deletePermanently', 'url' => '/polls/delete/permanent/{pollId}', 'verb' => 'GET'], | |
['name' => 'poll#deletePermanently', 'url' => '/polls/delete/permanent/{pollId}', 'verb' => 'DELETE'], |
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.
Itried it, but it didn't work. Thus I thought this isn't supported in NC
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.
I think it should 😁 a quick research gave me:
https://github.com/nextcloud/spreed/blob/master/appinfo/routes.php#L274-L282
...
[
'name' => 'Room#leaveRoom',
'url' => '/api/{apiVersion}/room/{token}/participants/active',
'verb' => 'DELETE',
...
]
...
https://github.com/nextcloud/spreed/blob/master/src/services/participantsService.js#L75
...
const leaveConversationSync = function(token) {
axios.delete(generateOcsUrl('apps/spreed/api/v1/room', 2) + token + '/participants/active')
}
...
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.
For some strange reason it worked fine this time 😕 Maybe I did something wrong last time. Will push a fix when at my dev machine.
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.
FYI. Building works well on windows machines with some tools. Only signing is an issue.
Routes are still a little bit unsorted and could need some optimization. More verb using. |
@v1r0x Any further to do here? |
I solved the merge conflict and changed to ButtonDiv. |
Changing verb from get to delete is still not done. Beside that I'm ready to merge. Will fix on monday. |
Not really important for now, IMHO. It works the way, you resolved it. As the routes need some refactoring, this could be done later, together with the rest and maybe by switching to ressources in the routes.php. |
Then lgtm :) |
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.
lgtmt
👍 🦁
fix #801