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

[CAPT-1999] Rails 8 #3442

Merged
merged 3 commits into from
Dec 2, 2024
Merged

[CAPT-1999] Rails 8 #3442

merged 3 commits into from
Dec 2, 2024

Conversation

asmega
Copy link
Contributor

@asmega asmega commented Nov 28, 2024

Context

Notes

  • despite setting config.active_support.to_time_preserves_timezone the deprecation warning is still present. from what I can tell it seems to be issue with how the deprecation warning code implemented and should be fine to ignore

@asmega asmega added the deploy Deploy a review app for this PR label Nov 28, 2024
Comment on lines +37 to +52
def calculate_plan_type_of_deduction(value)
if value == "No data"
nil
else
value
end
end

def calculate_no_of_plans_currently_repaying(value)
if value == "No data"
nil
else
value
end
end

Copy link
Contributor Author

@asmega asmega Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar in this area. can some confirm if this is desired? are there other instances of this that need to be addressed that are potentially missing coverage?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar on this bit of code, seems weird that a version upgrade would change this behaviour!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for posterity this change issue was introduced by rails/rails@366909d#diff-3f89af7ff219385718b7c0e4635cc4190476349db18f8bf80fb84fa1e7f5e289L240

adding the casting our side is by far a better option and we simply got lucky before it was doing our desired behaviour by default

@asmega asmega marked this pull request as ready for review November 28, 2024 14:46
Copy link
Contributor

@rjlynch rjlynch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrade looks good, maybe one to merge after the weekend!

Comment on lines +37 to +52
def calculate_plan_type_of_deduction(value)
if value == "No data"
nil
else
value
end
end

def calculate_no_of_plans_currently_repaying(value)
if value == "No data"
nil
else
value
end
end

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not familiar on this bit of code, seems weird that a version upgrade would change this behaviour!

@asmega asmega merged commit 2cd7bfd into master Dec 2, 2024
15 checks passed
@asmega asmega deleted the rails-8 branch December 2, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy Deploy a review app for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants