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

feature/APPEALS-32376 (Release Candidate) #22673

Merged
merged 222 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from 216 commits
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
1bb705c
APPEALS-36751 deleted set_time_zone.rb file
j-n-t-l Jan 11, 2024
8101b17
Merge branch 'feature/APPEALS-32376' into janet/APPEALS-36751
ThorntonMatthew Jan 16, 2024
be3bd8f
APPEALS-37039 branch init.
JCohen642 Jan 16, 2024
d768377
APPEALS-36751 deleted set_time_zone.rb file (#20493)
j-n-t-l Jan 16, 2024
8c5b6bb
APPEALS-36751 delete hearing_for_hearing_day_serializer.rb for code p…
j-n-t-l Jan 16, 2024
e42eb12
APPEALS-37039 migrations made. up and down methods need to be completed.
JCohen642 Jan 16, 2024
79f3867
Merge branch 'feature/APPEALS-32376' into janet/APPEALS-36751
ThorntonMatthew Jan 16, 2024
69e2315
Merge pull request #20518 from department-of-veterans-affairs/janet/A…
ThorntonMatthew Jan 16, 2024
25cd7f6
APPEALS-37039 migrations ran. schema updated.
JCohen642 Jan 16, 2024
f63dbc5
APPEALS-37039 applied expected fixes
JCohen642 Jan 18, 2024
925c79c
APPEALS-37039 schema changes.
JCohen642 Jan 18, 2024
e1ccff2
Merge branch 'feature/APPEALS-32376' into jcohen/APPEALS-37039
ThorntonMatthew Jan 18, 2024
c82cebf
Merge pull request #20509 from department-of-veterans-affairs/jcohen/…
ThorntonMatthew Jan 18, 2024
262cba6
[APPEALS-36748] Passing timezone context during Schedule Veteran for…
prernadevbah Jan 18, 2024
e4baecf
[APPEALS-36748] Adding comments about timezone conversions
prernadevbah Jan 18, 2024
e626ee8
[APPEALS-36748] Updating Hearing Time dropdown values
prernadevbah Jan 18, 2024
852b175
[APPEALS-36748] Display Hearing Times in the correct timezone on the…
prernadevbah Jan 18, 2024
f7b4ad2
[APPEALS-36748] Fixing codeclimate errors
prernadevbah Jan 19, 2024
74782a1
APPEALS-37127 created new middleware class and spec file
j-n-t-l Jan 19, 2024
4f8f92b
[APPEALS-36748] Fixing codeclimate and jest errors
prernadevbah Jan 19, 2024
591d532
[APPEALS-36748] Fixing codeclimate and jest errors
prernadevbah Jan 19, 2024
9b6d0dc
APPEALS-37127 added middleware to shoryuken file
j-n-t-l Jan 19, 2024
8f61e84
APPEALS-37561 new branch init. serializers updated.
JCohen642 Jan 19, 2024
28fe95a
APPEALS-37561 spec/serializers/api/v2/hearing_serializer_spec.rb upda…
JCohen642 Jan 22, 2024
3c591d3
APPEALS-37127 switched to time.use_zone
j-n-t-l Jan 22, 2024
e1f322f
Merge pull request #20558 from department-of-veterans-affairs/jcohen/…
ThorntonMatthew Jan 22, 2024
08305fe
APPEALS-37039 branch init.
JCohen642 Jan 16, 2024
5989cbe
APPEALS-37039 migrations made. up and down methods need to be completed.
JCohen642 Jan 16, 2024
c5e9fe1
APPEALS-37039 migrations ran. schema updated.
JCohen642 Jan 16, 2024
8916de8
APPEALS-37039 applied expected fixes
JCohen642 Jan 18, 2024
0bcde46
APPEALS-37039 schema changes.
JCohen642 Jan 18, 2024
c43e6f8
APPEALS-36751 deleted set_time_zone.rb file
j-n-t-l Jan 11, 2024
e8f7357
APPEALS-36751 delete hearing_for_hearing_day_serializer.rb for code p…
j-n-t-l Jan 16, 2024
541938e
APPEALS-37561 new branch init. serializers updated.
JCohen642 Jan 19, 2024
8cfb6b6
APPEALS-37561 spec/serializers/api/v2/hearing_serializer_spec.rb upda…
JCohen642 Jan 22, 2024
790250e
[APPEALS-36748] Fixing jest errors
prernadevbah Jan 22, 2024
003bf9d
Merge branch 'feature/APPEALS-32376' into prernadev/APPEALS-36748
prernadevbah Jan 23, 2024
4a3eb3d
APPEALS-37127 updated rspec file, moved rspec file to correct directo…
j-n-t-l Jan 23, 2024
6c76aef
APPEALS-37127 updated comment for middleware
j-n-t-l Jan 23, 2024
5335806
APPEALS-37095 branch init. New attribute added to factories/hearing.rb
JCohen642 Jan 24, 2024
4cb6a7b
APPEALS-37095 New attribute added to factories/legacy_hearing.rb
JCohen642 Jan 24, 2024
5da94ba
Add jest debugger
ThorntonMatthew Jan 24, 2024
1469914
[APPEALS-36748] Addressing PR feedback
prernadevbah Jan 25, 2024
80f36b9
Update snapshot
ThorntonMatthew Jan 25, 2024
bf7c956
Merge pull request #20549 from department-of-veterans-affairs/prernad…
ThorntonMatthew Jan 25, 2024
fc62882
APPEALS-37127 fixed linter issues with method parameters
j-n-t-l Jan 25, 2024
7d87a48
APPEALS-37127 change use_zone call to fix rubocop issues
j-n-t-l Jan 25, 2024
f835db3
Merge branch 'feature/APPEALS-32376' into janet/APPEALS-37127
ThorntonMatthew Jan 25, 2024
25b2af9
Merge pull request #20550 from department-of-veterans-affairs/janet/A…
ThorntonMatthew Jan 25, 2024
c4f2754
[APPEALS-37094] Updating regional_office_timezone method
prernadevbah Jan 31, 2024
47ade78
APPEALS-37615 persisted scheduled_in_timezone attribute for ama and l…
j-n-t-l Feb 2, 2024
ae3f423
APPEALS-37615 schema update
j-n-t-l Feb 2, 2024
5d945c9
[APPEALS-37094] Fixing tests
prernadevbah Feb 2, 2024
fe3baac
APPEALs-37095 2/02/24 EOD.Hearings Factory set for more dynamic info …
JCohen642 Feb 2, 2024
6820005
[APPEALS-37094] Fixing tests
prernadevbah Feb 5, 2024
a04a561
[APPEALS-37094] Updating snapshots
prernadevbah Feb 5, 2024
d972a2e
APPEALS-37615 added rspec tests and bug fixes discovered from said tests
j-n-t-l Feb 5, 2024
b048b1c
[APPEALS-37094] Fixing tests
prernadevbah Feb 5, 2024
5063e88
Merge remote-tracking branch 'origin/master' into feature/APPEALS-32376
ThorntonMatthew Feb 7, 2024
9c5c142
Remove UAT block
ThorntonMatthew Feb 7, 2024
c9adccf
APPEALS-37615 failing rspec test fixes part 1
j-n-t-l Feb 7, 2024
50841c3
[APPEALS-37094] Addressing PR feedback
prernadevbah Feb 7, 2024
ade24d9
Merge branch 'feature/APPEALS-32376' into prernadev/APPEALS-37094
prernadevbah Feb 7, 2024
6bc49ad
APPEALS-37095 Successfully updated both factories to dynamically prod…
JCohen642 Feb 7, 2024
f46c8b7
Merge branch 'feature/APPEALS-32376' into janet/APPEALS-37615
j-n-t-l Feb 8, 2024
99091a7
Update snapshot
ThorntonMatthew Feb 9, 2024
497bb4b
[APPEALS-37094] Addressing PR feedback
prernadevbah Feb 9, 2024
aa9ef92
APPEALS-37615 updated more rspec files to fix errors
j-n-t-l Feb 9, 2024
2576c1c
Merge branch 'janet/APPEALS-37615' of https://github.com/department-o…
j-n-t-l Feb 9, 2024
15d916c
APPEALS-37615 removed byebug
j-n-t-l Feb 9, 2024
8fe24f0
APPEALS-37095 working through fixing tests.
JCohen642 Feb 9, 2024
071f21c
Add some unit tests
ThorntonMatthew Feb 9, 2024
99f4731
Merge pull request #20665 from department-of-veterans-affairs/prernad…
ThorntonMatthew Feb 9, 2024
267c2d9
Merge branch 'feature/APPEALS-32376' into janet/APPEALS-37615
ThorntonMatthew Feb 9, 2024
951a687
APPEALS-37615 made rubocop fixes and changed string to only have time…
j-n-t-l Feb 9, 2024
c77b35a
Merge branch 'janet/APPEALS-37615' of https://github.com/department-o…
j-n-t-l Feb 9, 2024
1226023
APPEALS-37615 updated schema file to be same as feature branch's
j-n-t-l Feb 9, 2024
dfe3fa0
APPEALS-37615 removed newline that was messing things up
j-n-t-l Feb 9, 2024
045d493
APPEALS-37615 undo last commit
j-n-t-l Feb 9, 2024
ec38118
Merge branch 'master' into feature/APPEALS-32376
ThorntonMatthew Feb 12, 2024
5f62842
Merge branch 'feature/APPEALS-32376' into janet/APPEALS-37615
ThorntonMatthew Feb 12, 2024
b08bd38
Merge pull request #20716 from department-of-veterans-affairs/janet/A…
ThorntonMatthew Feb 12, 2024
9f1a0d1
APPEALS-37095 Tests in both models are now all passing. Going to add …
JCohen642 Feb 12, 2024
5b8e3a6
APPEALS-37095 additional test added to legacy_hearing_spec.
JCohen642 Feb 13, 2024
6855bdc
Merge remote-tracking branch 'origin/feature/APPEALS-32376' into jcoh…
ThorntonMatthew Feb 14, 2024
18018fa
Rubocop fixes
ThorntonMatthew Feb 14, 2024
33e8f0c
Merge remote-tracking branch 'origin/feature/APPEALS-32376' into jcoh…
ThorntonMatthew Feb 14, 2024
3032a07
A couple more Rubocop fixes
ThorntonMatthew Feb 14, 2024
cb2b9e4
mergeing update feature into this branch
JCohen642 Feb 14, 2024
29a7da4
More rubocop fixes
ThorntonMatthew Feb 14, 2024
6f886dd
APPEALS-37095 made adjustments per TL comments
JCohen642 Feb 15, 2024
f0a9bb3
Revert "Rubocop fixes"
JCohen642 Feb 15, 2024
427b3f3
Merge remote-tracking branch 'origin/jcohen/APPEALS-37095' into jcohe…
JCohen642 Feb 15, 2024
b3686ff
Fix spacing
ThorntonMatthew Feb 15, 2024
18bc74e
Merge branch 'feature/APPEALS-32376' into jcohen/APPEALS-37095
ThorntonMatthew Feb 15, 2024
9d8a477
Add back in Rubocop fix
ThorntonMatthew Feb 15, 2024
06e2eae
Add back in another Rubocop fix
ThorntonMatthew Feb 15, 2024
9697263
Merge pull request #20599 from department-of-veterans-affairs/jcohen/…
ThorntonMatthew Feb 15, 2024
594ce76
Merge branch 'dev-support/add-jest-debugger' into feature/APPEALS-32376
ThorntonMatthew Feb 16, 2024
4c3d840
Merge remote-tracking branch 'origin/master' into feature/APPEALS-32376
ThorntonMatthew May 30, 2024
b79a319
Wmedders21/appeals 37096 (#21823)
wmedders21 Jun 7, 2024
be3a997
Piedram/appeals 39890 (#21879)
piedram Jun 11, 2024
f81be9b
Wmedders21/appeals 37040 (#21890)
wmedders21 Jun 18, 2024
65dbce5
ETL Migration scheduled_in_timezone on hearings (#21952)
wmedders21 Jun 18, 2024
14691ce
Merge branch 'master' of github.com:department-of-veterans-affairs/ca…
jimfoley25 Jun 24, 2024
69141ba
APPEALS-39997 spec fixes (#21845)
kamala-07 Jun 25, 2024
604ac26
Wmedders21/appeals 49036 (#21990)
wmedders21 Jun 25, 2024
c53368c
Piedram/appeals 37103 (#21997)
piedram Jun 25, 2024
6c8f098
APPEALS-49793 rspec fix in hearing repository and filled hearing slot…
kamala-07 Jun 26, 2024
429722a
Fix test flakiness due to async banners not being found by capybara a…
wmedders21 Jun 28, 2024
43600b9
APPEALS-50289 rspec fix in assign hearing disposition task spec (#22048)
kamala-07 Jun 28, 2024
1e0c372
Merge branch 'master' into feature/APPEALS-32376
jimfoley25 Jul 1, 2024
adcb876
Merge remote-tracking branch 'origin/feature/APPEALS-32376' into feat…
jimfoley25 Jul 1, 2024
4a1a548
Update shoryuken.rb
wmedders21 Jul 1, 2024
0a2d17a
fix hearing_mailer.rb (#22065)
piedram Jul 2, 2024
46f9d55
Wmedders21/appeals 50767 (#22091)
wmedders21 Jul 9, 2024
948aac0
APPEALS-37051 ETLBuilderJob test data for hearings (#22118)
kamala-07 Jul 10, 2024
bcd9e5b
Merge remote-tracking branch 'origin/master' into feature/APPEALS-32376
ThorntonMatthew Jul 14, 2024
b864dd0
Process scheduled_time_string before creating a hearing via ScheduleH…
ThorntonMatthew Jul 15, 2024
5d70af3
Merge branch 'master' into feature/APPEALS-32376
msteele96 Jul 15, 2024
a142d6c
APPEALS-51555 (BUG): Hearing Time Options Not Reflecting Persisted Va…
noahhansen-gov Jul 18, 2024
7a65df1
APPEALS-51447 Scheduled time showed in the left view is updated (#22162)
kamala-07 Jul 18, 2024
745f4ad
Merge remote-tracking branch 'origin/master' into feature/APPEALS-32376
ThorntonMatthew Jul 26, 2024
a247516
Merge branch 'master' into feature/APPEALS-32376
ThorntonMatthew Jul 29, 2024
a887a65
Merge branch 'master' into feature/APPEALS-32376
ThorntonMatthew Jul 31, 2024
431c00d
Create rake task to seed UAT (#22317)
piedram Jul 31, 2024
0219288
Create a Rails Migration to Add a 'scheduled_datetime' (#22408)
piedram Aug 6, 2024
657875e
Wmedders21/appeals 53522 (#22412)
wmedders21 Aug 7, 2024
c5348bf
Create rake task to seed UAT-Legacy (#22346)
piedram Aug 9, 2024
8180542
APPEALS-53674 scheduled_for is Able to Account for scheduled_in_timez…
kamala-07 Aug 13, 2024
e00a3b7
Wmedders21/appeals 53660 (#22431)
wmedders21 Aug 13, 2024
370a68b
Wmedders21/appeals 53688 (#22435)
wmedders21 Aug 13, 2024
0a59187
APPEALS-53536 new method to check the hearing date time service and h…
kamala-07 Aug 13, 2024
b2c4a66
Merge remote-tracking branch 'origin/master' into feature/APPEALS-32376
ThorntonMatthew Aug 13, 2024
5bcd1ac
Wmedders21/appeals 54461 (#22487)
wmedders21 Aug 15, 2024
25f6635
Adjust slot_hearing in HearingRepository to Utilize New HearingDateti…
piedram Aug 15, 2024
ab3771b
Update spec to use scheduled_in_timezone and scheduled_datetime
wmedders21 Aug 15, 2024
2755b21
Rubocop fix
wmedders21 Aug 15, 2024
d39c5ab
APPEALS-54170 Conditional Pre-Processing of scheduled_time_strings in…
kamala-07 Aug 15, 2024
d52097c
Change central office time string to always be in eastern time explic…
wmedders21 Aug 15, 2024
e64621f
update Hearing#scheduled_for to have correct fallback logic
wmedders21 Aug 15, 2024
363455f
revert expectation in daily_docket/build_hearsched_spec 'User can upd…
wmedders21 Aug 15, 2024
1c1ecfd
revert specs in hearing_mailer_spec
wmedders21 Aug 15, 2024
151eee6
revert spec changes
wmedders21 Aug 15, 2024
c1ad22a
revert spec changes
wmedders21 Aug 15, 2024
b4d8113
MattT/APPEALS-54184: Introduce Conditional Pre-Processing of schedule…
ThorntonMatthew Aug 15, 2024
19eabee
Merge remote-tracking branch 'origin/feature/APPEALS-32376' into kama…
ThorntonMatthew Aug 15, 2024
9430374
Reconfigure placement of some methods. Reintroduce old Hearing#schedu…
ThorntonMatthew Aug 16, 2024
752b119
Unskip a test
ThorntonMatthew Aug 16, 2024
b2a18c8
Ooops! It needs to be a class method
ThorntonMatthew Aug 16, 2024
cd4547b
Fix typo
ThorntonMatthew Aug 16, 2024
8b03536
Merge remote-tracking branch 'origin/wmedders21/APPEALS-54831' into m…
ThorntonMatthew Aug 16, 2024
944e2b6
Fix test
ThorntonMatthew Aug 16, 2024
e67f056
Fix a silly spec typo
ThorntonMatthew Aug 16, 2024
50ad470
Fix hearing_Spec
ThorntonMatthew Aug 16, 2024
fab75ea
MattT/APPEALS-53800: Replace all instances of 'America/Anchorage' wit…
ThorntonMatthew Aug 16, 2024
d4b7642
Fix HearingTime offset on Schedule Veteran form
ThorntonMatthew Aug 19, 2024
cc99c90
Fix TimeSlot offsets when scheduling virtual hearings
ThorntonMatthew Aug 19, 2024
892f9fd
Fixes how offsets are displayed in the following areas:
ThorntonMatthew Aug 19, 2024
c739a47
Push up some stragglers
ThorntonMatthew Aug 19, 2024
595466b
fix showing CORS errors on the frontend in development instead of the…
csheepy May 1, 2024
85a122b
Fix DocketStartTimes offsets
ThorntonMatthew Aug 19, 2024
9fec29a
Fix VSO participant section timezone dropdowns
ThorntonMatthew Aug 19, 2024
87ef99a
Fix Storybook file
ThorntonMatthew Aug 19, 2024
81df7ba
Update spec to use scheduled_in_timezone and scheduled_datetime (#22502)
wmedders21 Aug 19, 2024
442cb49
Merge Bug Fixes
ThorntonMatthew Aug 19, 2024
cc64983
Kamalam7/appeals 54170 (#22516)
kamala-07 Aug 19, 2024
6d339f2
Address some Storybook issues
ThorntonMatthew Aug 20, 2024
3cd3464
Remove accidental code additions
ThorntonMatthew Aug 20, 2024
96a17b4
Add back in missing code
ThorntonMatthew Aug 20, 2024
3e924ed
Fix linting error
ThorntonMatthew Aug 20, 2024
389fc5f
Merge branch 'feature/APPEALS-32376' into prototype/correct-offsets-f…
ThorntonMatthew Aug 20, 2024
8678a03
Add buildDatetimeString function
ThorntonMatthew Aug 20, 2024
1b74ef9
Utilize buildDatetimeString function
ThorntonMatthew Aug 20, 2024
fb0061d
Add jsdoc param
ThorntonMatthew Aug 20, 2024
14a971c
Merge branch 'feature/APPEALS-32376' into prototype/correct-offsets-f…
ThorntonMatthew Aug 20, 2024
cf6c2c6
The juice was not worth the squeeze
ThorntonMatthew Aug 20, 2024
f684772
Revert other change too
ThorntonMatthew Aug 20, 2024
0daa10f
Fix radio field options in DocketStartTimes
ThorntonMatthew Aug 21, 2024
987c8db
Fix test
ThorntonMatthew Aug 21, 2024
40b286a
Fix fields on Hearing Details page
ThorntonMatthew Aug 21, 2024
cc7a3f8
Update Field.test.js
ThorntonMatthew Aug 21, 2024
b4d064d
Update snapshot temporarily
ThorntonMatthew Aug 21, 2024
4ea946d
Fix snapshots for Timezone
ThorntonMatthew Aug 21, 2024
9f976d2
Lint fix
ThorntonMatthew Aug 21, 2024
c2fbecb
Update modalForms/HearingTime snapshots
ThorntonMatthew Aug 21, 2024
7b863e2
Fix TimeSlotButton tests
ThorntonMatthew Aug 21, 2024
62967c0
Fix TimeSlot tests
ThorntonMatthew Aug 21, 2024
c1fe02e
Fix AppellantSection tests and snapshots
ThorntonMatthew Aug 21, 2024
c86ca0b
Fix rep section tests
ThorntonMatthew Aug 21, 2024
959e2bc
Fix DocketStartTimes tests
ThorntonMatthew Aug 21, 2024
7a47ef4
Fix Fields tests
ThorntonMatthew Aug 21, 2024
e160ff9
Fix DailyDocketRow tests
ThorntonMatthew Aug 21, 2024
8434489
Fix EmailConfirmationModal tests
ThorntonMatthew Aug 21, 2024
82df42f
Fix Timezone tests
ThorntonMatthew Aug 21, 2024
575cb56
Fix CaseWorkerIndex snapshot
ThorntonMatthew Aug 21, 2024
3821eda
Remove extra space
ThorntonMatthew Aug 21, 2024
7991bed
Update ScheduleVeteranForm tests
ThorntonMatthew Aug 21, 2024
98414cc
Add back in the newline
ThorntonMatthew Aug 21, 2024
fb2c01d
Add spaces back in
ThorntonMatthew Aug 21, 2024
17dc95b
Add one more space
ThorntonMatthew Aug 21, 2024
1cc5724
Remove 3 spaces
ThorntonMatthew Aug 21, 2024
9a26038
Add debugging output for CI troubleshooting
ThorntonMatthew Aug 21, 2024
aa607cd
Fix PropType issues
ThorntonMatthew Aug 21, 2024
7cc02d0
Adjust expectation in Fields.test.js
ThorntonMatthew Aug 21, 2024
c4dd2b6
Alter expectations
ThorntonMatthew Aug 21, 2024
f22cdb3
Revert tests
ThorntonMatthew Aug 21, 2024
8ea527c
Merge remote-tracking branch 'origin/master' into feature/APPEALS-32376
ThorntonMatthew Aug 22, 2024
04f02d0
Merge branch 'MattT/APPEALS-54971-and-APPEALS-54972' into feature/APP…
ThorntonMatthew Aug 22, 2024
ccf264f
Merge branch 'master' into feature/APPEALS-32376
ThorntonMatthew Aug 22, 2024
a49c65f
Resolve double alert banners on Case Details page
ThorntonMatthew Aug 23, 2024
5b439c1
Add RO times to Previously Scheduled section of Daily Docket pages (#…
ThorntonMatthew Aug 28, 2024
08c9528
MattT/APPEALS-56861 (#22650)
ThorntonMatthew Aug 29, 2024
49c4150
Prototype/recipient timezone fallback (#22568)
wmedders21 Aug 29, 2024
520a4ff
Revert "MattT/APPEALS-56861 (#22650)"
ThorntonMatthew Aug 30, 2024
7ac80b0
Remove duplicate line
ThorntonMatthew Aug 30, 2024
5205e54
Sort by scheduled_for instead on Assign Hearings page (#22674)
ThorntonMatthew Aug 30, 2024
c68f72d
Merge branch 'release/FY24Q4.4.0' into feature/APPEALS-32376-RC
ThorntonMatthew Aug 30, 2024
f90dd77
Address failures in spec
ThorntonMatthew Aug 30, 2024
5c8a7a7
Lint fix
ThorntonMatthew Aug 30, 2024
80e1d7b
Merge branch 'release/FY24Q4.4.0' into feature/APPEALS-32376-RC
ThorntonMatthew Aug 30, 2024
f8074bd
Merge remote-tracking branch 'origin/release/FY24Q4.4.0' into feature…
ThorntonMatthew Aug 30, 2024
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
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@
"webpack:///*": "${webRoot}/*"
}
},
{
"name": "Jest - On Current File",
"type": "node",
"request": "launch",
"env": {
"NODE_ENV": "test"
},
"program": "${workspaceFolder}/client/node_modules/.bin/jest",
"args": [
"${relativeFile}"
],
"cwd": "${workspaceRoot}/client",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
],
"compounds": [
{
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/tasks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def update
# and AssignHearingDispositionTask for virtual hearing related updates
# Start with any alerts on the current task, then find alerts on the tasks
# that resulted from the update
alerts = tasks.reduce(task.alerts) { |acc, t| acc + t.alerts }
alerts = tasks.reduce([]) { |acc, t| acc + t.alerts }

tasks_hash[:alerts] = alerts if alerts # does not add to hash if alerts == []

Expand Down
4 changes: 2 additions & 2 deletions app/helpers/hearings/calendar_template_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ def central_office_display_time(hearing)
end

def representative_display_time(hearing)
format_hearing_time(hearing.time.poa_time)
format_hearing_time(hearing.poa_time)
end

def appellant_display_time(hearing)
format_hearing_time(hearing.time.appellant_time)
format_hearing_time(hearing.appellant_time)
end

# time_zone is a TZInfo::DataTimezone object; date_time_utc is a Time object
Expand Down
11 changes: 0 additions & 11 deletions app/jobs/application_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,6 @@ def capture_exception(error:, extra: {})
end
end

# Testing America/New_York TZ for all jobs in UAT.
# :nocov:
if Rails.deploy_env?(:uat)
around_perform do |_job, block|
Time.use_zone(Rails.configuration.time_zone) do
block.call
end
end
end
# :nocov:

before_perform do
if self.class.app_name.present?
RequestStore.store[:application] = "#{self.class.app_name}_job"
Expand Down
15 changes: 15 additions & 0 deletions app/jobs/middleware/job_time_zone_middleware.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

# This middleware ensures all async jobs run in UTC.
class JobTimeZoneMiddleware
# :reek:LongParameterList
def call(_worker, _queue, _msg, body, &block)
job_class = body["job_class"]
current_tz = Time.zone.name
if current_tz != "UTC"
Rails.logger.info("#{job_class} current timezone is #{current_tz}")
end

Time.use_zone("UTC", &block)
end
end
10 changes: 5 additions & 5 deletions app/mailers/hearing_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ def calendar_invite_name
end
end

def formatted_time
def formatted_time(time)
# Mon, Oct 19 at 10:30am CDT
time_format = "%a, %b %-d at %-l:%M%P %Z"
@hearing.time.appellant_time.strftime(time_format)
time.strftime(time_format)
end

def appellant_name
Expand All @@ -137,9 +137,9 @@ def appellant_last_name

def reminder_subject
if recipient_info.title == HearingEmailRecipient::RECIPIENT_TITLES[:representative]
"Reminder: #{appellant_name}'s Board hearing is #{formatted_time} – Do Not Reply"
"Reminder: #{appellant_name}'s Board hearing is #{formatted_time(@hearing.poa_time)} – Do Not Reply"
else
"Reminder: Your hearing is #{formatted_time} – Do Not Reply"
"Reminder: Your hearing is #{formatted_time(@hearing.appellant_time)} – Do Not Reply"
end
end

Expand All @@ -149,7 +149,7 @@ def confirmation_subject
when HearingEmailRecipient::RECIPIENT_TITLES[:appellant]
"Your Board hearing has been scheduled – Do Not Reply"
when HearingEmailRecipient::RECIPIENT_TITLES[:representative]
"Confirmation: #{appellant_last_name}'s Board hearing is #{formatted_time} – Do Not Reply"
"Confirmation: #{appellant_last_name}'s Board hearing is #{formatted_time(@hearing.poa_time)} – Do Not Reply"
when HearingEmailRecipient::RECIPIENT_TITLES[:judge]
hearing_date = virtual_hearing.hearing.scheduled_for.to_formatted_s(:short_date)

Expand Down
2 changes: 1 addition & 1 deletion app/mappers/hearing_mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class << self
def hearing_fields_to_vacols_codes(hearing_info)
{
request_type: validate_request_type(hearing_info[:request_type], hearing_info.keys),
scheduled_for: VacolsHelper.format_datetime_with_utc_timezone(hearing_info[:scheduled_for]),
scheduled_for: hearing_info[:scheduled_for],
notes: notes_to_vacols_format(hearing_info[:notes]),
disposition: disposition_to_vacols_format(hearing_info[:disposition], hearing_info.keys),
hold_open: hold_open_to_vacols_format(hearing_info[:hold_open]),
Expand Down
10 changes: 6 additions & 4 deletions app/models/concerns/has_hearing_email_recipients_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ def appellant_email_address

def appellant_tz
recipient = email_recipients.find_by(type: "AppellantHearingEmailRecipient")
return recipient.timezone if recipient.present?
return virtual_hearing[:appellant_tz] if virtual_hearing.present?
recipient&.timezone ||
virtual_hearing&.[](:appellant_tz) ||
appeal&.appellant_tz
end

def representative_email_address
Expand All @@ -127,8 +128,9 @@ def representative_email_address

def representative_tz
recipient = email_recipients.find_by(type: "RepresentativeHearingEmailRecipient")
return recipient.timezone if recipient.present?
return virtual_hearing[:representative_tz] if virtual_hearing.present?
recipient&.timezone ||
virtual_hearing&.[](:representative_tz) ||
appeal&.representative_tz
end

private
Expand Down
39 changes: 38 additions & 1 deletion app/models/concerns/hearing_time_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,44 @@ module HearingTimeConcern
delegate :central_office_time_string, :scheduled_time_string,
to: :time

# A façade for a hearing's memoized time service instance - either {HearingTimeService} or {HearingDatetimeService},
# depending on the hearing's attributes.
#
# @return [HearingTimeService] if {Hearing#use_hearing_datetime?} or {LegacyHearing#use_hearing_datetime?} is false
# @return [HearingDatetimeService] if {Hearing#use_hearing_datetime?} or {LegacyHearing#use_hearing_datetime?} is true
def time
@time ||= HearingTimeService.new(hearing: self)
@time ||= if use_hearing_datetime?
HearingDatetimeService.new(hearing: self)
else
HearingTimeService.new(hearing: self)
end
end

# The hearing's local time cast into the POA's timezone
#
# @return [Time]
# The hearing time in the representative recipient's timezone, if available, else local time.
def poa_time
normalized_time(representative_tz)
end

# The hearing's local time cast into the appellant's timezone
#
# @return [Time]
# The hearing time in appellant recipient's timezone, if available, else local time.
def appellant_time
normalized_time(appellant_tz)
end

private

# @param timezone [String] A timezone in a format readable by Rails ActiveSupport::TimeZone.
#
# @return [Time] The hearing's local time cast into the supplied timezone.
# @return [Time] Fall back to the hearing's default local time if the supplied timezone is nil.
def normalized_time(timezone)
return time.local_time if timezone.nil?

time.local_time.in_time_zone(timezone)
end
end
1 change: 1 addition & 0 deletions app/models/etl/hearing_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def mirrored_hearing_attributes
:notes,
:prepped,
:representative_name,
:scheduled_in_timezone,
:scheduled_time,
:summary,
:transcript_requested,
Expand Down
23 changes: 19 additions & 4 deletions app/models/hearing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,21 @@ def advance_on_docket_motion
.first
end

# returns scheduled datetime object considering the timezones
# @return [nil] if hearing_day is nil
# @return [Time] in scheduled_in_timezone timezone - if scheduled_datetime and scheduled_in_timezone are present
# @return [Time] else datetime in regional office timezone
# rubocop:disable Metrics/AbcSize
def scheduled_for
return nil unless hearing_day

# returns datetime in scheduled_in_timezone timezone
if scheduled_datetime.present? && scheduled_in_timezone.present?
return scheduled_datetime.in_time_zone(scheduled_in_timezone)
end

# returns the date and time a hearing is scheduled for in the regional office's
# time zone
#
# When a hearing is scheduled, we save the hearing time to the scheduled_time
# field. The time is converted to UTC upon save *relative to the timezone of
# the user who saved it*, not relative to the timezone of the RO where the
Expand All @@ -211,7 +220,6 @@ def scheduled_for
# to explicitly convert it to the time zone of the person who scheduled it,
# then assemble and return a TimeWithZone object cast to the regional
# office's time zone.

updated_by_timezone = updated_by&.timezone || Time.zone.name
scheduled_time_in_updated_by_timezone = scheduled_time.utc.in_time_zone(updated_by_timezone)

Expand All @@ -226,11 +234,18 @@ def scheduled_for
)
end
end
# rubocop:enable Metrics/AbcSize

def scheduled_for_past?
scheduled_for < DateTime.yesterday.in_time_zone(regional_office_timezone)
end

# Checks the scheduled_datetime value and returns
# @return [Boolean] true if scheduled_datetime is not nil, else false
def use_hearing_datetime?
scheduled_datetime.present?
end

def worksheet_issues
request_issues.map do |request_issue|
HearingIssueNote.joins(:request_issue)
Expand All @@ -240,10 +255,10 @@ def worksheet_issues

def regional_office
@regional_office ||= begin
RegionalOffice.find!(regional_office_key)
RegionalOffice.find!(regional_office_key)
rescue RegionalOffice::NotFoundError
nil
end
end
end

def regional_office_key
Expand Down
6 changes: 5 additions & 1 deletion app/models/hearings/forms/hearing_update_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ def hearing_updates
prepped: prepped,
representative_name: representative_name,
room: room,
scheduled_time: scheduled_time_string,
scheduled_time: HearingTimeService.process_scheduled_time(scheduled_time_string),
scheduled_datetime: hearing.time.class.prepare_datetime_for_storage(
date: hearing.hearing_day&.scheduled_for,
time_string: scheduled_time_string
),
summary: summary,
transcript_requested: transcript_requested,
transcript_sent_date: transcript_sent_date,
Expand Down
12 changes: 7 additions & 5 deletions app/models/hearings/forms/legacy_hearing_update_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ def after_update_hearing

private

# rubocop:disable Metrics/MethodLength
def hearing_updates
updates = {
{
aod: aod,
bva_poc: bva_poc,
disposition: disposition,
Expand All @@ -35,14 +36,15 @@ def hearing_updates
prepped: prepped,
representative_name: representative_name,
room: room,
scheduled_for: scheduled_for,
scheduled_time_string: scheduled_time_string,
scheduled_for: hearing.time.process_legacy_scheduled_time_string(
date: hearing.hearing_day&.scheduled_for,
time_string: scheduled_time_string
),
summary: summary,
transcript_requested: transcript_requested,
witness: witness,
email_recipients_attributes: email_recipients_attributes
}.compact

HearingTimeService.build_legacy_params_with_time(hearing, updates)
end
# rubocop:enable Metrics/MethodLength
end
29 changes: 27 additions & 2 deletions app/models/legacy_hearing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ def external_id
end

def hearing_day_id_refers_to_vacols_row?
(original_request_type == HearingDay::REQUEST_TYPES[:central] && scheduled_for.to_date < Date.new(2019, 1, 1)) ||
(original_request_type == HearingDay::REQUEST_TYPES[:video] && scheduled_for.to_date < Date.new(2019, 4, 1))
perform_vacols_request unless @vacols_load_status == :success

(original_request_type == HearingDay::REQUEST_TYPES[:central] && @scheduled_for.to_date < Date.new(2019, 1, 1)) ||
(original_request_type == HearingDay::REQUEST_TYPES[:video] && @scheduled_for.to_date < Date.new(2019, 4, 1))
end

def hearing_day_id
Expand Down Expand Up @@ -207,6 +209,12 @@ def scheduled_for_past?
scheduled_date < DateTime.yesterday.in_time_zone(regional_office_timezone)
end

# Checks the scheduled_in_timezone value and returns
# @return [Boolean] true if scheduled_in_timezone is not nil, else false
def use_hearing_datetime?
scheduled_in_timezone.present?
end

def held_open?
hold_open && hold_open > 0
end
Expand Down Expand Up @@ -360,6 +368,23 @@ def vacols_hearing_exists?
end
end

# The scheduled time for a legacy hearing after it have been retrieved from VACOLS and processed for time zone.
#
# @return [Time] a Time object in the calculated time zone and DST offset
def scheduled_for
perform_vacols_request unless @vacols_load_status == :success

return nil unless @scheduled_for

return @scheduled_for.in_time_zone(scheduled_in_timezone) if scheduled_in_timezone

HearingMapper.datetime_based_on_type(
datetime: @scheduled_for,
regional_office: HearingRepository.regional_office_for_scheduled_timezone(self, vacols_record),
type: vacols_record.hearing_type
)
end

class << self
def venues
RegionalOffice::CITIES.merge(RegionalOffice::SATELLITE_OFFICES)
Expand Down
Loading
Loading