зеркало из https://github.com/mozilla/pontoon.git
948e6cf02b
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. |
||
---|---|---|
.. | ||
tests | ||
__init__.py | ||
actions.py | ||
forms.py | ||
models.py | ||
urls.py | ||
utils.py | ||
views.py |