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

zulip / zulip-mobile / 7052
47%

Build:
DEFAULT BRANCH: master
Ran 01 Oct 2018 09:14PM UTC
Jobs 1
Files 363
Run time 31s
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
7052

push

travis-ci

gnprice
webview updates: Revert shallow comparison, return to lodash.isEqual.

This reverts commit e126bacd5.  @armaanahluwalia noticed that after
that commit, we would re-render messages in the webview on lots of
irrelevant changes -- notably on each character the user typed into
the compose box!  Its only purpose in the first place was
optimization; so just revert it, at least for now.

@borisyankov points out that in general, the optimization of doing
only a shallow equality check is only efficient when *some* layer in
the stack takes responsibility for noticing when there's no
substantive change and preventing a lot of wasted work.

React itself does this by diffing the virtual DOM, preventing wasted
updates to the native components (or to the DOM on the web), which
would be the most expensive step.  Our reducers usually also do this
for their respective pieces of the Redux state, which can save a lot
of work in the steps leading up to that.  When we have "derived"
selectors that do more than just pick out a piece of the state, we use
Reselect, whose caching accomplishes the same thing again.

But this is a spot where (a) a change won't be going through React,
but instead straight into the WebView; and (b) these three props come
from derived selectors where we've defeated Reselect's caching
mechanism; see #3015.  As a result, there's no other layer taking
responsibility for this, which is why this code needs to do so.

1014 of 2104 branches covered (48.19%)

Branch coverage included in aggregate %.

1960 of 3803 relevant lines covered (51.54%)

49.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7052.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv) 01 Oct 2018 09:14PM UTC 0
50.35
Travis Job 7052.1
Source Files on build 7052
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7052
  • 9fc76980 on github
  • Prev Build on master (#7051)
  • Next Build on master (#7054)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc