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

bugfix: Construct narrow appropriately before verifying and triggering footer notifications. #1054

Merged
merged 2 commits into from
Jun 18, 2021

Conversation

prah23
Copy link
Member

@prah23 prah23 commented Jun 17, 2021

PR Structure:

  • refactor: tests: Change req parameter to use a list of recipient emails.
    This commit refactors the test cases of the req parameter in
    test_notify_if_message_sent_outside_narrow from a string of ', '
    separated emails to a list of emails, consistent with the current type
    of the to attribute of PrivateComposition.
    Tests updated.

  • bugfix: helper: Use ', ' as separator to construct narrow to verify.
    This commit fixes a bug that previously caused a "Message sent outside
    current narrow." message in the footer in group pms (huddles) even when
    on the right narrow. This happened because of the wrong separator being
    used, ','. This has been changed to the relevant separator - ', '.
    Test added.

Testing and linting:
I've ran tests locally on each commit. I've also ran black checks and then the more extensive ./tools/lint-all.

@zulipbot zulipbot added the size: S [Automatic label added by zulipbot] label Jun 17, 2021
This commit fixes the type of the `req` parameter in
`test_notify_if_message_sent_outside_narrow` from a string of ', '
separated emails to a list of emails, consistent with the current type
of the `to` attribute of PrivateComposition.
This commit fixes a bug that previously caused a "Message sent outside
current narrow." message in the footer in group pms (huddles) even when
on the right narrow. This happened because of the wrong separator being
used, ','. This has been changed to the relevant separator - ', '.

Test added.
@neiljp
Copy link
Collaborator

neiljp commented Jun 18, 2021

@prah23 Thanks for noticing and fixing this 👍 I adjusted the commit text to fit our style and be more descriptive (and the new test case id) and am merging now 🎉

@neiljp neiljp merged commit 96743e1 into zulip:main Jun 18, 2021
@neiljp neiljp added this to the Next Release milestone Jun 18, 2021
@neiljp neiljp added the bug Something isn't working label Jun 18, 2021
@prah23 prah23 deleted the huddle_narrow_bug branch June 18, 2021 17:29
@zulipbot
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: refactoring bug Something isn't working size: S [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants