• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
No new info detected.

curationexperts / laevigata / 0d10b93f-7d12-4108-bfd7-303659b33b6c

18 Jun 2025 03:38AM UTC coverage: 97.41% (-0.001%) from 97.411%
0d10b93f-7d12-4108-bfd7-303659b33b6c

Pull #2464

circleci

mark-dce
Disable embargo expiration notifications

Per discussions with SCO, they wish to reduce administrative overhead
by eliminating embargo expiration notifications.

We still need to process actual embargo expirations to change the
corresponding ETDs from a restricted to open status.

Therefore, this change leaves the schedule and service code in place
and simply comments out the calls to notification processing so that
we still get nightly expiration processing.
Pull Request #2464: Disable embargo expiration notifications

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

43 existing lines in 7 files now uncovered.

2821 of 2896 relevant lines covered (97.41%)

52.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.91
/app/models/committee_member.rb
1
# frozen_string_literal: true
2
require 'active_triples'
4✔
3

4
class CommitteeMember < ActiveTriples::Resource
4✔
5
  include ActiveTriples::RDFSource
4✔
6
  configure type: RDF::Vocab::FOAF.Person
4✔
7

8
  property :name, predicate: RDF::Vocab::FOAF.name
4✔
9
  property :affiliation, predicate: "http://vivoweb.org/ontology/core#School"
4✔
10
  property :netid, predicate: "http://open.vocab.org/terms/accountIdentifier"
4✔
11

12
  def to_s
4✔
13
    "#{name.first}, #{affiliation.first} (#{netid.first})"
×
14
  end
15

16
  # We need to convert the URI on initialize so that
17
  # ActiveTriples can create a 'hash URI' for this
18
  # resource.  This is necessary so that we can edit
19
  # nested committee members within the ETD edit form.
20
  # (Without the hash URI, we wouldn't be able to edit
21
  # the committee member in the same sparql query as the
22
  # ETD.)
23
  # This code was taken from an example spec in the
24
  # active-fedora gem:
25
  # spec/integration/nested_hash_resources_spec.rb
26
  def initialize(uri, parent)
4✔
27
    if uri.try(:node?)
2,834✔
28
      uri = RDF::URI("#nested_#{uri.to_s.gsub('_:', '')}")
402✔
29
    elsif uri.start_with?("#")
2,432✔
30
      uri = RDF::URI(uri)
×
31
    end
32
    super
2,834✔
33
  end
34

35
  def last_name
4✔
36
    name.first.split(", ").first
21✔
37
  end
38

39
  def first_name
4✔
40
    name.first.split(", ").last
21✔
41
  end
42

43
  def name_and_affiliation
4✔
44
    return name.first + ", " + affiliation.first unless affiliation.empty?
3,459✔
UNCOV
45
    name.first
57✔
46
  end
47
end
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

© 2025 Coveralls, Inc