pontoon icon indicating copy to clipboard operation
pontoon copied to clipboard

Project and ProjectLocale Insights pages don't have all data since January

Open mathjazz opened this issue 6 months ago • 2 comments

Image

mathjazz avatar May 27 '25 14:05 mathjazz

The missing data (e.g. ProjectLocaleInsightsSnapshot.human_translations) was last collected on January 23. Later that day we deployed stats refactor, which also touched the pontoon.insights module.

Since then, ProjectLocaleInsightsSnapshot data is partially missing.

mathjazz avatar May 29 '25 13:05 mathjazz

This looks like the culprit (line 337 in pontoon/insights/tasks.py): https://github.com/mozilla/pontoon/commit/948e6cf02b1e58e60ddd599c8e40c27a3f432fdc#diff-2df1eab89afb639511fdb958186ff9e4b628de46aa6060ff3413c651f88b230dL337-R350

-        activities, locale=project_locale.locale.id, project=project_locale.project.id
+        activities, locale=project_locale.locale, project=project_locale.project

mathjazz avatar May 29 '25 13:05 mathjazz