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

hypothesis / h / 10158 / 1
70%
master: 97%

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

11 Feb 2016 01:01PM UTC coverage: 69.661%. First build
10158.1

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`.

2606 of 3741 relevant lines covered (69.66%)

0.7 hits per line

Source Files on job 10158.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10158
  • Travis Job 10158.1
  • 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