-
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
Remove old-style hold code and db column #10896
Comments
Still waiting on old-style holds to expire. Exactly 100 remaining! select count(*)
, type
from tasks
where on_hold_duration is not null
and status not in ('cancelled', 'completed')
and updated_at = placed_on_hold_at
group by 2
order by 1 desc;
|
Of the 84 open non- In addition, I think we should null out the "on_hold_duration" columns for all 29 tasks so that we don't prematurely take those tasks off hold if folks create child tasks from those tasks (one of the bugs mentioned in the tech spec--another bug predicted the issue we are in with select id
, type
, status
, placed_on_hold_at + on_hold_duration * interval '1 day' as old_style_hold_expiration
, placed_on_hold_at
, on_hold_duration
from tasks
where on_hold_duration is not null
and status not in ('cancelled', 'completed')
and type <> 'NoShowHearingTask'
order by old_style_hold_expiration asc; TODO:
|
Currently have 53 tasks on hold using the old-style holds: select id
, type
, status
, placed_on_hold_at + on_hold_duration * interval '1 day' as old_style_hold_expiration
, placed_on_hold_at
, on_hold_duration
from tasks
where on_hold_duration is not null
and status = 'on_hold'
order by old_style_hold_expiration asc; |
Down to 15 tasks on hold using the old style hold. Revisit this ticket in mid-September after nearly all old-style holds have expired. |
Down to 6 tasks on hold using the old style hold. |
Fields in Tasks table, Begin by ignoring Probably could delete some tests. If we wait to do this until after Nov 13, we don't have to worry about old-style hold. If we want to make transition before then, we will need to create new-style holds for old holds. |
There are no more tasks on hold with the old-style hold! https://caseflow-looker.va.gov/sql/7vrsydq8xs2dd2 |
Resolves #10896 ### Description Removes the `on_hold_duration` in the task table ### Acceptance Criteria - [ ] Code compiles correctly ### Testing Plan 1. Migration runs smoothly ```bash bin/rails db:migrate ``` 2. Tasks no longer have the `on_hold_duration` field ```ruby Task.last.on_hold_duration NoMethodError: undefined method `on_hold_duration' for #<JudgeDecisionReviewTask:0x00007fc33b35f6c8> ``` ### Database Changes * [x] Query profiling performed (eyeball Rails log, check bullet and fasterer output) * [x] #appeals-schema notified with summary and link to this PR
Completes the work from #9207.
Acceptance criteria:
on_hold_duration
column from thetasks
tableThe text was updated successfully, but these errors were encountered: