Class: DecisionReview::ScStatusUpdaterJob

Inherits:
SavedClaimStatusUpdaterJob show all
Defined in:
app/sidekiq/decision_review/sc_status_updater_job.rb

Constant Summary

Constants inherited from SavedClaimStatusUpdaterJob

DecisionReview::SavedClaimStatusUpdaterJob::ATTRIBUTES_TO_STORE, DecisionReview::SavedClaimStatusUpdaterJob::ERROR_STATUS, DecisionReview::SavedClaimStatusUpdaterJob::FINAL_STATUSES, DecisionReview::SavedClaimStatusUpdaterJob::FORM_SUCCESSFUL_STATUS, DecisionReview::SavedClaimStatusUpdaterJob::NOT_FOUND, DecisionReview::SavedClaimStatusUpdaterJob::RETENTION_PERIOD, DecisionReview::SavedClaimStatusUpdaterJob::SECONDARY_FORM_ATTRIBUTES_TO_STORE, DecisionReview::SavedClaimStatusUpdaterJob::UPLOAD_SUCCESSFUL_STATUS

Instance Method Summary collapse

Methods inherited from SavedClaimStatusUpdaterJob

#check_attachments_status, #decision_review_service, #extract_uploads_metadata, #get_and_update_secondary_form_statuses, #get_error_type, #get_evidence_uploads_statuses, #get_status_and_attributes, #handle_evidence_status, #handle_form_status_metrics_and_logging, #handle_secondary_form_status_metrics_and_logging, #perform, #record_complete?, #should_perform?, #update_secondary_form_status

Instance Method Details

#benefits_intake_serviceObject (private)



41
42
43
# File 'app/sidekiq/decision_review/sc_status_updater_job.rb', line 41

def benefits_intake_service
  @intake_service ||= BenefitsIntake::Service.new
end

#enabled?Boolean (private)

Returns:

  • (Boolean)


45
46
47
# File 'app/sidekiq/decision_review/sc_status_updater_job.rb', line 45

def enabled?
  Flipper.enabled? :decision_review_saved_claim_sc_status_updater_job_enabled
end

#evidence?Boolean (private)

Returns:

  • (Boolean)


33
34
35
# File 'app/sidekiq/decision_review/sc_status_updater_job.rb', line 33

def evidence?
  true
end

#get_evidence_status(guid) ⇒ Object (private)



29
30
31
# File 'app/sidekiq/decision_review/sc_status_updater_job.rb', line 29

def get_evidence_status(guid)
  decision_review_service.get_supplemental_claim_upload(guid:).body
end

#get_record_status(guid) ⇒ Object (private)



25
26
27
# File 'app/sidekiq/decision_review/sc_status_updater_job.rb', line 25

def get_record_status(guid)
  decision_review_service.get_supplemental_claim(guid).body
end

#log_prefixObject (private)



17
18
19
# File 'app/sidekiq/decision_review/sc_status_updater_job.rb', line 17

def log_prefix
  'DecisionReview::SavedClaimScStatusUpdaterJob'
end

#records_to_updateObject (private)



9
10
11
# File 'app/sidekiq/decision_review/sc_status_updater_job.rb', line 9

def records_to_update
  @supplemental_claims ||= ::SavedClaim::SupplementalClaim.where(delete_date: nil).order(created_at: :asc)
end

#secondary_forms?Boolean (private)

Returns:

  • (Boolean)


37
38
39
# File 'app/sidekiq/decision_review/sc_status_updater_job.rb', line 37

def secondary_forms?
  true
end

#service_tagObject (private)



21
22
23
# File 'app/sidekiq/decision_review/sc_status_updater_job.rb', line 21

def service_tag
  'service:supplemental-claims'
end

#statsd_prefixObject (private)



13
14
15
# File 'app/sidekiq/decision_review/sc_status_updater_job.rb', line 13

def statsd_prefix
  'worker.decision_review.saved_claim_sc_status_updater'
end