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

curationexperts / laevigata / 81d38ff1-0878-4ecd-9e35-f66597a69ef0
97%

Build:
DEFAULT BRANCH: main
Ran 17 Aug 2023 05:12AM UTC
Jobs 4
Files 155
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

17 Aug 2023 05:05AM UTC coverage: 93.34%. Remained the same
81d38ff1-0878-4ecd-9e35-f66597a69ef0

push

circleci

mark-dce
Fix embargo bug that is causing graduated ETDs to dispaly as embargoed

Scholarly Communication staff have noticed a number of ETDs that have
attached PDFs that are appearing as embargoed despite the contributors
having graduated and the ETDs having been published.

**ANALYSIS**
We have been able to track this down to a bug in how ETD SolrDocuments
compute the #under_embargo method.  The SolrDocument method just looks
for any value while the same method name on an actual ETD checks for a
date value and compares it against the current date.

At one time, embargos were either deleted rather than being deactivated
-OR-
The indexing service behaved differently in relation to the
embargo_release_date field (i.e. it was smart enough to not index it on
ETDs with deactivated embargos)

In either case, a regression occurred either in Hyrax or Laevigata at some
point that changed the behavior to index embargo_release_date on
SolrDocuments even when the embargo had expired or been deactivated.

**RESOLUTION**
Update the SolrDocument #under_embargo method to check against the current date to
match the behavior for ETD objects.

**BUG EXAMPLE**
```
irb(main):039:0> etd = Etd.find('rr171z58q')
=> #<Etd id: "rr171z58q", head: [#<ActiveTriples::Resource:0x788c0 ID:<http://127.0.0.1:8080/fedora/rest/prod/rr/17/1z/58/rr1...
irb(main):040:0> solr_doc = SolrDocument.find('rr171z58q')
Solr query: get select {:qt=>"document", :id=>"rr171z58q"}
Solr fetch (4.4ms)
=> #<SolrDocument:0x000055cabe2eefd0 @_source={"system_create_dtsi"=>"2022-05-02T15:28:40Z", "system_modified_dtsi"=>"2023-07...
irb(main):041:0> etd.under_embargo?
=> false
irb(main):042:0> solr_doc.under_embargo?
=> true
```

**RELEVANT CODE**
Hydra::AccessControls
https://github.com/samvera/hydra-head/blob/v11.0.7/hydra-access-controls/app/models/concerns/hydra/access_controls/embargoable.rb#L51-L53
https://github.com/samvera/hydra-head/blob/v11.0.7/hydra-access-controls/app/models/hydra/access_controls/embargo.... (continued)

1 of 1 new or added line in 1 file covered. (100.0%)

3013 of 3228 relevant lines covered (93.34%)

50.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 81d38ff1-0878-4ecd-9e35-f66597a69ef0.1 17 Aug 2023 05:12AM UTC 0
84.88
2 81d38ff1-0878-4ecd-9e35-f66597a69ef0.2 17 Aug 2023 05:12AM UTC 0
80.38
3 81d38ff1-0878-4ecd-9e35-f66597a69ef0.3 17 Aug 2023 05:13AM UTC 0
77.0
4 81d38ff1-0878-4ecd-9e35-f66597a69ef0.4 17 Aug 2023 05:13AM UTC 0
75.45
Source Files on build 81d38ff1-0878-4ecd-9e35-f66597a69ef0
Detailed source file information is not available for this build.
  • Back to Repo
  • CircleCI Build #81D38FF1...
  • ecfa1c36 on github
  • Prev Build on main (#16F2EFAE...)
  • Next Build on main (#4A813394...)
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