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

pulibrary / tigerdata-app / 21b3684e-2cf2-4e1c-adb5-a44be328e358

07 Nov 2025 03:59PM UTC coverage: 82.627% (-8.4%) from 91.075%
21b3684e-2cf2-4e1c-adb5-a44be328e358

Pull #2163

circleci

carolyncole
Handle error fetching project list
Pull Request #2163: Logs Mediaflux errors when fetching the project list

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

891 existing lines in 32 files now uncovered.

2592 of 3137 relevant lines covered (82.63%)

353.31 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
1✔
UNCOV
3
  attr_reader :user_request
1✔
4

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

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

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

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

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

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

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

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

UNCOV
39
  private
1✔
40

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

UNCOV
45
    def helpers
1✔
UNCOV
46
      ActionController::Base.helpers
3✔
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