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

pulibrary / tigerdata-app / d7ce1bf9-25b8-4b3e-b9dd-43f9a26f2d96

17 Oct 2025 05:51PM UTC coverage: 91.054%. Remained the same
d7ce1bf9-25b8-4b3e-b9dd-43f9a26f2d96

Pull #2055

circleci

jrgriffiniii
- Ensuring that `parallelism` is set to 4
- Separating `system` RSpec spec suites in the CI build
- Using an `inconsistent` RSpec tag to mark inconsistently failing tests
- Ensuring that CI does not run for `inconsistent` tests
Pull Request #2055: Ensuring that `parallelism` is set to 4 for CircleCI and separates `system` and inconsistently-failing tests into separate CI jobs

2738 of 3007 relevant lines covered (91.05%)

380.37 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
4✔
3
  attr_reader :current_user
4✔
4
  def initialize(current_user:)
4✔
5
    @current_user = current_user
91✔
6
  end
7

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✔
13
  end
14

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

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

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

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