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

pulibrary / tigerdata-app / 7291b10e-eaa3-4284-9371-5a980ceebf59

24 Nov 2025 07:18PM UTC coverage: 87.613% (-3.7%) from 91.333%
7291b10e-eaa3-4284-9371-5a980ceebf59

push

circleci

web-flow
Adds breadcrumb to Wizard (#2231)

Adds the breadcrumb to the Wizard and the functionality to allow the
user to save their changes before leaving the Wizard when clicking on
the "Dashboard" link in the breadcrumbs.

Closes #2102

5 of 12 new or added lines in 11 files covered. (41.67%)

904 existing lines in 36 files now uncovered.

2801 of 3197 relevant lines covered (87.61%)

360.23 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
2
class NewProjectWizard::ReviewAndSubmitController < RequestWizardsController
2✔
3
  layout "wizard_last"
2✔
4

5
  protected
2✔
6

7
    def render_current
2✔
NEW
8
      add_breadcrumb("New Project Request")
11✔
9
      @request_presenter = RequestPresenter.new(@request_model)
11✔
10
      @request_model.valid_to_submit?
11✔
11
      @form_url = new_project_review_and_submit_save_path(@request_model)
11✔
12
      render "/new_project_wizard/review_and_submit"
11✔
13
    end
14

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

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