Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor status check job for decision review forms #19426

Merged
merged 7 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions app/sidekiq/decision_review/hlr_status_updater_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# frozen_string_literal: true

require_relative 'saved_claim_status_updater_job'

module DecisionReview
class HlrStatusUpdaterJob < SavedClaimStatusUpdaterJob
private

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

def statsd_prefix
'worker.decision_review.saved_claim_hlr_status_updater'
end

def log_prefix
'DecisionReview::SavedClaimHlrStatusUpdaterJob'
end

def service_tag
'service:higher-level-review'
end

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

def evidence?
false
end

def secondary_forms?
false
end

def enabled?
Flipper.enabled? :decision_review_saved_claim_hlr_status_updater_job_enabled
end
end
end
45 changes: 45 additions & 0 deletions app/sidekiq/decision_review/nod_status_updater_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# frozen_string_literal: true

require_relative 'saved_claim_status_updater_job'

module DecisionReview
class NodStatusUpdaterJob < SavedClaimStatusUpdaterJob
private

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

def statsd_prefix
'worker.decision_review.saved_claim_nod_status_updater'
end

def log_prefix
'DecisionReview::SavedClaimNodStatusUpdaterJob'
end

def service_tag
'service:board-appeal'
end

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

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

def evidence?
true
end

def secondary_forms?
false
end

def enabled?
Flipper.enabled? :decision_review_saved_claim_nod_status_updater_job_enabled
end
end
end

This file was deleted.

137 changes: 0 additions & 137 deletions app/sidekiq/decision_review/saved_claim_nod_status_updater_job.rb

This file was deleted.

Loading
Loading