From 59ae659a6a5f12277cc9bf9773bb74aee7f6da78 Mon Sep 17 00:00:00 2001
From: breedbah <123968373+breedbah@users.noreply.github.com>
Date: Mon, 25 Nov 2024 14:09:13 -0500
Subject: [PATCH] APPEALS-63020 (#23542)
* APPEALS-63020 TranscriptionDetailsInputs.test.js
* APPEALS-63020
* APPEALS-63020
* APPEALS-63020 update transcription_contractor_spec
* APPEALS-63020 Update transcriptionContractor.js
* APPEALS-63020 contractor seeds
* APPEALS-63020 update snapshots
* APPEALS-63020 add disable_ddl_transaction!
---
.../TranscriptionDetailsInputs.test.js | 3 +-
.../TranscriptionFileDispatchTable.test.js | 4 +-
...ranscriptionFileDispatchTable.test.js.snap | 4 +-
.../TranscriptionSettings.test.js.snap | 336 ++++++++++++++++++
client/test/data/transcriptionContractors.js | 16 +
...507203310_add_indexes_to_transcriptions.rb | 1 +
db/seeds/transcription_contractors.rb | 5 +
.../hearings/transcription_contractor_spec.rb | 3 +-
.../transcription_contractors_model_spec.rb | 4 +-
9 files changed, 368 insertions(+), 8 deletions(-)
diff --git a/client/test/app/hearings/components/TranscriptionDetailsInputs.test.js b/client/test/app/hearings/components/TranscriptionDetailsInputs.test.js
index 074f4cd78d7..741fb9f29f5 100644
--- a/client/test/app/hearings/components/TranscriptionDetailsInputs.test.js
+++ b/client/test/app/hearings/components/TranscriptionDetailsInputs.test.js
@@ -11,7 +11,8 @@ describe('TranscriptionDetailsInputs', () => {
const transcriptionContractors = {
1: 'Genesis Government Solutions, Inc.',
2: 'Jamison Professional Services',
- 3: 'The Ravens Group, Inc.'
+ 3: 'The Ravens Group, Inc.',
+ 4: 'Vet Reporting'
};
it('renders correctly', async () => {
diff --git a/client/test/app/hearings/components/TranscriptionFileDispatchTable.test.js b/client/test/app/hearings/components/TranscriptionFileDispatchTable.test.js
index b6e734e69b9..fbf6e17e53a 100644
--- a/client/test/app/hearings/components/TranscriptionFileDispatchTable.test.js
+++ b/client/test/app/hearings/components/TranscriptionFileDispatchTable.test.js
@@ -341,7 +341,7 @@ const mockTranscriptionPackages = [
items: 15,
dateSent: '01/01/2024',
expectedReturnDate: '01/15/2024',
- contractor: 'Genesis Government Solutions, Inc.',
+ contractor: 'Vet Reporting',
status: 'Sent',
},
{
@@ -422,7 +422,7 @@ const mockTranscriptionPackages = [
items: 14,
dateSent: '01/12/2024',
expectedReturnDate: '01/27/2024',
- contractor: 'The Ravens Group, Inc.',
+ contractor: 'Vet Reporting',
status: 'Sent',
},
{
diff --git a/client/test/app/hearings/components/__snapshots__/TranscriptionFileDispatchTable.test.js.snap b/client/test/app/hearings/components/__snapshots__/TranscriptionFileDispatchTable.test.js.snap
index dfc503b1241..356de6978d3 100644
--- a/client/test/app/hearings/components/__snapshots__/TranscriptionFileDispatchTable.test.js.snap
+++ b/client/test/app/hearings/components/__snapshots__/TranscriptionFileDispatchTable.test.js.snap
@@ -2240,7 +2240,7 @@ exports[`TranscriptionFileDispatchTable Assigned Tab loads a table from backend
- Genesis Government Solutions, Inc.
+ Vet Reporting
- The Ravens Group, Inc.
+ Vet Reporting
|
+
+
+
+
+ Vet Reporting
+
+
+
+
+
+
+ -
+
+ Contractor folder name in box.com:
+
+ BVA Hearing Transcripts/Vet Reporting
+
+ -
+
+ POC:
+
+ Sam Smith
+
+ -
+ 888-888-8888
+
+ -
+ vetreporting@test.com
+
+
+ -
+
+ Hearings sent to Vet Reporting this week:
+
+
+ 5 of
+ 100
+
+
+
+
+
+
+
+
+
+
+
+ Temporarily stop
+
+ work assignment
+
+
+
+
@@ -1146,6 +1314,174 @@ Object {
+
+
+
+
+ Vet Reporting
+
+
+
+
+
+
+ -
+
+ Contractor folder name in box.com:
+
+ BVA Hearing Transcripts/Vet Reporting
+
+ -
+
+ POC:
+
+ Sam Smith
+
+ -
+ 888-888-8888
+
+ -
+ vetreporting@test.com
+
+
+ -
+
+ Hearings sent to Vet Reporting this week:
+
+
+ 5 of
+ 100
+
+
+
+
+
+
+
+
+
+
+
+ Temporarily stop
+
+ work assignment
+
+
+
+
diff --git a/client/test/data/transcriptionContractors.js b/client/test/data/transcriptionContractors.js
index bcc15a02e94..34d1ba4efce 100644
--- a/client/test/data/transcriptionContractors.js
+++ b/client/test/data/transcriptionContractors.js
@@ -47,4 +47,20 @@ export const transcriptionContractors = [
updated_at: '2024-07-17T11:54:10.371-04:00',
transcription_count_this_week: 2
},
+ {
+ created_at: '2024-07-15T11:55:12.842-04:00',
+ current_goal: 100,
+ deleted_at: null,
+ directory: 'BVA Hearing Transcripts/Vet Reporting',
+ email: 'vetreporting@test.com',
+ id: 4,
+ inactive: false,
+ is_available_for_work: true,
+ name: 'Vet Reporting',
+ phone: '888-888-8888',
+ poc: 'Sam Smith',
+ previous_goal: 0,
+ updated_at: '2024-07-17T11:54:10.371-04:00',
+ transcription_count_this_week: 5
+ },
];
diff --git a/db/migrate/20240507203310_add_indexes_to_transcriptions.rb b/db/migrate/20240507203310_add_indexes_to_transcriptions.rb
index 2e4cdb18d97..d2ada620f8e 100644
--- a/db/migrate/20240507203310_add_indexes_to_transcriptions.rb
+++ b/db/migrate/20240507203310_add_indexes_to_transcriptions.rb
@@ -1,4 +1,5 @@
class AddIndexesToTranscriptions < ActiveRecord::Migration[6.1]
+ disable_ddl_transaction!
def change
add_index :transcriptions, :transcription_contractor_id, algorithm: :concurrently, name: "index_transcriptions_on_transcription_contractor_id"
add_index :transcriptions, :deleted_at, algorithm: :concurrently, name: "index_transcriptions_on_deleted_at"
diff --git a/db/seeds/transcription_contractors.rb b/db/seeds/transcription_contractors.rb
index 86af92c4fa8..4d9e98b0610 100644
--- a/db/seeds/transcription_contractors.rb
+++ b/db/seeds/transcription_contractors.rb
@@ -27,6 +27,11 @@ def seed!
directory: "BVA Hearing Transcripts/Actual Contractor, Inc.",
poc: "Johnny Cash",
email: "actualcontractor@test.com",
+ phone: "888-888-8888"},
+ { name: "Vet Reporting",
+ directory: "BVA Hearing Transcripts/Vet Reporting",
+ poc: "Johnny Cash",
+ email: "vetreporting@test.com",
phone: "888-888-8888"}
]
diff --git a/spec/models/hearings/transcription_contractor_spec.rb b/spec/models/hearings/transcription_contractor_spec.rb
index d9e5c3d5940..992eb14a736 100644
--- a/spec/models/hearings/transcription_contractor_spec.rb
+++ b/spec/models/hearings/transcription_contractor_spec.rb
@@ -5,6 +5,7 @@
RSpec.describe TranscriptionContractor, type: :model do
let!(:transcription_contractor_1) { create(:transcription_contractor, name: "The Ravens Group, Inc.") }
let!(:transcription_contractor_2) { create(:transcription_contractor, name: "Genesis Government Solutions, Inc.") }
+ let!(:transcription_contractor_3) { create(:transcription_contractor, name: "Vet Reporting") }
let!(:transcription_1) { create(:transcription, transcription_contractor_id: transcription_contractor_1.id) }
let!(:transcription_2) { create(:transcription, transcription_contractor_id: transcription_contractor_1.id) }
@@ -24,7 +25,7 @@
describe ".all_contractors" do
it "returns all contractors ordered alphabetically" do
expect(described_class.all_contractors).to eq(
- [transcription_contractor_2, transcription_contractor_1]
+ [transcription_contractor_2, transcription_contractor_1, transcription_contractor_3]
)
end
end
diff --git a/spec/models/hearings/transcription_contractors_model_spec.rb b/spec/models/hearings/transcription_contractors_model_spec.rb
index e669118ea97..f2e2a04e9fd 100644
--- a/spec/models/hearings/transcription_contractors_model_spec.rb
+++ b/spec/models/hearings/transcription_contractors_model_spec.rb
@@ -5,8 +5,8 @@
RSpec.describe TranscriptionContractor, type: :model do
before do
@transcription_contractor = TranscriptionContractor.new(
- name: "Genesis Government Solutions, Inc.",
- directory: "BVA Hearing Transcripts/Genesis Government Solutions, Inc.",
+ name: "Vet Reporting",
+ directory: "BVA Hearing Transcripts/Vet Reporting",
poc: "Example POC",
phone: "888-888-8888",
email: "test_email@bah.com"
|