• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zulip / zulip-mobile / 8153
65%

Build:
DEFAULT BRANCH: master
Ran 01 Feb 2019 02:22AM UTC
Jobs 1
Files 364
Run time 43s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
8153

push

travis-ci

gnprice
notif: Properly delay getting `usersById` from Redux.

Handling this data here on AppEventHandlers, and passing it down
through the layers of the notification code, was always pretty messy.

With dcbe2ac86 "notif: Move notifications logic from AppEventHandlers"
in 22.0.107 it became a live bug, as we started taking `usersById`
from `props` when the AppEventHandler is first created and keeping it
around, for use when opening notifications.  This means that when the
user opened a group PM notification after the app was already running,
it would never work -- we'd end up navigating to HOME_NARROW.

Thanks to @borisyankov for spotting this bug, by studying that change
in the code.  It readily reproduces, but I think we've never heard
from someone hitting this issue in the wild.

Fix it, by cleaning up our Redux usage here.  The way to get data from
the state is with `getState()`... and a convenient way to pass access
to that down through layers of code is to just pass `dispatch` (which
we need a lot for other reasons), and have the code that needs to read
state be inside a thunk action.

Specifically here, that means `handleNotification` becomes an action
creator; its callers now `dispatch` the resulting thunk action, and
the whole call stacks above it stop knowing or caring about `usersById`.

The boundary between `notification/index` and `notificationActions`
remains kind of messy and porous.  For now, just move the newly-made
action creator from one to the other.

1403 of 2933 branches covered (47.83%)

Branch coverage included in aggregate %.

4835 of 6589 relevant lines covered (73.38%)

16.66 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8153.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv) 01 Feb 2019 02:22AM UTC 0
65.51
Travis Job 8153.1
Source Files on build 8153
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #8153
  • 9d5c0a73 on github
  • Prev Build on master (#8151)
  • Next Build on master (#8154)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc