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

pulibrary / pdc_describe / 9cd1579d-9684-4b66-ae83-9619a7d64644

pending completion
9cd1579d-9684-4b66-ae83-9619a7d64644

Pull #1094

circleci

GitHub
Merge branch 'main' into sidekiq-prod
Pull Request #1094: Adding redis and sidekiq

1628 of 2126 relevant lines covered (76.58%)

97.58 hits per line

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

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