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

curationexperts / laevigata / ac241a7d-3809-494f-930e-b5e18f88afdf / 3
97%
main: 97%

Build:
DEFAULT BRANCH: main
Ran 08 Sep 2024 12:03AM UTC
Files 125
Run time 2s
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 Sep 2024 11:56PM UTC coverage: 82.148% (+1.9%) from 80.233%
ac241a7d-3809-494f-930e-b5e18f88afdf.3

push

circleci

mark-dce
[REFACTOR] Match embargo language between JS & Rails

**RATIONALE**
The code that was initially developed to record student embargo requests differed between the Ruby and Javascript code:

RUBY
* files_restricted
* toc_restricted
* all_restricted

JAVASCRIPT
* files_embargoed
* toc_embargoed
* abstract_embargoed

This change modifies all of the Javascript references to align with the definitions in [app/services/visibility_translator](https://github.com/curationexperts/laevigata/blob/v12.38.4/app/services/visibility_translator.rb#L21-L23)
```
class VisibilityTranslator
  RESTRICTED      = Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PRIVATE
  ALL_EMBARGOED   = 'all_restricted'.freeze
  FILES_EMBARGOED = 'files_restricted'.freeze
  TOC_EMBARGOED   = 'toc_restricted'.freeze
  OPEN            = Hydra::AccessControls::AccessRight::VISIBILITY_TEXT_VALUE_PUBLIC

...
```

2287 of 2784 relevant lines covered (82.15%)

16.77 hits per line

Source Files on job ac241a7d-3809-494f-930e-b5e18f88afdf.3
  • Tree
  • List 0
  • Changed 67
  • Source Changed 0
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 0
  • 80882b08 on github
  • Prev Job for on main (#9e3dfe8f-03f7-45d3-b9a0-0b219667e8a5.3)
  • Next Job for on main (#fcea04db-c114-4a12-9ffd-e1a4e7e65b19.4)
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