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

pulibrary / tigerdata-app / c07767c7-9bab-45c6-b01b-5090ca4940a4

26 Nov 2025 09:10PM UTC coverage: 87.633% (+16.0%) from 71.597%
c07767c7-9bab-45c6-b01b-5090ca4940a4

Pull #2250

circleci

JaymeeH
persisting the approval provenance in the project
Pull Request #2250: Organize the submission provenance for a project

4 of 5 new or added lines in 2 files covered. (80.0%)

986 existing lines in 43 files now uncovered.

2806 of 3202 relevant lines covered (87.63%)

411.27 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
UNCOV
2
class DashboardController < ApplicationController
2✔
UNCOV
3
  layout "welcome"
2✔
4

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

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

UNCOV
14
  def emulate
2✔
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✔
UNCOV
22
    end
UNCOV
23
  end
24

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

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