-
Notifications
You must be signed in to change notification settings - Fork 16
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
LUPEYALPHA 1096/fix claim started date 2 #3222
Conversation
c8cbcb0
to
6a44b2f
Compare
AND claims.started_at IS NULL | ||
SQL | ||
|
||
change_column_null :claims, :started_at, false |
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.
feels risky without a prior run? might save you more time if we do this change after confirmation? or happy to keep in if you're feeling confident, i don't think there's any material risk
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.
We're setting this on new claims in the previous PR and we're using the created_at timestamp which should be present on all records as rails is setting it. But yeah I think for avoiding risk we'll split this out into a separate pr (and also because I forgot to remove the not null constraint in the down migration 🙈)
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.
Have moved the migration to make the column non nullable to this pr https://github.com/DFE-Digital/claim-additional-payments-for-teaching/pull/3224/files
9526105
to
e281157
Compare
08eef0f
to
c656ee5
Compare
If the claim has a journey session we try and set the `started_at` to that, if it doesn't have a journey session we'll just use the `created_at` timestamp, which for claims pre the introduction of journey sessions will be the started at time.
e281157
to
bb99389
Compare
Back fill started at
If the claim has a journey session we try and set the
started_at
tothat, if it doesn't have a journey session we'll just use the
created_at
timestamp, which for claims pre the introduction of journeysessions will be the started at time.
PR 2 of 3
1 #3221
3 #3224