pontoon/pontoon/batch
Eemeli Aro 948e6cf02b
Refactor stats, removing aggregate fields from project, projectlocale & locale (#3536)
Based on unscientific local testing, the rendering speed benefits from eagerly populating the aggregated stats into Project, ProjectLocale & Locale don't exist, compared to collating the data on the fly from TranslatedResource objects. Therefore, we should not be doing this complex extra work. This significantly simplifies the logic around stats updates, and makes the stats much easier to reason about.

The AggregatedStats class no longer extends Model, and it's mostly a crutch for reducing the risks in this change; hence its move from base/models/ to base/. With it, fields like total_strings and strings_with_errors will continue to work for the Django models from which the corresponding DB fields were removed.
2025-01-23 12:31:28 +01:00
..
tests Award badges on batch actions (#3499) 2025-01-06 13:07:19 +01:00
__init__.py Fix bug 1400620 - Reject previous translations after batch edit. (#779) 2017-12-19 17:40:27 +01:00
actions.py Award badges on batch actions (#3499) 2025-01-06 13:07:19 +01:00
forms.py Refactor the frontend build (#2437) 2022-03-02 16:10:42 +01:00
models.py Fix bug 1400620 - Reject previous translations after batch edit. (#779) 2017-12-19 17:40:27 +01:00
urls.py Fix bug 1678452: Fix Django deprecation warnings (#1752) 2020-12-01 22:09:27 +01:00
utils.py Use isort to format Python imports (#3251) 2024-06-05 06:09:35 +02:00
views.py Refactor stats, removing aggregate fields from project, projectlocale & locale (#3536) 2025-01-23 12:31:28 +01:00