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

rero / sonar / 1130
96%
master: 95%

Build:
Build:
LAST BUILD BRANCH: sonar-dev
DEFAULT BRANCH: master
Ran 27 Oct 2020 10:02AM UTC
Jobs 1
Files 112
Run time 31s
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
1130

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>

3417 of 3417 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1130.1 27 Oct 2020 10:02AM UTC 0
100.0
Travis Job 1130.1
Source Files on build 1130
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1130
  • 3d51ed34 on github
  • Prev Build on test (#1128)
  • Next Build on test (#1142)
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