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

zulip / zulip-mobile / 8153 / 1
65%
master: 65%

Build:
DEFAULT BRANCH: master
Ran 01 Feb 2019 02:22AM UTC
Files 364
Run time 39s
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

01 Feb 2019 02:15AM UTC coverage: 65.511% (-0.07%) from 65.581%
COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv

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

Source Files on job 8153.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24426
  • Travis Job 8153.1
  • 9d5c0a73 on github
  • Prev Job for COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv on master (#8151.1)
  • Next Job for COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv on master (#8154.1)
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