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

hypothesis / h / 7033
63%
master: 97%

Build:
Build:
LAST BUILD BRANCH: realtime-update-v1-h-only-1
DEFAULT BRANCH: master
Ran 17 Jul 2015 04:10PM UTC
Jobs 1
Files 74
Run time 5s
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
7033

push

travis-ci

seanh
Add NIPSA (Not In Public Site Areas) feature

This feature allows admin users to flag users as "nipsa'd", meaning that
these users' annotations will not appear in "public site areas".
Currently "public site areas" are defined as basically everywhere:
nipsa'd annotations are filtered out from the results returned by the
search API, so they won't appear in the stream or in the sidebar for
example.

- h/api/nipsa/ contains a new nipsa package with:
* nipsa table in db that records ids of nipsa'd users
* search functions for inserting nipsa-filtering commands into Es query
  dicts
* logic functions for using the nipsa feature, e.g. for nipsa'ing or
  unnipsa'ing a user. or asking whether a user is nipsa'd
* a worker function that adds the nipsa flag to or removes the nipsa
  flag from all of a user's past annotations

h/api/search.py: Now runs Es queries through the nipsa-filtering function

h/api/views.py: When creating a new annotation, if the user is nipsa'd
it now adds the nipsa flag to the annotation.

h/nipsa.py: A simple HTML page for admin users to nipsa and unnipsa
users.

Note on app/API separation: We don't want the app to read or write
database tables belonging to the API or vice-versa, nor do we want the
API to import modules defined in the app. The obvious place to put the
nipsa flag would be in a column on the user table (which belongs to the
app), but then when the user creates a new annotation the app would have
to communicate somehow to the API that the authorized user is nipsa'd
without the API reading from the user table or calling a function
defined in the app. Therefore the nipsa flag has been stored in a
separate nipsa table owned by the API instead.

1886 of 3109 relevant lines covered (60.66%)

0.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7033.1 17 Jul 2015 04:10PM UTC 0
60.66
Travis Job 7033.1
Source Files on build 7033
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7033
  • 5e5969f8 on github
  • Prev Build on nipsa (#7015)
  • Next Build on nipsa (#7067)
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