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

pulibrary / tigerdata-app / e941e498-f4a8-4326-87a1-30b7af4ce668

04 Nov 2025 12:57PM UTC coverage: 91.37% (-0.03%) from 91.403%
e941e498-f4a8-4326-87a1-30b7af4ce668

Pull #2126

circleci

bess
Bump tar in the npm_and_yarn group across 1 directory

Bumps the npm_and_yarn group with 1 update in the / directory: [tar](https://github.com/isaacs/node-tar).


Updates `tar` from 7.5.1 to 7.5.2
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v7.5.1...v7.5.2)

---
updated-dependencies:
- dependency-name: tar
  dependency-version: 7.5.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #2126: Bump tar from 7.5.1 to 7.5.2 in the npm_and_yarn group across 1 directory

2827 of 3094 relevant lines covered (91.37%)

488.74 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
78✔
6
  end
7

8
  def all_projects
3✔
9
    # Short-cut to prevent an extra call to Mediaflux for non-admins
10
    # which are the large majority of our users.
11
    return [] unless current_user&.eligible_sysadmin?
7✔
12

13
    @all_projects ||= Project.all_projects(current_user)
6✔
14
                             .map { |project| ProjectDashboardPresenter.new(project) }
64✔
15
                             .select(&:project_in_rails?)
16
                             .sort_by(&:updated_at)
17
                             .reverse
18
    @all_projects
6✔
19
  end
20

21
  def dashboard_projects
3✔
22
    @dashboard_projects ||= Project.users_projects(current_user)
67✔
23
                                   .map { |project| ProjectDashboardPresenter.new(project) }
941✔
24
                                   .select(&:project_in_rails?)
25
                                   .sort_by(&:updated_at)
26
                                   .reverse
27
    @dashboard_projects
67✔
28
  end
29

30
  def my_inventory_requests
3✔
31
    @my_inventory_requests ||= current_user.user_requests.where(type: "FileInventoryRequest")
2✔
32
  end
33

34
  def my_draft_requests
3✔
35
    @my_draft_requests ||= Request.where(requested_by: current_user.uid, state: Request::DRAFT)
66✔
36
  end
37

38
  def my_submitted_requests
3✔
39
    @my_submitted_requests ||= Request.where(requested_by: current_user.uid, state: Request::SUBMITTED)
66✔
40
  end
41
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