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

pulibrary / tigerdata-app / 05e191d4-64e8-439b-90ff-6e60c2f43360

24 Oct 2025 01:36PM UTC coverage: 90.93% (-0.2%) from 91.178%
05e191d4-64e8-439b-90ff-6e60c2f43360

push

circleci

carolyncole
Adding more details to the request index page

2 of 6 new or added lines in 1 file covered. (33.33%)

301 existing lines in 21 files now uncovered.

2737 of 3010 relevant lines covered (90.93%)

377.01 hits per line

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

100.0
/app/presenters/dashboard_presenter.rb
1
# frozen_string_literal: true
UNCOV
2
class DashboardPresenter
4✔
UNCOV
3
  attr_reader :current_user
4✔
UNCOV
4
  def initialize(current_user:)
4✔
UNCOV
5
    @current_user = current_user
78✔
UNCOV
6
  end
7

UNCOV
8
  def all_projects
4✔
9
    return [] unless current_user&.eligible_sysadmin?
7✔
10

11
    @all_projects ||= Project.all_projects.map { |project| ProjectDashboardPresenter.new(project) }.sort_by(&:updated_at).reverse
16✔
12
    @all_projects
6✔
UNCOV
13
  end
14

UNCOV
15
  def dashboard_projects
4✔
UNCOV
16
    @dashboard_projects ||= Project.users_projects(current_user).map { |project| ProjectDashboardPresenter.new(project) }.sort_by(&:updated_at).reverse
149✔
UNCOV
17
    @dashboard_projects
67✔
UNCOV
18
  end
19

UNCOV
20
  def my_inventory_requests
4✔
21
    @my_inventory_requests ||= current_user.user_requests.where(type: "FileInventoryRequest")
2✔
UNCOV
22
  end
23

UNCOV
24
  def my_draft_requests
4✔
UNCOV
25
    @my_draft_requests ||= Request.where(requested_by: current_user.uid, state: Request::DRAFT)
68✔
UNCOV
26
  end
27

UNCOV
28
  def my_submitted_requests
4✔
UNCOV
29
    @my_submitted_requests ||= Request.where(requested_by: current_user.uid, state: Request::SUBMITTED)
68✔
UNCOV
30
  end
UNCOV
31
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