-
Notifications
You must be signed in to change notification settings - Fork 309
initial_snapshot: Add emailAddressVisibility override in InitialSnapshot method #1011
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -801,7 +801,7 @@ InitialSnapshot initialSnapshot({ | |
zulipMergeBase: zulipMergeBase ?? recentZulipVersion, | ||
alertWords: alertWords ?? ['klaxon'], | ||
customProfileFields: customProfileFields ?? [], | ||
emailAddressVisibility: EmailAddressVisibility.everyone, | ||
emailAddressVisibility: emailAddressVisibility ?? EmailAddressVisibility.everyone, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! And one more thing I missed last time. In the commit message summary line—
So, how about:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, thank you. Will update that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have updated the commit message |
||
serverTypingStartedExpiryPeriodMilliseconds: | ||
serverTypingStartedExpiryPeriodMilliseconds ?? 15000, | ||
serverTypingStoppedWaitPeriodMilliseconds: | ||
|
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.
Commit message nit: I think the paragraph ("The InitialSnapshot method…") isn't necessary; it just repeats what's already clear in the code change. Instead of that paragraph, how about:
emailAddressVisibility
. That helps make clear what changes this is making to our tests' behavior, if any. (From a quick search, I think none of the callers were passing it.)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.
Okay, thanks for the comment, I will update the commit message.
Yes, at the moment no callers were passing
emailAddressVisibility
, but when I was working on the @mention autocomplete items, I was trying to write a test that required passing theemailAddressVisibility
, that is when I discovered the issue, Even if it is not used now, I think there will be future scenarios where it would be needed.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.
Makes sense. Yes, this is still a good change to make! :) Just that it's helpful to know if it's a change that affects behavior of existing tests. It sounds like it doesn't, and that's helpful to write down in the commit message, for anyone who's reading it who doesn't know that yet.
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.
Please post on the PR thread when you've made the change and it's ready for another review.
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.
Hi @chrisbobbe
I have made updates to the commit, please review.