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

pulibrary / tigerdata-app / b10fccf6-5ec9-4665-936f-349cab0ca8ed

28 Oct 2025 02:06PM UTC coverage: 87.382% (-3.9%) from 91.294%
b10fccf6-5ec9-4665-936f-349cab0ca8ed

Pull #2057

circleci

hectorcorrea
Force a change
Pull Request #2057: Dashboard displays projects straights from Mediaflux

49 of 69 new or added lines in 4 files covered. (71.01%)

930 existing lines in 39 files now uncovered.

2694 of 3083 relevant lines covered (87.38%)

296.77 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)
11✔
UNCOV
9
      @request_model.valid_to_submit?
11✔
UNCOV
10
      @form_url = new_project_review_and_submit_save_path(@request_model)
11✔
UNCOV
11
      render "/new_project_wizard/review_and_submit"
11✔
UNCOV
12
    end
13

UNCOV
14
    def render_next
3✔
UNCOV
15
      if @request_model.valid_to_submit?
4✔
UNCOV
16
        @request_model.state = Request::SUBMITTED
2✔
UNCOV
17
        @request_model.save
2✔
UNCOV
18
        TigerdataMailer.with(request_id: @request_model.id, submitter: current_user).request_creation.deliver_now
2✔
UNCOV
19
        redirect_to request_submit_path
2✔
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)
2✔
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