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

rero / sonar / 1240 / 1
96%
master: 95%

Build:
Build:
LAST BUILD BRANCH: sonar-dev
DEFAULT BRANCH: master
Ran 11 Nov 2020 10:39AM UTC
Files 116
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

11 Nov 2020 08:39AM UTC coverage: 100.0%. Remained the same
1240.1

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

Source Files on job 1240.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 952
  • Travis Job 1240.1
  • 58d97033 on github
  • Prev Job for on test (#1241.1)
  • Next Job for on test (#1244.1)
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