-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into were-gonna-fix-this
- Loading branch information
Showing
206 changed files
with
13,966 additions
and
20,167 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -45,6 +45,6 @@ jobs: | |
destination_repo: 'department-of-veterans-affairs/platform-atlas' | ||
destination_folder: '/lib/codeowners/vets-api' | ||
destination_branch: 'master' | ||
user_email: '[email protected]' | ||
user_email: '[email protected]' | ||
user_name: 'va-vsp-bot' | ||
commit_message: 'Auto update Atlas with Vets-API CODEOWNERS' |
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 |
---|---|---|
|
@@ -101,5 +101,5 @@ jobs: | |
add: "*" | ||
cwd: vsp-infra-application-manifests/apps | ||
author_name: va-vsp-bot | ||
author_email: [email protected] | ||
author_email: [email protected] | ||
message: "Release ${{ needs.prepare-values.outputs.environments }} for ${{inputs.ecr_repository}} : ${{ inputs.commit_sha }}." |
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 was deleted.
Oops, something went wrong.
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,7 @@ | ||
# frozen_string_literal: true | ||
|
||
VyePolicy = Struct.new(:user, :user_info) do | ||
def access? | ||
user.present? | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# frozen_string_literal: true | ||
|
||
class EVSS::FailureNotification | ||
include Sidekiq::Job | ||
include SentryLogging | ||
|
||
NOTIFY_SETTINGS = Settings.vanotify.services.benefits_management_tools | ||
MAILER_TEMPLATE_ID = NOTIFY_SETTINGS.template_id.evidence_submission_failure_email | ||
|
||
# retry for one day | ||
sidekiq_options retry: 14, queue: 'low' | ||
# Set minimum retry time to ~1 hour | ||
sidekiq_retry_in do |count, _exception| | ||
rand(3600..3660) if count < 9 | ||
end | ||
|
||
sidekiq_retries_exhausted do | ||
::Rails.logger.info('EVSS::FailureNotification email could not be sent') | ||
end | ||
|
||
def notify_client | ||
VaNotify::Service.new(NOTIFY_SETTINGS.api_key) | ||
end | ||
|
||
def perform(icn, first_name, filename, date_submitted, date_failed) | ||
notify_client.send_email( | ||
recipient_identifier: { id_value: icn, id_type: 'ICN' }, | ||
template_id: MAILER_TEMPLATE_ID, | ||
personalisation: { first_name:, filename:, date_submitted:, date_failed: } | ||
) | ||
|
||
::Rails.logger.info('EVSS::FailureNotification email sent') | ||
rescue => e | ||
::Rails.logger.error('EVSS::FailureNotification email error', | ||
{ message: e.message }) | ||
log_exception_to_sentry(e) | ||
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
Oops, something went wrong.