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

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

Build:
Build:
LAST BUILD BRANCH: realtime-update-v1-h-only-1
DEFAULT BRANCH: master
Ran 07 Dec 2015 04:02PM UTC
Files 91
Run time 1s
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

07 Dec 2015 03:50PM UTC coverage: 70.122%. First build
9256.1

push

travis-ci

nickstenning
Compute annotation authorizations correctly in streamer

Most authorisations on annotations are granted by virtue of a dynamic
ACL computed in `h.api.resources.Annotation`. This class uses
`h.api.auth.translate_annotation_principals` to map between annotation
permissions strings (such as "group:__world__") and internal Pyramid
principals such as `pyramid.security.Everyone` (AKA "system.Everyone").

The streamer has historically not used this ACL, and as a result a bug
was introduced where world-readable annotations were not sent to
logged-out clients.

This commit:

- Ensures that `h.api.groups.auth.group_principals` doesn't include
  "group:__world__" in the list of group principals for a given user.
  This principal is already represented by the "system.Everyone"
  principal which Pyramid already grants to *all* requests.
- Uses `h.api.auth.translate_annotation_principals` in `h.streamer` to
  ensure that annotation permissions strings are correctly compared with
  `request.effective_principals`.

2577 of 3675 relevant lines covered (70.12%)

0.7 hits per line

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