Closed ivopaunov closed 3 years ago
This will make the query quite complex
It's already done. I'll make PR soon, just need to test it more with the analytics charts on the platform. https://github.com/AdExNetwork/adex-validator/tree/analytics-time-groups-fix
How is the testing going? Does that fix the issue now?
It's ready. There are just UI touches left.
Analytics for year period are grouped by ROUGH_MONTH span that has issue with matching actual start of months because of leap years. We can use
mongo
aggregations to get the correct start of the months as time groups.