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

pulibrary / pdc_describe / cace366a-ffad-45f1-9b60-678e607fa527

14 May 2024 02:21PM UTC coverage: 60.862% (-35.0%) from 95.908%
cace366a-ffad-45f1-9b60-678e607fa527

push

circleci

jrgriffiniii
wip

1 of 3 new or added lines in 2 files covered. (33.33%)

1194 existing lines in 57 files now uncovered.

2076 of 3411 relevant lines covered (60.86%)

22.71 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
UNCOV
2
class ApprovedUploadSnapshot < BackgroundUploadSnapshot
×
UNCOV
3
  def finalize_upload
×
UNCOV
4
    new_files.each do |file|
×
UNCOV
5
      work.track_change(:added, file["filename"])
×
UNCOV
6
    end
×
UNCOV
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"],
×
UNCOV
8
                                   activity_type: WorkActivity::SYSTEM)
×
UNCOV
9
  end
×
10

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