-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Standardize Asset EOL Date #13585
Standardize Asset EOL Date #13585
Conversation
PR Summary
|
...migrations/2023_07_13_052204_denormalized_eol_and_add_column_for_explicit_date_to_assets.php
Outdated
Show resolved
Hide resolved
FYI: I started reviewing this and will wrap up tomorrow. |
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.
Thanks for all of the effort put into this. I know it was a heavy lift.
I ran into some exceptions while testing it out that we gotta address before merging 😕
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.
Looks good! 😄
Description
Second attempt at this PR after blowing up the first attempt with a rebase.
This should help us get to more of a denormalized Asset EOL Date, and hopefully remove the need for any on-the-fly calculation of that date. The migration calculates and updates all fields where possible, and the observer and asset model controller should always make sure that the value is calculated when it can be. Furthermore, this adds an
eol_explicit
column to Assets to indicate whenasset_eol_date
does not match what the calculated date would be.On the frontend the only change of note is adding an indicator that the
asset_eol_date
is explicitly set (or differing from what would be calculated)Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: