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

fix: 1788 show budgets diffs triggered by milestone changes #1820

Merged
merged 4 commits into from
Aug 1, 2023

Conversation

BCerki
Copy link
Collaborator

@BCerki BCerki commented Jul 26, 2023

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.

@BCerki BCerki marked this pull request as ready for review July 26, 2023 15:55
@BCerki BCerki force-pushed the 1788-calculated-diffs branch 3 times, most recently from 9c4bf7b to 4e2e22c Compare July 28, 2023 14:48
Copy link
Contributor

@Sepehr-Sobhani Sepehr-Sobhani left a comment

Choose a reason for hiding this comment

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

Nice work! 🤩

Comment on lines +33 to +36
isEqual(
formDataIncludingCalculatedValues?.[key],
oldFormDataIncludingCalculatedValues?.[key]
)
Copy link
Contributor

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?

Copy link
Collaborator Author

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

@BCerki BCerki merged commit 43cfb6f into develop Aug 1, 2023
15 of 16 checks passed
@BCerki BCerki deleted the 1788-calculated-diffs branch August 1, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants