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

pulibrary / pdc_describe / 9091a1ae-29be-458c-984a-339d213919c4

12 Dec 2024 07:41PM UTC coverage: 26.434% (-69.7%) from 96.113%
9091a1ae-29be-458c-984a-339d213919c4

Pull #2000

circleci

jrgriffiniii
Removing integration with ActiveStorage
Pull Request #2000: Bump actionpack from 7.2.1.1 to 7.2.2.1

945 of 3575 relevant lines covered (26.43%)

0.35 hits per line

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

0.0
/app/models/approved_upload_snapshot.rb
1
# frozen_string_literal: true
2
class ApprovedUploadSnapshot < BackgroundUploadSnapshot
×
3
  def finalize_upload
×
4
    new_files.each do |file|
×
5
      work.track_change(:added, file["filename"])
×
6
    end
×
7
    WorkActivity.add_work_activity(work.id, "#{new_files.count} #{'file'.pluralize(new_files.count)} were moved to the post curation bucket", new_files.first["user_id"],
×
8
                                   activity_type: WorkActivity::SYSTEM)
×
9
  end
×
10

11
  def store_files(s3_files, current_user: nil)
×
12
    save # needed so I can reuse the code in backroundUploadSnapshot
×
13
    self.files = s3_files.map do |file|
×
14
      { "filename" => file.filename, "checksum" => file.checksum,
×
15
        "upload_status" => "started", user_id: current_user&.id, snapshot_id: id }
×
16
    end
×
17
  end
×
18
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