-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/FY25Q1.1.4' into hotfix/APPEALS-59867-5
- Loading branch information
Showing
197 changed files
with
55,126 additions
and
38,093 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
25 changes: 25 additions & 0 deletions
25
app/controllers/hearings/transcription_files_controller.rb
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,25 @@ | ||
# frozen_string_literal: true | ||
|
||
class Hearings::TranscriptionFilesController < ApplicationController | ||
include HearingsConcerns::VerifyAccess | ||
|
||
rescue_from ActiveRecord::RecordNotFound, with: :render_page_not_found | ||
before_action :verify_access_to_hearings, only: [:download_transcription_file] | ||
|
||
# Downloads file and sends to user's local computer | ||
def download_transcription_file | ||
tmp_location = file.fetch_file_from_s3! | ||
File.open(tmp_location, "r") { |stream| send_data stream.read, filename: file.file_name } | ||
file.clean_up_tmp_location | ||
end | ||
|
||
def render_page_not_found | ||
redirect_to "/404" | ||
end | ||
|
||
private | ||
|
||
def file | ||
@file ||= TranscriptionFile.find(params[:file_id]) | ||
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,27 @@ | ||
# frozen_string_literal: true | ||
|
||
# This job creates a Webex conference & link for a non virtual hearing | ||
|
||
class Hearings::CreateNonVirtualConferenceJob < CaseflowJob | ||
# We are not using ensure_current_user_is_set because of some | ||
# potential for rollbacks if the set user is not the system user | ||
|
||
queue_with_priority :high_priority | ||
application_attr :hearing_schedule | ||
|
||
attr_reader :hearing | ||
|
||
# Retry if Webex returns an invalid response. | ||
retry_on(Caseflow::Error::WebexApiError, wait: :exponentially_longer) do |job, exception| | ||
job.log_error(exception) | ||
end | ||
|
||
def perform(hearing:) | ||
RequestStore.store[:current_user] = User.system_user | ||
WebexConferenceLink.find_or_create_by!( | ||
hearing: hearing, | ||
created_by: hearing.created_by, | ||
updated_by: hearing.created_by | ||
) | ||
end | ||
end |
Oops, something went wrong.