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

pulibrary / tigerdata-app / ae02137a-70bd-498e-bde2-dc1371c6d829

04 Nov 2025 07:51PM UTC coverage: 91.058% (-0.3%) from 91.403%
ae02137a-70bd-498e-bde2-dc1371c6d829

Pull #2128

circleci

hectorcorrea
Linked GitHub issue to TODO
Pull Request #2128: Project Show page now displays metadata straight from Mediaflux

64 of 71 new or added lines in 8 files covered. (90.14%)

742 existing lines in 45 files now uncovered.

2831 of 3109 relevant lines covered (91.06%)

530.85 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