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
MessageList long loading logs #4180
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks @chrisbobbe ! I'm about to merge this, in the interest of getting out a beta today that will help debug #4156. As you say in the last commit message, though, it'd be good to structure that logging code a bit better. A few thoughts:
|
gnprice
force-pushed
the
pr-msglist-loading-logs
branch
from
July 6, 2020 21:08
aef73e6
to
54c78b3
Compare
`mixed` is too general and implies that it could be something that's not JSONable. We could just use JSONable, but in the one place we emit these events, it's an `Error`. [1] [1]: https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/.23M4156.20Message.20List.20placeholders/near/921072.
For sending warnings from within the WebView outwards.
In steady state, these changes should be reverted or structured a bit better; it feels a bit haphazard. If the placeholders are still visible after 10 seconds, send a log to Sentry with all the events the WebView has received, with timestamps of receipt. Redact any `auth` fields by replacing the value with "redacted", and redact any `content` fields by extracting just the opening tag for the "message-loading" div so we can see if it has the "hidden" class. But we want to debug zulip#4156 ASAP, [1]: https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/.23M4156.20Message.20List.20placeholders/near/921700
gnprice
force-pushed
the
pr-msglist-loading-logs
branch
from
July 6, 2020 21:09
54c78b3
to
523b307
Compare
Cool, thanks for those suggestions! |
chrisbobbe
added a commit
to chrisbobbe/zulip-mobile
that referenced
this pull request
Jul 17, 2020
See 523b307 (reverted in a recent commit) for an earlier attempt at this. It was done quickly to debug a problem with minimal delay; this is the better-organized version of it, informed by Greg's suggestions [1]. [1]: zulip#4180 (comment)
chrisbobbe
added a commit
to chrisbobbe/zulip-mobile
that referenced
this pull request
Jul 17, 2020
See 523b307 (reverted in a recent commit) for an earlier attempt at this. It was done quickly to debug a problem with minimal delay; this is the better-organized version of it, informed by Greg's suggestions [1]. [1]: zulip#4180 (comment)
chrisbobbe
added a commit
to chrisbobbe/zulip-mobile
that referenced
this pull request
Jul 20, 2020
See 523b307 (reverted in a recent commit) for an earlier attempt at this. It was done quickly to debug a problem with minimal delay; this is the better-organized version of it, informed by Greg's suggestions [1]. [1]: zulip#4180 (comment)
chrisbobbe
added a commit
to chrisbobbe/zulip-mobile
that referenced
this pull request
Jul 21, 2020
See 523b307 (reverted in a recent commit) for an earlier attempt at this. It was done quickly to debug a problem with minimal delay; this is the better-organized version of it, informed by Greg's suggestions [1]. [1]: zulip#4180 (comment)
gnprice
pushed a commit
to chrisbobbe/zulip-mobile
that referenced
this pull request
Jul 22, 2020
See 523b307 (reverted in a recent commit) for an earlier attempt at this. It was done quickly to debug a problem with minimal delay; this is the better-organized version of it, informed by Greg's suggestions [1]. [1]: zulip#4180 (comment)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To help debugging #4156; see also discussion around https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/.23M4156.20Message.20List.20placeholders/near/921700, where we'll have the debugging conversations.