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

pulibrary / pdc_describe / 5db21940-59bd-4742-a25d-02e5e58d6646

pending completion
5db21940-59bd-4742-a25d-02e5e58d6646

Pull #1014

circleci

Carolyn Cole
Creating a folder in Amazon so the curators do not need to do it by hand fixes #1001
Pull Request #1014: Creating a folder in Amazon so the curators do not need to do it by hand

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

1703 of 1872 relevant lines covered (90.97%)

80.56 hits per line

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

66.67
/app/controllers/work_downloader_controller.rb
1
# frozen_string_literal: true
2
class WorkDownloaderController < ApplicationController
1✔
3
  def download
1✔
4
    work = Work.find(params[:id])
1✔
5
    if current_user && work.editable_by?(current_user)
1✔
6
      file_name = params[:filename]
×
7
      service = S3QueryService.new(work)
×
8
      redirect_to service.file_url(file_name)
×
9
    else
10
      Honeybadger.notify("Can not download work: #{work.id} is not editable by #{current_user}")
1✔
11
      redirect_to root_path, notice: I18n.t("works.download.privs")
1✔
12
    end
13
  end
14
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