Fix mass-deletion of sessions on the settings -> API page#2765
Merged
Conversation
Signed-off-by: DL6ER <dl6er@dl6er.de>
Member
Member
|
Maybe it's an issue with |
Member
|
I wasn't able to replicate the "all but one" issue using different browsers (Chrome, Firefox and Edge) on the same machine. You used different windows from the same browser (using incognito mode). I'm not sure if this could be related to the issue you are seeing. We probably need more tests. |
Member
Author
|
The issue was the concurrency of the deletions. This is fixed by the latest commit |
…ls finished. This also ensures our own session is NOT deleted on error so the user can still see the generated error message Signed-off-by: DL6ER <dl6er@dl6er.de>
5e3f2ca to
7595ceb
Compare
yubiuser
reviewed
Oct 24, 2023
yubiuser
left a comment
Member
There was a problem hiding this comment.
We have 3 functions now with very similar names: deleteSessions(), delSessions(ids) and delSession(id,...). The first one does not do much on it's own, maybe the single line var ids = [$(this).attr("data-del-id")]; can be part of delSessions()?
Signed-off-by: DL6ER <dl6er@dl6er.de>
yubiuser
approved these changes
Oct 26, 2023
1 task
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this implement/fix?
See title and related Discourse topic.
Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
git rebase)Checklist:
developmentalbranch.