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 notification bot messages for resolved topics, on undo in a short grace period #19181
Comments
@zulipbot claim |
Currently we send a notification to the topic if it has been resolved or unresolved even if there is an immediate event of resolving and then unresolving or vice-versa. This adds a setting of RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS under which if a topic has been unresolved after being resolved immediately and the last message was the notification of resolving, then delete the last message and don't send a new notification and vice-versa. Fixes zulip#19181.
Currently we send a notification to the topic if it has been resolved or unresolved even if there is an immediate event of resolving and then unresolving or vice-versa. This adds a setting of RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS under which if a topic has been unresolved after being resolved immediately and the last message was the notification of resolving, then delete the last message and don't send a new notification and vice-versa. Fixes zulip#19181.
Currently we send a notification to the topic if it has been resolved or unresolved even if there is an immediate event of resolving and then unresolving or vice-versa. This adds a setting of RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS under which if a topic has been unresolved after being resolved immediately and the last message was the notification of resolving, then delete the last message and don't send a new notification and vice-versa. Fixes zulip#19181.
If it's alright, I'd like to request an additional requirement for this change. Currently, when you tick the resolved icon, it bubbles the topic to the top because it has received new activity. This behavior just adds noise to the stream. The intention is to mark the topic as closed / done, not give it new life. Would it be possible for the notification to assume the timestamp of the last post on the topic and not update the unread count? |
Currently we send a notification to the topic if it has been resolved or unresolved even if there is an immediate event of resolving and then unresolving or vice-versa. This adds a setting of RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS under which if a topic has been unresolved after being resolved immediately and the last message was the notification of resolving, then delete the last message and don't send a new notification and vice-versa. We use the new message.type field to precisely identify relevant messages. Fixes zulip#19181.
Currently we send a notification to the topic if it has been resolved or unresolved even if there is an immediate event of resolving and then unresolving or vice-versa. This adds a setting of RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS under which if a topic has been unresolved after being resolved immediately and the last message was the notification of resolving, then delete the last message and don't send a new notification and vice-versa. We use the new message.type field to precisely identify relevant messages. Fixes zulip#19181.
Currently we send a notification to the topic if it has been resolved or unresolved even if there is an immediate event of resolving and then unresolving or vice-versa. This adds a setting of RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS under which if a topic has been unresolved after being resolved immediately and the last message was the notification of resolving, then delete the last message and don't send a new notification and vice-versa. We use the new message.type field to precisely identify relevant messages. Fixes zulip#19181.
Currently we send a notification to the topic if it has been resolved or unresolved even if there is an immediate event of resolving and then unresolving or vice-versa. This adds a setting of RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS under which if a topic has been unresolved after being resolved immediately and the last message was the notification of resolving, then delete the last message and don't send a new notification and vice-versa. We use the new message.type field to precisely identify relevant messages. Fixes zulip#19181.
Currently we send a notification to the topic if it has been resolved or unresolved even if there is an immediate event of resolving and then unresolving or vice-versa. This adds a setting of RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS under which if a topic has been unresolved after being resolved immediately and the last message was the notification of resolving, then delete the last message and don't send a new notification and vice-versa. We use the new message.type field to precisely identify relevant messages. Fixes zulip#19181.
Currently we send a notification to the topic if it has been resolved or unresolved even if there is an immediate event of resolving and then unresolving or vice-versa. This adds a setting of RESOLVE_TOPIC_UNDO_GRACE_PERIOD_SECONDS under which if a topic has been unresolved after being resolved immediately and the last message was the notification of resolving, then delete the last message and don't send a new notification and vice-versa. We use the new message.type field to precisely identify relevant messages. Fixes zulip#19181.
(I've edited this title to reflect what I believe is the intention.) |
This is a good request, and this isn't the right thread for it. This issue thread is about behavior in the case where the topic gets resolved and promptly unresolved (or vice versa). What you're asking for is behavior to reduce noise in the normal case, where the topic gets resolved and stays resolved. There's now a separate issue #19709 which covers part of this -- not updating the unread count. (With some additional wrinkles -- if you'd rather not have those wrinkles, then either that issue, or a new issue linking to that one, would be the place to discuss that.) I think once the notification doesn't count as unread, that will take care of this and there won't be a need for an additional hack relating to timestamps. But again either #19709, or a fresh issue linking to that one, would be the place to discuss if you think you'd want an additional behavior like that. |
@zulipbot claim |
I didn't realise the work on this is blocked due to database migration. Hence, un claiming it. |
When you (un)resolve a topic, we send an automated notification noting that it was resolved. This can be unfortunate in the event of a misclick, since one ends up creating two spam messages. Rather than making it harder to resolve topics, we'd like to instead design a grace period. We'd modify
maybe_send_resolve_topic_notifications
to add the following logic:do_delete_messages
on the notice.(And presumably the opposite for if you accidentally toggled in the other direction).
https://chat.zulip.org/#narrow/stream/101-design/topic/closing.2Fsolving.20a.20topic.20.28.2311154.29/near/1227897 has background.
The text was updated successfully, but these errors were encountered: