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

pulibrary / bibdata / f04bc944-f9b4-4a42-8b26-dcacd0e3e688

11 Mar 2025 10:27PM UTC coverage: 34.017% (-58.1%) from 92.162%
f04bc944-f9b4-4a42-8b26-dcacd0e3e688

Pull #2653

circleci

christinach
Add new lc_subject_facet field.
Helps with the vocabulary work https://github.com/pulibrary/orangelight/pull/3386
In this new field we index only the lc subject heading and the subdivisions
So that when the user searches using the Details section, they can query solr for
all the subject headings and their divisions.

This is needed for the Subject browse Vocabulary work.
example: "lc_subject_facet": [
             "Booksellers and bookselling—Italy—Directories",
             "Booksellers and bookselling-Italy",
             "Booksellers and bookselling"
              ]
Pull Request #2653: Add new lc_subject_facet field.

1 of 3 new or added lines in 1 file covered. (33.33%)

2215 existing lines in 93 files now uncovered.

1294 of 3804 relevant lines covered (34.02%)

0.99 hits per line

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

25.0
/app/controllers/application_controller.rb
1
class ApplicationController < ActionController::Base
1✔
2
  # Prevent CSRF attacks by raising an exception.
3
  # For APIs, you may want to use :null_session instead.
4
  protect_from_forgery with: :exception
1✔
5
  include ApplicationHelper
1✔
6

7
  def after_sign_out_path_for(_resource_or_scope)
1✔
8
    request.referer
×
9
  end
10

11
  def handle_alma_exception(exception:, message:)
1✔
UNCOV
12
    if exception.is_a?(Alma::PerSecondThresholdError)
×
UNCOV
13
      Rails.logger.error "HTTP 429. #{message} #{exception}"
×
UNCOV
14
      head :too_many_requests
×
UNCOV
15
    elsif exception.is_a?(Alma::NotFoundError)
×
UNCOV
16
      Rails.logger.error "HTTP 404. #{message} #{exception}"
×
UNCOV
17
      head :not_found
×
UNCOV
18
    elsif exception.is_a?(Alma::StandardError)
×
UNCOV
19
      Rails.logger.error "HTTP 400. #{message} #{exception}"
×
UNCOV
20
      head :bad_request
×
UNCOV
21
    elsif exception.is_a?(Net::ReadTimeout)
×
UNCOV
22
      Rails.logger.error "HTTP 504. #{message} #{exception}"
×
UNCOV
23
      head :gateway_timeout
×
24
    else
UNCOV
25
      Rails.logger.error "HTTP 500. #{message} #{exception}"
×
UNCOV
26
      head :internal_server_error
×
27
    end
28
  end
29
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