Closed Bug 1590595 Opened 6 years ago Closed 4 years ago

Wrong resource progress in All Resources/Projects view

Categories

(Webtools Graveyard :: Pontoon, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED MOVED

People

(Reporter: Arash-M, Unassigned)

Details

Attachments

(1 file)

For some resources progress percentage is wrong and does not make sense (screenshot attached).

Thanks for the report!

This is a known bug for a long time, but we haven't been tracking it. The problem happens in the All Resources/All Projects view when you submit/review a translation. The stats returned from the server are aggregated for the current translation view, but we also apply them to the resource the affected translation belongs to.

Resources:
https://github.com/mozilla/pontoon/blob/6755ac7726b48236dd680af036df61a5f1a6750a/frontend/src/core/editor/actions.js#L201
https://github.com/mozilla/pontoon/blob/6755ac7726b48236dd680af036df61a5f1a6750a/frontend/src/modules/history/actions.js#L178

Priority: -- → P3
Summary: Wrong progress percentage calculation for resources → Wrong resource progress in All Resources/Projects view

hi, @mathazz I am trying to reproduce the error, but I can't get to see where the percentages are wrong. I would love to go through it, and come up with a fix for it.

Flags: needinfo?(mousavi.arash)

Michael, this is a pretty complex issue, I suggest we find something else instead. Let's sync on IRC/email.

Flags: needinfo?(mousavi.arash)
*This bug has been moved to GitHub.* *Please check it out on https://github.com/mozilla/pontoon/issues.*
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → MOVED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: