-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
Tweak deleting message #2498
Tweak deleting message #2498
Conversation
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: |
From this Reddit thread, where this ended up confusing me for a different reason, and then giving me more questions:
Edit: If there's a TL;DR here it's basically "even when it's clear what the value is, it's not clear why it is". |
If you delete multiple messages/clients/groups/.. there should be only one popup WIth "Deleting messages with ID: 1,2,3,4" But I get your point. For the users it does not make sense to have this information. It does not translate to anything meaningful for them. I'll see if we can improve this or simplay stating "Deleting XXX...". In case of an error I would keep the ID. I think we can have more meaningful output for groups/clients/adlists, but maybe not "messages".... Let's see... |
I am in favor of leaving the ID's in the message. This may be useful in diagnosing user problems in the future, and won't confuse any users. I would rather have it and rarely use it than rarely need it and not have it. "Deleting messages with ID: 160, 167, 168" would be my preferred output. |
There's clearly an argument that it's useful information to have for potential debugging purposes, but I don't think that necessarily translates into being useful information to have in a confirmation notification that's user facing. A (potentially quite large) list of IDs that might possibly be useful in the future is debug/log info. |
ef25ebb
to
b50595e
Compare
Signed-off-by: Christian König <[email protected]>
Signed-off-by: Christian König <[email protected]>
b50595e
to
4473955
Compare
I changed the code to show meaningful information to the user when there is some (e.g. name of the group which is deleted) or only print a generic statement if not ("Deleting messag(s)"). In case of an error, Please try it with |
Looks fine over here. Thanks yubi, for both your work, and being open to change. It's appreciated. |
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-web-v5-18-2-and-core-v5-15-1-released/60695/1 |
What does this PR aim to accomplish?:
Be more specific what we delete from one of the tables. The current wording could be misinterpreted. See: https://discourse.pi-hole.net/t/database-locked-one-symptom-deleting-one-entry-in-pi-hole-diagnosis-triggers-deleetion-of-1616-invisible-messages-which-fails/60388/7?u=yubiuser
I changed the code to show meaningful information to the user when there is some (e.g. name of the group which is deleted) or only print a generic statement if not ("Deleting messag(s)").
In case of an error, the corresponding
id
is always shown.By submitting this pull request, I confirm the following:
git rebase
)