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

rero / sonar / 1240
96%
master: 95%

Build:
Build:
LAST BUILD BRANCH: rep-release
DEFAULT BRANCH: master
Ran 11 Nov 2020 10:39AM UTC
Jobs 1
Files 116
Run time 32s
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
1240

push

travis-ci

sebastiendeleze
documents: improve files permissions

This PR improves files permissions to match what is currently implemented in RERO DOC.

* Installs `netaddr` library to check if an IP is in a specific range.
* Adds a function to check if an IP is in a list of ranges.
* Refactors `get_file_restriction` function, to apply the right rules for adding restriction to file.
* Refactors command for importing permissions from RERO DOC.
* Adds a new property `access` in files metadata in order to specify the access type and modify `restricted` property to be more explicit.
* Adds a new property `allowedIps` to organisation JSON schema, to store allowed IPs for the organisation.
* Adds a new property `allowedIps` to organisation elasticsearch mapping.
* Serializes `allowedIps` to get this property in API calls.
* Displays embargo date only if file is not restricted.
* Closes #328.

Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>

3538 of 3538 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1240.1 11 Nov 2020 10:39AM UTC 0
100.0
Travis Job 1240.1
Source Files on build 1240
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1240
  • 58d97033 on github
  • Prev Build on test (#1241)
  • Next Build on test (#1244)
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