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

pulibrary / pdc_describe / 7ae96b6b-0a64-4479-9fa1-8ba6526e2c87

20 Mar 2024 12:42PM UTC coverage: 30.068% (-66.2%) from 96.266%
7ae96b6b-0a64-4479-9fa1-8ba6526e2c87

Pull #1701

circleci

leefaisonr
makes it so that links open in new window
Pull Request #1701: Update language on submission form

1019 of 3389 relevant lines covered (30.07%)

0.4 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