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

pulibrary / tigerdata-app / a829b9c5-1dc3-477f-a44e-45890dfc33cb

24 Nov 2025 02:38PM UTC coverage: 87.586% (-0.5%) from 88.064%
a829b9c5-1dc3-477f-a44e-45890dfc33cb

Pull #2235

circleci

carolyncole
Do not redirect from home page when login is disabled
fixes #2188
Pull Request #2235: Do not redirect from home page when login is disabled

1 of 5 new or added lines in 2 files covered. (20.0%)

794 existing lines in 37 files now uncovered.

2787 of 3182 relevant lines covered (87.59%)

361.47 hits per line

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

100.0
/app/controllers/welcome_controller.rb
1
# frozen_string_literal: true
2
class WelcomeController < ApplicationController
1✔
3
  skip_before_action :authenticate_user!
1✔
4
  skip_before_action :downtime_check
1✔
5
  skip_before_action :verify_authenticity_token
1✔
6

7
  def index
1✔
8
    if current_user.blank?
6✔
9
      render layout: "welcome"
2✔
NEW
10
    elsif Flipflop.disable_login?
4✔
NEW
11
      downtime_check(with_redirect: false)
2✔
NEW
12
      redirect_to dashboard_path if current_user&.eligible_sysadmin?
2✔
13
    else
14
      redirect_to dashboard_path
2✔
15
    end
16
  end
17

18
  def help; end
1✔
19
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