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

hypothesis / h / 9384
70%
master: 97%

Build:
Build:
LAST BUILD BRANCH: realtime-update-v1-h-only-1
DEFAULT BRANCH: master
Ran 14 Dec 2015 07:28PM UTC
Jobs 1
Files 92
Run time 3s
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
9384

push

travis-ci

seanh
Fix annotating while signed out

If the user creates annotations while signed out and then signs in, we
want those annotations to still be present in the sidebar after sign in,
rather than being lost.

Commit <a class=hub.com/hypothesis/h/commit/7a1b5ca8d99252d3a086a8a8103fca4702521d06">7a1b5ca8d had inadvertently broken
this.

The problem is that app.coffee destroys all AnnotationController
instances on sign in, and only creates new instances for those
annotations that have drafts.

7a1b5ca8d99252d3a086a8a8103fca4702521d06 removed a spurious call to
saveToDrafts() in vm.edit() but it turns out that this call was
(apparently inadvertently) the only thing that was causing drafts of
annotations created while signed out to be saved, and hence the only
thing causing these annotations to persist across sign ins.

So add a listener for the USER_CHANGED event and save drafts of
annotations on sign in, just before the AnnotationControllers get
destroyed.

2619 of 3719 relevant lines covered (70.42%)

0.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9384.1 14 Dec 2015 07:28PM UTC 0
70.42
Travis Job 9384.1
Source Files on build 9384
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9384
  • 7c083bc5 on github
  • Prev Build on AnnotationController-domain-model-view-model-refactor (#9382)
  • Next Build on AnnotationController-domain-model-view-model-refactor (#9387)
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