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

pulibrary / tigerdata-app / 8293ab2d-bf72-479d-b125-c8e55a169c08

27 Oct 2025 09:00PM UTC coverage: 86.485% (-4.7%) from 91.178%
8293ab2d-bf72-479d-b125-c8e55a169c08

Pull #2061

circleci

JaymeeH
test custom dropdown selector
Pull Request #2061: Remove black fill treatment from scroll bar

2598 of 3004 relevant lines covered (86.48%)

340.8 hits per line

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

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

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

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

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

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

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

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

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