Don't pass TranslationImportQueueEntry around everywhere
Bug #607231 reported by
Jeroen T. Vermeulen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
We do way too much stuff with TranslationImpo
Right now the parsers for the individual file formats are expected to retrieve the file's contents from the Librarian. I'll pull that up one or two levels in the call tree so that it's easier for tests to inject text directly.
Changed in launchpad: | |
status: | Incomplete → Triaged |
importance: | Undecided → Low |
tags: | added: tech-debt |
To post a comment you must log in.
Jeroen, I am not sure what you want to do with this bug? From my reading it should be titled something like "individual file format parsers should not work on librarian files or translation import queue entries, but on contents or file objects instead". Is my reading correct? FWIW, even that might be more complex than you anticipate, though I am not sure of that (I remember some bits were not nicely decoupled)
(I assume you *don't* want to change all things where TranslationImpo rtQueueEntry/ TIQE is being passed in)