pontoon
pontoon copied to clipboard
Project and ProjectLocale Insights pages don't have all data since January
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.
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