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

pulibrary / tigerdata-app / 0fa44f37-9401-471e-84d4-efbabcf424ab

22 Oct 2025 02:10PM UTC coverage: 91.212% (+0.2%) from 91.051%
0fa44f37-9401-471e-84d4-efbabcf424ab

push

circleci

web-flow
Getting rid of the New Project Wizard flipper (#2072)

3 of 4 new or added lines in 1 file covered. (75.0%)

794 existing lines in 41 files now uncovered.

2740 of 3004 relevant lines covered (91.21%)

751.91 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
156✔
UNCOV
6
  end
7

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

UNCOV
11
    @all_projects ||= Project.all_projects.map { |project| ProjectDashboardPresenter.new(project) }.sort_by(&:updated_at).reverse
32✔
UNCOV
12
    @all_projects
12✔
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
298✔
UNCOV
17
    @dashboard_projects
134✔
UNCOV
18
  end
19

UNCOV
20
  def my_inventory_requests
4✔
UNCOV
21
    @my_inventory_requests ||= current_user.user_requests.where(type: "FileInventoryRequest")
4✔
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)
136✔
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)
136✔
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