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

pulibrary / bibdata / eab5afc2-6f59-4b65-81bf-6840483c58da

26 Jun 2026 09:46PM UTC coverage: 75.156% (-15.5%) from 90.701%
eab5afc2-6f59-4b65-81bf-6840483c58da

Pull #3382

circleci

christinach
Rename group_field to cluster_id
Pull Request #3382: 321 result clustering

0 of 29 new or added lines in 1 file covered. (0.0%)

1975 existing lines in 89 files now uncovered.

9632 of 12816 relevant lines covered (75.16%)

17.14 hits per line

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

29.17
/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

30
  private
1✔
31

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