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

hypothesis / h / 7943
66%
master: 97%

Build:
Build:
LAST BUILD BRANCH: realtime-update-v1-h-only-1
DEFAULT BRANCH: master
Ran 15 Sep 2015 07:10AM UTC
Jobs 1
Files 83
Run time 41min
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
7943

push

travis-ci

tilgovi
Refactor Pyramid routing and view configuration

When resources are backed by database models, keep the two separate
to improve extensibility and package isolation. By separating the
resource tree from the persistence models, the resource tree can be
extended without dealing dealing with database models and mappers.
With sub-classing of the resource tree, explicit containment of the API
is no longer needed for any view other than the exception views. The
annotation model also becomes simpler, no longer containing Pyramid
permissions details. In this manner, more details about groups and
users are lifted out of the annotation API package.

Remove the "admin party" mode for annotations since otherwise this
would introduce "upsert" operations using PUT for anyone in any group.
Simply removing this unused functionality allows the annotation resource
to be behave as if its model always exists, even if empty and not
persisted, which avoids having to deal with that case within the acl code
and the view callables.

Factor out a generic Collection resource and implement the stream and the
search in terms of that. Remove most of the logic from the stream view
by making the tag and user search shortcuts implemented as a collection of
collections of annotations so that the view itself need only inspect its
context for the presence of a query. Future work can remove the need for
a redirect by teaching the client about these routes, thereby beautifying
the stream URLs for real user and tag pages.

Make all the view configuration decorators and helpers more concise and
consistent.

132 of 132 new or added lines in 7 files covered. (100.0%)

2252 of 3412 relevant lines covered (66.0%)

0.66 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
h/buildext.py
3
100.0
h/api/__init__.py
7
100.0
h/resources.py
8
100.0
h/api/resources.py
8
100.0
h/views.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
h/buildext.py
2
100.0
h/api/__init__.py
2
100.0
h/api/views.py
4
100.0
h/resources.py
5
100.0
h/api/resources.py
11
100.0
h/api/models.py
13
100.0
h/views.py
27
100.0
h/accounts/views.py
Jobs
ID Job ID Ran Files Coverage
1 7943.1 15 Sep 2015 07:10AM UTC 0
66.0
Travis Job 7943.1
Source Files on build 7943
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7943
  • a139fa66 on github
  • Prev Build on resource-refactoring (#7932)
  • Next Build on resource-refactoring (#7958)
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