-
Notifications
You must be signed in to change notification settings - Fork 19
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
Code clean up after prod backfill #9710
Conversation
end | ||
ScheduleHearingTask.create!(appeal: appeal) do |task| | ||
task.assigned_to = HearingsManagement.singleton | ||
task.parent = parent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be updated to always create a new HearingTask as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean to replace HearingTask.find_or_create_by!() with just HearingTask.create!()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's correct!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! Let's til Monday and confirm that all ScheduleHearingTasks and DispositionTasks have HearingTasks as parents before deploying.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗣 Approved!
This PR also resolves #9538 |
@sharonwarner Almost all Disposition and ScheduleHearingTasks have a HearingTask parent. I ran the following SQL Queries to confirm and found one issue: Total ScheduleHearingTask and DispositionTaskselect count(*) Result ==> 28,190 DispositionTask and ScheduleHearingTask with HearingTask parentselect count(*) Results ==> 28,189 Appeal with issueappeal_id = 864. It is an AMA appeal hence was not touched by my script. Appeal has a Disposition and ScheduleHearingTask with RootTask as parent. We can fix it manually next week. |
Yes, it's fine to ignore that AMA appeal. It's already been distributed to an attorney, so we shouldn't need to do anything else. |
Resolves #9594
Description
Remove some code no longer needed now that prod data is cleaned up.
Acceptance Criteria
Testing Plan