• 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

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

5
  protected
3✔
6

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

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