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

pulibrary / bibdata / 03936b48-38dc-426c-afe8-57993b6e85af

27 Jan 2026 10:01PM UTC coverage: 55.504% (-34.7%) from 90.159%
03936b48-38dc-426c-afe8-57993b6e85af

push

circleci

christinach
Add custom implementation of Deserialize in origin_place and coverage
If pref_label is missing then defalt to an empty string
If the exact_match exists and it has the wrong structure it returns None instead of erroring

related to [#3020]

80 of 81 new or added lines in 4 files covered. (98.77%)

4044 existing lines in 108 files now uncovered.

6288 of 11329 relevant lines covered (55.5%)

11.64 hits per line

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

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

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

UNCOV
11
  def handle_alma_exception(exception:, message:)
×
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
×
UNCOV
24
    else
×
UNCOV
25
      Rails.logger.error "HTTP 500. #{message} #{exception}"
×
UNCOV
26
      head :internal_server_error
×
UNCOV
27
    end
×
UNCOV
28
  end
×
29

UNCOV
30
  private
×
31

UNCOV
32
    def verify_admin!
×
33
      authenticate_user!
×
34
      head :forbidden unless current_user.catalog_admin?
×
UNCOV
35
    end
×
UNCOV
36
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

© 2026 Coveralls, Inc