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

pulibrary / tigerdata-app / 3ec79a13-66a3-4ad0-a13a-9bf22cdfa40a

23 Oct 2025 06:40PM UTC coverage: 86.978% (-4.2%) from 91.178%
3ec79a13-66a3-4ad0-a13a-9bf22cdfa40a

Pull #2092

circleci

web-flow
Merge branch 'main' into 2081_Add_Tooltip_for_Data_Sponsor_Field
Pull Request #2092: Added tooltip to Data Sponsor Field

2625 of 3018 relevant lines covered (86.98%)

268.84 hits per line

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

80.0
/app/controllers/dashboard_controller.rb
1
# frozen_string_literal: true
2
class DashboardController < ApplicationController
1✔
3
  layout "welcome"
1✔
4

5
  def index
1✔
6
    @presenter = DashboardPresenter.new(current_user: current_user)
12✔
7

8
    session[:dashtab] ||= "project" # default the session tab to projects
12✔
9
    @dash_session = session[:dashtab]
12✔
10
    @session_id = current_user.mediaflux_session
12✔
11
    @emulation_role = session[:emulation_role] || "Not Emulating"
12✔
12
  end
13

14
  def emulate
1✔
15
    return if Rails.env.production?
1✔
16

17
    absolute_user = User.find(current_user.id)
1✔
18
    return unless absolute_user.trainer?
1✔
19

20
    if params.key?("emulation_menu")
1✔
21
      session[:emulation_role] = params[:emulation_menu]
1✔
22
    end
23
  end
24

25
  def dash_project
1✔
26
    if params.key?("dashtab")
×
27
      session[:dashtab] = params[:dashtab]
×
28
    end
29
  end
30

31
  def dash_admin
1✔
32
    if params.key?("dashtab")
×
33
      session[:dashtab] = params[:dashtab]
×
34
    end
35
  end
36
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