Scratch pofile from POFileTranslator

Bug #382659 reported by Jeroen T. Vermeulen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

POFileTranslator caches people's contributions to translations. Right now it does this per POFile. That's no longer accurate since a shared message can contribute to multiple POFiles—even ones that don't exist in the database.

There's no perfect way to maintain POFileTranslator, but I think the main problems would be solved by replacing POFileTranslator.pofile with (product, distribution, sourcepackagename, template name, language, variant). That's still ignoring diverged messages; to support those we'd have to add a potemplate FK as well and think about the trigger code some more.

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

I'd rather if we just go away with the trigger and try to do more of atomic operations in the code. That's yucky as well, but at least more easily controllable with DB transactions. It can also perform better.

tags: added: message-sharing
tags: added: cleanup
Changed in rosetta:
importance: Undecided → Medium
status: New → Triaged
Curtis Hovey (sinzui)
Changed in launchpad:
importance: Medium → Low
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.