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

hypothesis / h / 10158
70%
master: 97%

Build:
Build:
LAST BUILD BRANCH: realtime-update-v1-h-only-1
DEFAULT BRANCH: master
Ran 11 Feb 2016 01:06PM UTC
Jobs 1
Files 90
Run time 11s
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
10158

push

travis-ci

nickstenning
Finish indirection of all Annotation/Document model access

This commit completes the indirection of all access to the Annotation
and Document models through `h.api.storage`. In some places this results
in less than pleasant code, but fear not: in due course all this work
will be reversed.

Unfortunately, in the mean time it is important that we have a single
place in the code where access to the models is mediated so that we can
switch between the ElasticSearch and PostgreSQL models objects on the
basis of a feature flag.

Aspects of this commit worth noting explicitly:

- `storage.annotation_from_dict(data)` constructs an Annotation model
  instance from a data dictionary.
- `Annotation#parent` has been replaced with `Annotation#parent_id`, so
  that the caller is now responsible for fetching the annotation from
  the id.
- `Annotation` and `Document` models are no longer exposed directly from
  `h.models` or from `h.api.models`.

16 of 16 new or added lines in 8 files covered. (100.0%)

2606 of 3741 relevant lines covered (69.66%)

0.7 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
100.0
h/feeds/views.py
3
100.0
h/notification/worker.py
Jobs
ID Job ID Ran Files Coverage
1 10158.1 11 Feb 2016 01:06PM UTC 0
69.66
Travis Job 10158.1
Source Files on build 10158
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #10158
  • 5fba5119 on github
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