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

uclibs / ucrate / 26b0560c-7626-477e-897f-b1bc76098c00

28 Aug 2025 06:13PM UTC coverage: 59.514% (-12.6%) from 72.086%
26b0560c-7626-477e-897f-b1bc76098c00

push

circleci

web-flow
LIBSCHOLAR-25 Run Brakeman on PRs (#1186)

* Add brakeman workflow and ruby installation action

* Add Brakeman CI workflow with high-confidence fail and report uploads

* Only warn if brakeman isn't updated

* Update brakeman to 5.4.1 in Gemfile.lock

* Update brakeman.ignore file

* Re-add ignore for EOL Rails

2252 of 3784 relevant lines covered (59.51%)

53.64 hits per line

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

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

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

5
module Hyrax
1✔
6
  class BatchUploadsController < ApplicationController
1✔
7
    private
1✔
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
11
    def create_update_job(klass)
1✔
12
      operation = BatchCreateOperation.create!(user: current_user,
×
13
                                               operation_type: "Batch Create")
14
      # ActionController::Parameters are not serializable, so cast to a hash
15
      BatchCreateJob.perform_later(current_user,
×
16
                                   params[:title].permit!.to_h,
17
                                   params[:uploaded_files],
18
                                   attributes_for_actor.to_h.merge!(model: klass),
19
                                   operation)
20
    end
21

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

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