Closed
Bug 1521606
Opened 7 years ago
Closed 7 years ago
Stats not calculated properly for translations with warning
Categories
(Webtools Graveyard :: Pontoon, defect, P2)
Webtools Graveyard
Pontoon
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mathjazz, Assigned: mathjazz)
Details
Attachments
(1 file)
Steps to reproduce:
- Open a string with an approved translation.
- Override the translation with a new one that has a c-l or pontoon warning.
Expected result: stats show an increase in warnings and decrease in approved strings.
Actual result: stats are unchanged.
--
The bug is in Entity.get_stats() method, which returns the same result for both, stats_before and stats_after:
{u'strings_with_errors_diff': 0, u'fuzzy_strings_diff': 0, u'strings_with_warnings_diff': 0, u'total_strings_diff': 0, u'unreviewed_strings_diff': 0, u'approved_strings_diff': 1}
Assignee | ||
Updated•7 years ago
|
Summary: Translations with warning → Stats not calculated properly for translations with warning
Comment 1•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → m
Status: NEW → ASSIGNED
Comment 2•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon
https://github.com/mozilla/pontoon/commit/2d46b88671f6f61464c43177d908663eb2fe5d5d
Fix bug 1521606: Save Errors/Warnings in Translation.save() (#1179)
Saving failed checks must happen before updating stats in Entity.get_stats_diff().
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•