-
Notifications
You must be signed in to change notification settings - Fork 3
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 funding response type on /can-funding-summary #3329
Fix funding response type on /can-funding-summary #3329
Conversation
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. Would it be possible to update our TypeScript CANTypes.d.ts to match the new schema?
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.
All tests passed 👍
🎉 This PR is included in version 1.35.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
What changed
Funding types in the /can-funding-summary response will be numbers instead of strings.
No impact on the frontend, as the data is already handled as numbers:
Number()
to convert values.total_funding
,new_funding
,carry_forward_funding
,planned_funding
,obligated_funding
, andin_execution_funding
) to CANSummaryCards.planned_funding
,obligated_funding
, andin_execution_funding
are converted usingNumber()
.carry_forward_funding
,new_funding
, andtotal_funding
are used in thecalculatePercent
method whereMath.round
in utils.js (line 20) rounds the values to the nearest integer.Issue
fix type on can funding summary response #3234
How to test
All test passes.
Screenshots
N/A
Definition of Done Checklist
Links
None