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

pulibrary / tigerdata-app / b6e4a7c7-d411-4822-a760-84eba5096a52

01 Dec 2025 03:02PM UTC coverage: 74.875% (-12.7%) from 87.594%
b6e4a7c7-d411-4822-a760-84eba5096a52

Pull #2251

circleci

carolyncole
Updating the department select to utilize LuxInputMultiSelect
The component only allows an item to be selected once (only for non asynch results which departments are).
fiexs #2134
Pull Request #2251: Updating the department select to utilize LuxInputMultiSelect

2390 of 3192 relevant lines covered (74.87%)

215.79 hits per line

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

85.71
/app/presenters/project_dashboard_presenter.rb
1
# frozen_string_literal: true
2
class ProjectDashboardPresenter < ProjectShowPresenter
1✔
3
  include ActionView::Helpers::DateHelper
1✔
4

5
  delegate :to_model, :updated_at, to: :project
1✔
6

7
  def type
1✔
8
    if storage_performance_expectations["approved"].nil?
154✔
9
      "Requested #{storage_performance_expectations['requested']}"
×
10
    else
11
      storage_performance_expectations["approved"]
154✔
12
    end
13
  end
14

15
  def latest_file_list_time
1✔
16
    requests = FileInventoryRequest.where(project_id: project.id).order(completion_time: :desc)
154✔
17
    if requests.empty?
154✔
18
      "No Downloads"
152✔
19
    elsif requests.first.completion_time
2✔
20
      "Prepared #{time_ago_in_words(requests.first.completion_time)} ago"
2✔
21
    else
22
      "Preparing now"
×
23
    end
24
  end
25

26
  def last_activity
1✔
27
    if project_metadata.updated_on.nil?
154✔
28
      "Not yet active"
154✔
29
    else
30
      "#{remove_about time_ago_in_words(project_metadata.updated_on)} ago"
×
31
    end
32
  end
33

34
  def role(user)
1✔
35
    if data_sponsor.uid == user.uid
154✔
36
      "Sponsor"
84✔
37
    elsif data_manager.uid == user.uid
70✔
38
      "Data Manager"
36✔
39
    else
40
      "Data User"
34✔
41
    end
42
  end
43

44
  def path
1✔
45
    project_directory
77✔
46
  end
47

48
  # Removes "about" (as in "about 1 month ago") from time_ago_in_words
49
  def remove_about(time_ago)
1✔
50
    time_ago.gsub("about ", "")
×
51
  end
52
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