fix string concatenation of number fields in advanced charts#2874
Conversation
Code ReviewSummaryThis PR fixes a critical bug in the advanced charts feature where number fields (e.g., Member Count on Groups) were displaying incorrectly inflated values due to string concatenation instead of integer addition. AnalysisRoot Cause: The Fix: Code Quality ✅Strengths:
Observations:
Testing Considerations
|
|
Concerning:
I tested the connection field type in the same chart and it didn't have the same issue from what I could see. The API returns values as integers instead of strings. |
|
Thank you @cairocoder01! |
In Metrics -> Project -> Advanced Charts, if you selected a number field (e.g. Member Count on Groups), the bar chart would end up showing very high values. This was a result of a string value returned from the API not being parsed as an INT and thus causing string concatenation instead of integer addition.
This parses the needed field in the API response as an INT to fix the issue.