Skip to content

[Admin Analytics] fix user stats avg dau typecasting

Administrator requested to merge naman/fix-admin-analytics-stats-numeric-type into main

Created by: thenamankumar

image

Type conversion issue with large numbers on admin analytics users stats page, particularly the avg DAU/WAU/MAU chart. The default type for avg is float in SQL query response, but when a large number is converted to int32 in golang, it gives a syntax error.

Typecasting the avgs to int in SQL to fix it.

Test plan

Check diff.

Merge request reports

Loading