-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
Fix (and simplify) mass deletion of several tables #3034
Conversation
…nd local DNS/CNAME records Signed-off-by: DL6ER <[email protected]>
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.
@yubiuser You are right, for this table only the "(and simplify)" part applies |
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.
@yubiuser looking at this, this is actually not a new bug but in fact a more general bug of our toast notification system. Previously, we printed a single toast for deleting multiple entries and updated this on success/fail. Now we print individual toasts but can only update the last one (due to this aforementioned limitation). I guess we need to cluster again but - as the deletion events get fired async and individually, I'm not actually sure what would be the best Javascript handling to actually report about errors or success. |
Why do we need the initial blue message saying "Deleting message..." and then update the message? I think we could simply show the final message (success or error). |
I think we have all those "doing xxx" messages because on slower devices it might need some time before the operation finished and success/failure is displayed. So the users know their click triggered an action. |
Hmmm... In other words: can we simply display one toast with the initial "Doing xxxxxx..." message and when the answer is received we display another toast with the final message (not updating the initial one)? |
This should be fine I guess. |
You have a related PR (at least in part) where you made some changes to |
Oh, more than half a year ago PR which totall escaped me. Closing this one as it is a duplicate. I will port the changes into the older PR and rebase it on latest |
What does this implement/fix?
Fix (and simplify) mass deletion of DHCP lease, diagnosis messages, and local DNS/CNAME records
Related issue or feature (if applicable): see Discourse thread
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
git rebase
)Checklist:
developmental
branch.