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

pulibrary / tigerdata-app / 95ab0389-7cc4-47cf-9410-324926d2d0be

27 Oct 2025 03:10PM UTC coverage: 91.33% (+0.04%) from 91.291%
95ab0389-7cc4-47cf-9410-324926d2d0be

Pull #2057

circleci

hectorcorrea
Minor tweak
Pull Request #2057: Dashboard displays projects straights from Mediaflux

31 of 93 new or added lines in 4 files covered. (33.33%)

830 existing lines in 34 files now uncovered.

2802 of 3068 relevant lines covered (91.33%)

471.92 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
4✔
UNCOV
3
  layout "wizard_last"
4✔
4

UNCOV
5
  protected
4✔
6

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

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

UNCOV
27
    def render_back
4✔
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)
4✔
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