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

pulibrary / tigerdata-app / 77f18e80-ab07-464a-af75-8ceed5189551

22 Nov 2025 01:36AM UTC coverage: 91.348% (+0.03%) from 91.317%
77f18e80-ab07-464a-af75-8ceed5189551

Pull #2234

circleci

carolyncole
Close the custom storage div when a user chooses a preset option
fixes #2115
Pull Request #2234: Close the custom storage div when a user chooses a preset option

2893 of 3167 relevant lines covered (91.35%)

571.31 hits per line

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

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

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