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

pulibrary / orangelight / 24016876-b24d-4304-a82e-b49d0755d6cd

11 Dec 2024 06:24PM UTC coverage: 95.834% (-0.6%) from 96.407%
24016876-b24d-4304-a82e-b49d0755d6cd

Pull #4582

circleci

christinach
Fix cancel button for feedback forms

Closes #4570
Pull Request #4582: Blacklight upgrade to 8.6.1

6004 of 6265 relevant lines covered (95.83%)

1516.0 hits per line

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

78.57
/app/services/search_service_compatibility_wrapper.rb
1
# frozen_string_literal: true
2
# We can remove this service (and just call search_service directly)
3
# after we migrate to Blacklight 8
4
# :reek:UncommunicativeVariableName
5
class SearchServiceCompatibilityWrapper
3✔
6
  def initialize(search_service)
3✔
7
    @search_service = search_service
82✔
8
  end
9

10
  # :reek:DuplicateMethodCall
11
  # :reek:FeatureEnvy
12
  def fetch(...)
3✔
13
    if Orangelight.using_blacklight7?
18✔
14
      _response, document = search_service.fetch(...)
×
15
      document
×
16
    else
17
      search_service.fetch(...)
18✔
18
    end
19
  end
20

21
  # :reek:DuplicateMethodCall
22
  # :reek:FeatureEnvy
23
  def search_results(...)
3✔
24
    if Orangelight.using_blacklight7?
64✔
25
      search_service.search_results(...).first
×
26
    else
27
      search_service.search_results(...)
64✔
28
    end
29
  end
30

31
  private
3✔
32

33
    attr_reader :search_service
3✔
34
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