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

pulibrary / tigerdata-app / 28b04e17-7ce0-43d4-9c8a-852b96fa09c4

22 Oct 2025 08:18PM UTC coverage: 86.978% (-4.2%) from 91.178%
28b04e17-7ce0-43d4-9c8a-852b96fa09c4

Pull #2084

circleci

bess
Clarify that mediaflux no longer needs separate startup for local dev
Pull Request #2084: Clarify that mediaflux no longer needs separate startup for local development

2625 of 3018 relevant lines covered (86.98%)

271.32 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
2
class DashboardPresenter
3✔
3
  attr_reader :current_user
3✔
4
  def initialize(current_user:)
3✔
5
    @current_user = current_user
17✔
6
  end
7

8
  def all_projects
3✔
9
    return [] unless current_user&.eligible_sysadmin?
3✔
10

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

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

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

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

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