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

pulibrary / tigerdata-app / 699c2139-839b-4593-bb89-b830acc958af

24 Nov 2025 05:25PM UTC coverage: 91.333% (+20.9%) from 70.412%
699c2139-839b-4593-bb89-b830acc958af

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%)

580 existing lines in 35 files now uncovered.

2898 of 3173 relevant lines covered (91.33%)

570.28 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
UNCOV
2
class WelcomeController < ApplicationController
2✔
UNCOV
3
  skip_before_action :authenticate_user!
2✔
UNCOV
4
  skip_before_action :downtime_check
2✔
UNCOV
5
  skip_before_action :verify_authenticity_token
2✔
6

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

UNCOV
18
  def help; end
2✔
UNCOV
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