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

pulibrary / tigerdata-app / 71d954da-08a6-4760-a6a6-2879d589de6f

28 Oct 2025 01:34PM UTC coverage: 72.228% (-19.1%) from 91.294%
71d954da-08a6-4760-a6a6-2879d589de6f

Pull #2057

circleci

web-flow
Merge branch 'main' into 2037-dashboard-mf
Pull Request #2057: Dashboard displays projects straights from Mediaflux

65 of 69 new or added lines in 4 files covered. (94.2%)

257 existing lines in 31 files now uncovered.

2221 of 3075 relevant lines covered (72.23%)

189.22 hits per line

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

33.33
/app/jobs/request_cleanup_job.rb
1
# frozen_string_literal: true
2
class RequestCleanupJob < ApplicationJob
1✔
3
  queue_as :default
1✔
4

5
  def perform
1✔
6
    # Destroy every request in the database that is not valid to submit and has 6 or more errors
UNCOV
7
    Request.where.not(state: Request::SUBMITTED).each do |request|
×
8
      # check if the request has not been updated within 24 hours
UNCOV
9
      next unless request.updated_at < 24.hours.ago
×
UNCOV
10
      next if request.valid_title?
×
UNCOV
11
      request.valid_to_submit?
×
12
      # 6 errors is arbitrary, but it is the number of manditory fields (excluding pre-populated fields) in the request form
UNCOV
13
      if request.errors.count >= 6
×
UNCOV
14
        request.destroy
×
15
      end
16
    end
17
  end
18
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