translated strings counts translations that may not be translated in Launchpad anymore

Bug #172780 reported by Carlos Perelló Marín
0
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Данило Шеган

Bug Description

We should validate that updateStatistics and RosettaStats class handle correctly the case when we have a string translated from 'imported' sources (package imports or upstream imports) but, for some reason, it stops being translated in Launchpad.

Changed in rosetta:
importance: Undecided → High
milestone: none → 1.1.12
Changed in rosetta:
milestone: 1.1.12 → 1.2.1
Revision history for this message
Данило Шеган (danilo) wrote :

Carlos, I am not sure I understand this one. I suspect it's a duplicate of #173527, which we've discussed in #165218, but I'll wait for you to confirm that.

Revision history for this message
Carlos Perelló Marín (carlos) wrote :

No, is not the same thing, In fact, i'm not sure it's really a bug, that's why I said that we should validate it.

The possible problem I see is that we get a message fully translated from upstream (packaged or imported) and, for some reason, someone removes its translation in Launchpad. Current statistics use what we got from upstream as the base 'translated' number and then, we add the new translated in Launchpad to get the total. In the case I just explained, we would still count that untranslated string as translated because we use the imported one as the base.

Is that more clear now?

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Just some notes:

Such "double counting" would have to show up as an overlap between the current-count and the rosetta-count. (The two are added up to form the translated-count). There's an "AND NOT EXISTS"-style clause in the rosetta-count code that excludes messages that have an imported equivalent (which would already be included in in current-count). That clause is quite similar to the "WHERE" clause for current-count. So my impression is that this kind of overlap doesn't happen.

The most noticeable difference between the conditions for inclusion in current-count and exclusion from rosetta-count is that current-count includes only complete messages, whereas rosetta-count looks for imported ones that have _at least one_ plural form translated. But I think that's correct, since an incomplete translation doesn't really belong in the translated-count anyway.

Revision history for this message
Данило Шеган (danilo) wrote :

Well, Carlos' point is that a string would not be translated in Launchpad (thus, not included in rosettaCount), yet translated upstream (and included in currentCount). So, a string which is not really translated is now counted as translated by a mere addition of rosettaCount and currentCount, and translatedCount ends up being 1 larger than it should be.

It sounds very likely that this is a problem in current RosettaStats code.

Changed in rosetta:
milestone: 1.2.1 → 1.2.2
Changed in rosetta:
assignee: nobody → carlos
Changed in rosetta:
assignee: carlos → danilo
Changed in rosetta:
milestone: 1.2.2 → 1.2.3
Changed in rosetta:
status: New → In Progress
Changed in rosetta:
status: In Progress → Confirmed
Changed in rosetta:
milestone: 1.2.3 → 1.2.4
Changed in rosetta:
milestone: 1.2.4 → 1.2.5
Changed in rosetta:
milestone: 1.2.5 → 1.2.6
Changed in rosetta:
milestone: 1.2.6 → none
Changed in rosetta:
assignee: danilo → nobody
Revision history for this message
Данило Шеган (danilo) wrote :

updateStatistics code in message sharing switchover code fixes this bug.

Changed in rosetta:
assignee: nobody → danilo
milestone: none → 2.2.4
Changed in rosetta:
status: Triaged → In Progress
Revision history for this message
Данило Шеган (danilo) wrote :

Fix for this was committed with message-sharing-switchover work.

Changed in rosetta:
status: In Progress → Fix Committed
Changed in rosetta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.