Coder Social home page Coder Social logo

Stats calculations are off about pontoon HOT 9 OPEN

mozilla avatar mozilla commented on May 4, 2024
Stats calculations are off

from pontoon.

Comments (9)

bugzilla-to-github avatar bugzilla-to-github commented on May 4, 2024

Comment Author: @mathjazz

*** Bug #1310480 has been marked as a duplicate of this bug. ***

from pontoon.

bugzilla-to-github avatar bugzilla-to-github commented on May 4, 2024

Comment Author: @mathjazz

*** Bug #1324350 has been marked as a duplicate of this bug. ***

from pontoon.

bugzilla-to-github avatar bugzilla-to-github commented on May 4, 2024

Comment Author: @mathjazz

Possibly the most common reason for stats discrepancies currently is caused by duplicate approved translations submitted for the same string within a locale. It shouldn't be to hard to fix this when counting stats, but we should prevent duplicate submissions in first place.

from pontoon.

bugzilla-to-github avatar bugzilla-to-github commented on May 4, 2024

Comment Author: @mathjazz

*** Bug #1357176 has been marked as a duplicate of this bug. ***

from pontoon.

bugzilla-to-github avatar bugzilla-to-github commented on May 4, 2024

Comment Author: @TheoChevalier

Commenting here, because I think I’m seeing something related, but different from the temporary stats issue that is solved at next sync.

Thunderbird is displayed as 100% - 0 missing strings, several days after strings have landed: https://pontoon.mozilla.org/fr/thunderbird/ while we can see the strings here https://pontoon.mozilla.org/fr/thunderbird/all-resources/?status=missing

If people are not paying attention to Elmo (which is the case…), they could theoretically miss deadlines.

from pontoon.

bugzilla-to-github avatar bugzilla-to-github commented on May 4, 2024

Comment Author: @mathjazz

Thanks for reporting, Théo!

This type of error seems to be the subset of type #1 mentioned above. When translated strings are removed, we fail to reduce the number of translated strings in stats - and as a consequence, we also fail to increase the number of missing strings. In this subset case, the number of added and removed strings is the same, so we should 0 missing strings if the file was previously translated.

I've found two occurences:
https://hg.mozilla.org/users/m_owca.info/thunderbird-central/rev/318639affa08
https://hg.mozilla.org/users/m_owca.info/firefox-central/diff/37193f8be622/devtools/client/aboutdebugging.properties

For now, I've fixed stats by running calculate_stats() for all of the affected files for all locales.

I'm taking this bug now, because as you mentioned, it could have quite critical implications.

from pontoon.

bugzilla-to-github avatar bugzilla-to-github commented on May 4, 2024

Comment Author: @mathjazz

An observation for projects with in-context l10n: stats for the Subpage can be OK, while stats for ProjectLocale aren't.

Such situations (along with some other mentioned above) are likely to get fixed on the following sync.

from pontoon.

bugzilla-to-github avatar bugzilla-to-github commented on May 4, 2024

Comment Author: @github-actions

Commit pushed to master at https://github.com/mozilla/pontoon

747d91a
Bug #1310668: Recalculate stats when sync completes (#621)

from pontoon.

bugzilla-to-github avatar bugzilla-to-github commented on May 4, 2024

Comment Author: @mathjazz

This ^^ works well for now, but is obviously just a temporary fix.

from pontoon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.