-
Notifications
You must be signed in to change notification settings - Fork 259
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
msglist: Handle UserTopicEvent, hiding/showing messages as needed #822
Conversation
This has gathered some conflicts; could you resolve those please? |
888ec02
to
ce08cfe
Compare
Sure — done. |
Thanks! LGTM, but I think we intend to wait for #787 before merging this. |
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.
Went through the PR. Looks good to me too! Just one nit question.
// thorough unit tests. So these tests focus on the rest of the logic. | ||
|
||
final stream = eg.stream(); | ||
const String topic = 'foo'; |
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.
nit: Is it intentional that topic
is only used in setVisibility
? It might be helpful to reuse it to indicate elsewhere in the tests that this particular topic is affected by the helper.
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.
Yeah, thanks — that would be clearer.
ce08cfe
to
3d37653
Compare
Thanks for the reviews! Now that #787 is merged, I've rebased this and addressed the comment above; PTAL. |
Thanks, LGTM! Just awaiting @PIG208, then. |
Other than the example_data conflict, this looks good to me! |
I just hit one of these in a new test I was writing, and wanted more information to debug: which of the two conditions failed? I seem to recall hearing a report of this in a non-test context recently, too, but I'm not finding it on a quick search of the tracker or of Zulip.
In particular this means that repeated calls `eg.stream()` with no arguments will get distinct names, as well as IDs, so that they can all be added to the same store without collision. Then also simplify away the various places where a test was passing a stream name when the only thing about the name that mattered to the test was being distinct from other names (or when nothing about the name mattered to the test at all).
In particular this will allow us to start offering UI for muting and unmuting topics, and have the message list the user is looking at update appropriately when they do so. Fixes: zulip#421
Thanks! Rebased; merging. |
3d37653
to
d37f0f7
Compare
In particular this will allow us to start offering UI for muting
and unmuting topics, and have the message list the user is looking at
update appropriately when they do so.
Fixes: #421
The first two commits are taken from #787 (/cc @PIG208):
aef0ab1 test [nfc]: Allow overriding original stream and add checks.
9c50ba5 message: Handle moved messages from UpdateMessageEvent.
So they can be ignored in reviewing this PR, and we'll plan to merge #787 before this one.