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

pulibrary / tigerdata-app / 95ab0389-7cc4-47cf-9410-324926d2d0be

27 Oct 2025 03:10PM UTC coverage: 91.33% (+0.04%) from 91.291%
95ab0389-7cc4-47cf-9410-324926d2d0be

Pull #2057

circleci

hectorcorrea
Minor tweak
Pull Request #2057: Dashboard displays projects straights from Mediaflux

31 of 93 new or added lines in 4 files covered. (33.33%)

830 existing lines in 34 files now uncovered.

2802 of 3068 relevant lines covered (91.33%)

471.92 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