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

uclibs / ucrate / 65f34765-48d6-4fab-91b8-8b2f1188012e

23 Jun 2025 04:50PM UTC coverage: 51.939% (-17.1%) from 69.069%
65f34765-48d6-4fab-91b8-8b2f1188012e

push

circleci

web-flow
Merge pull request #1170 from uclibs/fix/Rsolr_cron

LIBSCHOLAR-41 Replaces read_timout with timout in Solr initializer.

39 of 45 new or added lines in 1 file covered. (86.67%)

1019 existing lines in 73 files now uncovered.

2022 of 3893 relevant lines covered (51.94%)

58.6 hits per line

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

0.0
/app/controllers/hyrax/batch_uploads_controller.rb
1
# frozen_string_literal: true
2

UNCOV
3
require Hyrax::Engine.root.join('app/controllers/hyrax/batch_uploads_controller.rb')
×
4

UNCOV
5
module Hyrax
×
UNCOV
6
  class BatchUploadsController < ApplicationController
×
UNCOV
7
    private
×
8

9
    # @param [String] klass the name of the Hyrax Work Class being created by the batch
10
    # @note Cannot use a proper Class here because it won't serialize
UNCOV
11
    def create_update_job(klass)
×
UNCOV
12
      operation = BatchCreateOperation.create!(user: current_user,
×
UNCOV
13
                                               operation_type: "Batch Create")
×
14
      # ActionController::Parameters are not serializable, so cast to a hash
UNCOV
15
      BatchCreateJob.perform_later(current_user,
×
UNCOV
16
                                   params[:title].permit!.to_h,
×
UNCOV
17
                                   params[:uploaded_files],
×
UNCOV
18
                                   attributes_for_actor.to_h.merge!(model: klass),
×
UNCOV
19
                                   operation)
×
UNCOV
20
    end
×
21

22
    # Hyrax override to check for presense and validity of payload_concern param
UNCOV
23
    def build_form
×
UNCOV
24
      super
×
UNCOV
25
      raise ActionController::RoutingError, 'Not Found' unless work_type_specified?
×
UNCOV
26
      @form.payload_concern = params[:payload_concern]
×
UNCOV
27
    end
×
28

UNCOV
29
    def work_type_specified?
×
UNCOV
30
      Hyrax.config.registered_curation_concern_types.include? params[:payload_concern]
×
UNCOV
31
    end
×
UNCOV
32
  end
×
UNCOV
33
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