-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11675 from 18F/stages/rc-2024-12-19
Deploy RC 440 to Production
- Loading branch information
Showing
150 changed files
with
2,058 additions
and
931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# frozen_string_literal: true | ||
|
||
module Test | ||
class IppController < ApplicationController | ||
layout 'no_card' | ||
|
||
before_action :render_not_found_in_production | ||
|
||
def index | ||
@enrollments = InPersonEnrollment | ||
.order(created_at: :desc) | ||
.limit(10) | ||
|
||
@enrollments_with_actions = @enrollments.map do |e| | ||
case e.status | ||
when 'pending' then [e, :approve] | ||
else [e] | ||
end | ||
end | ||
end | ||
|
||
def update | ||
enrollment_id = params['enrollment'].to_i | ||
enrollment = InPersonEnrollment.find(enrollment_id) | ||
|
||
if enrollment.present? | ||
approve_enrollment(enrollment) | ||
end | ||
|
||
redirect_to test_ipp_url | ||
end | ||
|
||
private | ||
|
||
def approve_enrollment(enrollment) | ||
return if !enrollment.pending? | ||
|
||
res = JSON.parse( | ||
UspsInPersonProofing::Mock::Fixtures.request_passed_proofing_results_response, | ||
) | ||
|
||
job = GetUspsProofingResultsJob.new | ||
job.instance_variable_set( | ||
:@enrollment_outcomes, | ||
{ enrollments_passed: 0, | ||
enrollments_failed: 0, | ||
enrollments_errored: 0, | ||
enrollments_expired: 0, | ||
enrollments_checked: 0 }, | ||
) | ||
|
||
job.send(:process_enrollment_response, enrollment, res) | ||
end | ||
|
||
def render_not_found_in_production | ||
return unless Rails.env.production? | ||
render_not_found | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
class SocureDocvRepeatWebhookJob < ApplicationJob | ||
queue_as :high_socure_docv | ||
|
||
def perform(body:, headers:, endpoint:) | ||
wr = DocAuth::Socure::WebhookRepeater.new(body:, headers:, endpoint:) | ||
wr.repeat | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.