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

pulibrary / tigerdata-app / 0dfea398-3027-4aec-bf08-85da9e6c8210

26 Nov 2025 05:27PM UTC coverage: 91.343% (+19.7%) from 71.597%
0dfea398-3027-4aec-bf08-85da9e6c8210

Pull #2246

circleci

web-flow
Merge branch 'main' into clear-error
Pull Request #2246: clear the error message when a data sponsor or manager has been selected

2912 of 3188 relevant lines covered (91.34%)

569.54 hits per line

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

100.0
/app/controllers/project_import_controller.rb
1
# frozen_string_literal: true
2
class ProjectImportController < ApplicationController
1✔
3
  def run
1✔
4
    if current_user.eligible_sysadmin?
3✔
5
      @results = ProjectImport.run_with_report(mediaflux_session: current_user.mediaflux_session).sort
2✔
6
      created_count = @results.count { |out| out.starts_with?("Created") }
7✔
7
      notice = "Created #{created_count} #{'project'.pluralize(created_count)}."
2✔
8
      flash[:notice] = notice
2✔
9
    else
10
      flash[:alert] = I18n.t(:access_denied)
1✔
11
      redirect_to dashboard_path
1✔
12
    end
13
  end
14
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