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

pulibrary / tigerdata-app / 2dcfee60-1ba0-42e3-bd3e-74c95e7321dd

29 Oct 2025 06:06PM UTC coverage: 91.355% (+0.02%) from 91.333%
2dcfee60-1ba0-42e3-bd3e-74c95e7321dd

Pull #2120

circleci

web-flow
Merge branch 'main' into request-timing
Pull Request #2120: Log long Mediaflux requests

8 of 8 new or added lines in 1 file covered. (100.0%)

239 existing lines in 18 files now uncovered.

2811 of 3077 relevant lines covered (91.36%)

488.95 hits per line

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

100.0
/app/presenters/user_request_presenter.rb
1
# frozen_string_literal: true
UNCOV
2
class UserRequestPresenter
2✔
UNCOV
3
  attr_reader :user_request
2✔
4

UNCOV
5
  delegate :request_details, :job_id, :completion_time, :expiration_date, to: :user_request
2✔
6

UNCOV
7
  def initialize(user_request)
2✔
UNCOV
8
    @user_request = user_request
9✔
UNCOV
9
  end
10

UNCOV
11
  def list_contents_url
2✔
UNCOV
12
    url_helpers.project_list_contents_path(user_request.project)
2✔
UNCOV
13
  end
14

UNCOV
15
  def partial_name
2✔
UNCOV
16
    if user_request.state == UserRequest::COMPLETED
4✔
UNCOV
17
      "download_item"
2✔
UNCOV
18
    elsif user_request.state == UserRequest::FAILED
2✔
UNCOV
19
      "failed_item"
2✔
UNCOV
20
    end
UNCOV
21
  end
22

UNCOV
23
  def title
2✔
UNCOV
24
    request_details["project_title"]
4✔
UNCOV
25
  end
26

UNCOV
27
  def download_link
2✔
UNCOV
28
    helpers.link_to(title, url_helpers.project_file_list_download_path(job_id: job_id))
2✔
UNCOV
29
  end
30

UNCOV
31
  def expiration
2✔
UNCOV
32
    "Expires in #{helpers.time_ago_in_words(expiration_date)}"
2✔
UNCOV
33
  end
34

UNCOV
35
  def size
2✔
UNCOV
36
    helpers.number_to_human_size(request_details["file_size"])
2✔
UNCOV
37
  end
38

UNCOV
39
  private
2✔
40

UNCOV
41
    def url_helpers
2✔
UNCOV
42
      Rails.application.routes.url_helpers
4✔
UNCOV
43
    end
44

UNCOV
45
    def helpers
2✔
UNCOV
46
      ActionController::Base.helpers
6✔
UNCOV
47
    end
UNCOV
48
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