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

pulibrary / tigerdata-app / 863e578f-15a5-4c93-8357-08f855de0bbc

24 Nov 2025 02:23PM UTC coverage: 87.366% (-0.7%) from 88.064%
863e578f-15a5-4c93-8357-08f855de0bbc

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

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

834 existing lines in 48 files now uncovered.

2773 of 3174 relevant lines covered (87.37%)

499.78 hits per line

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

100.0
/app/controllers/new_project_wizard/review_and_submit_controller.rb
1
# frozen_string_literal: true
UNCOV
2
class NewProjectWizard::ReviewAndSubmitController < RequestWizardsController
3✔
UNCOV
3
  layout "wizard_last"
3✔
4

UNCOV
5
  protected
3✔
6

UNCOV
7
    def render_current
3✔
UNCOV
8
      @request_presenter = RequestPresenter.new(@request_model)
13✔
UNCOV
9
      @request_model.valid_to_submit?
13✔
UNCOV
10
      @form_url = new_project_review_and_submit_save_path(@request_model)
13✔
UNCOV
11
      render "/new_project_wizard/review_and_submit"
13✔
UNCOV
12
    end
13

UNCOV
14
    def render_next
3✔
UNCOV
15
      if @request_model.valid_to_submit?
8✔
UNCOV
16
        @request_model.state = Request::SUBMITTED
6✔
UNCOV
17
        @request_model.save
6✔
UNCOV
18
        TigerdataMailer.with(request_id: @request_model.id, submitter: current_user).request_creation.deliver_now
6✔
UNCOV
19
        redirect_to request_submit_path
6✔
UNCOV
20
      else
UNCOV
21
        stubbed_message = "Please resolve errors before submitting your request"
2✔
UNCOV
22
        flash[:notice] = stubbed_message
2✔
UNCOV
23
        redirect_to new_project_review_and_submit_path(request_model)
2✔
UNCOV
24
      end
UNCOV
25
    end
26

UNCOV
27
    def render_back
3✔
28
      # TODO: redirect back to additional information when that screen is implemented
29
      # redirect_to new_project_additional_information_related_resources_path(request_model)
UNCOV
30
      redirect_to new_project_storage_and_access_path(request_model)
3✔
UNCOV
31
    end
UNCOV
32
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