Skip to content
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

Mark messages as read in is:dm and -is:dm search views #25113

Open
alya opened this issue Apr 13, 2023 · 5 comments · May be fixed by #25351
Open

Mark messages as read in is:dm and -is:dm search views #25113

alya opened this issue Apr 13, 2023 · 5 comments · May be fixed by #25351

Comments

@alya
Copy link
Contributor

alya commented Apr 13, 2023

Our intended design is that search views should mark messages as read if they do not break up conversations (i.e., all the messages in the conversation are shown, or none are).

To be consistent with this pattern, is:dm and -is:dm search views should mark messages as read (they currently do not).

Ideally, combining -is:dm with a stream and/or topic filter (where -is:dm is a no-op), or similarly is:dm with a DM conversation filter, should also mark messages as read, but it's not worth worrying about if it's complicated from a code perspective, as it's unlikely to come up much.

Of course, to be consistent with the general design, messages should not be marked as read in a search that combines is:dm with, e.g., a search keyword.

Related comment: #12883 (comment)

@zulipbot
Copy link
Member

Hello @zulip/server-search members, this issue was labeled with the "area: search" label, so you may want to check it out!

@syed-rafat
Copy link
Collaborator

@zulipbot claim

@zulipbot
Copy link
Member

Welcome to Zulip, @gravedigger0! We just sent you an invite to collaborate on this repository at https://github.com/zulip/zulip/invitations. Please accept this invite in order to claim this issue and begin a fun, rewarding experience contributing to Zulip!

Here's some tips to get you off to a good start:

As you work on this issue, you'll also want to refer to the Zulip code contribution guide, as well as the rest of the developer documentation on that site.

See you on the other side (that is, the pull request side)!

@syed-rafat
Copy link
Collaborator

@alya Can you please elaborate on this? Is it ever necessary?

Ideally, combining -is:private with a stream and/or topic filter

syed-rafat added a commit to syed-rafat/zulip that referenced this issue Apr 20, 2023
@alya alya changed the title Mark messages as read in is:private and -is:private search views Mark messages as read in is:dm and -is:dm search views Apr 27, 2023
syed-rafat added a commit to syed-rafat/zulip that referenced this issue Apr 30, 2023
It will mark messages as read when applying -is:dm filter alone or coupled with stream and topic filters. But it will not mark messages as read when there is also search term present.

fixes zulip#25113.
syed-rafat added a commit to syed-rafat/zulip that referenced this issue May 8, 2023
It will mark messages as read when applying -is:dm filter alone or
coupled with stream and topic filters. But it will not mark messages as
read when there is also search term present.

Extended Tests to ensure full coverage on filter.js

fixes zulip#25113.
syed-rafat added a commit to syed-rafat/zulip that referenced this issue May 8, 2023
It will mark messages as read when applying -is:dm filter alone or coupled with stream and topic filters. But it will not mark messages as read when there is also search term present.

fixes zulip#25113.
syed-rafat added a commit to syed-rafat/zulip that referenced this issue May 8, 2023
It will mark messages as read when applying -is:dm filter alone or
coupled with stream and topic filters. But it will not mark messages as
read when there is also search term present.

Extended Tests to ensure full coverage on filter.js

fixes zulip#25113.
syed-rafat added a commit to syed-rafat/zulip that referenced this issue May 8, 2023
It will mark messages as read when applying -is:dm filter alone or
coupled with stream and topic filters. But it will not mark messages as
read when there is also search term present.

Extended Tests to ensure full coverage on filter.js

fixes zulip#25113.
syed-rafat added a commit to syed-rafat/zulip that referenced this issue May 10, 2023
It will mark messages as read when applying -is:dm filter alone or
coupled with stream and topic filters. But it will not mark messages as
read when there is also search term present.

fixes zulip#25113.
syed-rafat added a commit to syed-rafat/zulip that referenced this issue May 10, 2023
It will mark messages as read when applying -is:dm filter alone or
coupled with stream and topic filters. But it will not mark messages as
read when there is also search term present.

Fixes zulip#25113.
syed-rafat added a commit to syed-rafat/zulip that referenced this issue May 24, 2023
It will mark messages as read when applying -is:dm filter alone or
coupled with stream and topic filters. But it will not mark messages as
read when there is also search term present.

Fixes zulip#25113.
syed-rafat added a commit to syed-rafat/zulip that referenced this issue Jun 2, 2023
It will mark messages as read when applying -is:dm filter alone or
coupled with stream and topic filters. But it will not mark messages as
read when there is also search term present.

Fixes zulip#25113.
@zulipbot
Copy link
Member

zulipbot commented Jun 12, 2023

@syed-rafat You have been unassigned from this issue because you have not made any updates for over 14 days. Please feel free to reclaim the issue if you decide to pick up again. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants