-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: 1788 show budgets diffs triggered by milestone changes #1820
Conversation
9c4bf7b
to
4e2e22c
Compare
b56d0ac
to
76d59a8
Compare
76d59a8
to
e25a02b
Compare
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.
Nice work! 🤩
isEqual( | ||
formDataIncludingCalculatedValues?.[key], | ||
oldFormDataIncludingCalculatedValues?.[key] | ||
) |
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.
No suggestions here, I'd like to know why we need to use the lodash here. Is it because we want to compare array objects?
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, the anticipated funding per fiscal year and additional funding are arrays. If we just use ===
, they're never equal and we get a diff even when nothing has changed
card: https://app.zenhub.com/workspaces/climate-action-secretariat-60ca4121764d710011481ca2/issues/gh/bcgov/cas-cif/1788
Note: Anticipated Funding Per Fiscal Year is no longer in the happo shot. That's correct--the cypress test doesn't change anything that would create a diff in anticipated funding.