Merge lp:~henninge/launchpad/recife-current-tm-view-1 into lp:~launchpad/launchpad/recife
| Status: | Merged |
|---|---|
| Merged at revision: | 9208 |
| Proposed branch: | lp:~henninge/launchpad/recife-current-tm-view-1 |
| Merge into: | lp:~launchpad/launchpad/recife |
| Diff against target: |
683 lines (+113/-208) 9 files modified
lib/lp/testing/factory.py (+9/-5) lib/lp/translations/browser/tests/test_translationmessage_view.py (+13/-72) lib/lp/translations/browser/tests/translationmessage-views.txt (+3/-3) lib/lp/translations/browser/translationmessage.py (+47/-82) lib/lp/translations/doc/poexport-language-pack.txt (+4/-6) lib/lp/translations/doc/potmsgset.txt (+23/-25) lib/lp/translations/doc/remove-translations-by.txt (+7/-8) lib/lp/translations/stories/standalone/xx-translationmessage-translate.txt (+1/-1) lib/lp/translations/templates/currenttranslationmessage-translate-one.pt (+6/-6) |
| To merge this branch: | bzr merge lp:~henninge/launchpad/recife-current-tm-view-1 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Jelmer Vernooij (community) | code | 2010-11-24 | Approve on 2010-11-24 |
| Steve Kowalik (community) | code* | 2010-11-24 | Approve on 2010-11-24 |
|
Review via email:
|
|||
Description of the Change
= Converting CurrentTranslat
This branch updates the CurrentTranslat
There are three changes in this branch:
1. A general renaming of "imported" to "other" to fit the new model.
2. Removal of "can_dismiss_
3. The view had member variables for "imported_
== Tests ==
I have run all lp.translations tests on this branch and they pass fine.
bin/test -vvcm lp.translations \
-t test_translatio
-t translationmess
-t xx-translationm
== Demo/QA ==
This will be QA'ed with the full feature branch. The big thing to notice now when running this branch is that "Packaged" has been replaced with "Other" on the translate page.
== Lint ==
There are lint issues which I will fix in the next branch.
| Henning Eggers (henninge) wrote : | # |
| Steve Kowalik (stevenk) wrote : | # |
Hi Henning,
These changes look fine to me -- and a bonus about removing a lot of code.
My only concern is the use of "Other", but I'm not going to block the branch for that nitpick.
| Henning Eggers (henninge) wrote : | # |
Never mind my last comment. Those changes have already been reviewed, just not landed ...
/me is very forgetful atm. :(
| Данило Шеган (danilo) wrote : | # |
Henning, thanks for taking care of this. I've only gone through your
MP, and wonder one thing.
У сре, 24. 11 2010. у 08:05 +0000, Henning Eggers пише:
> 2. Removal of "can_dismiss_
I am not so sure it can't be "dismissed": the problem is that if
date_reviewed on the current translation is older than the "other"
current translation, you'll always have one unreviewed translation. The
solution to that is to just update the date_reviewed on the current
translation. I haven't looked at the code changes, but we do want to
preserve this behavior if it works today. If it doesn't, well,
something for another day.
| Henning Eggers (henninge) wrote : | # |
Thanks for commenting on that. I had forgotten how exactly that worked and from that misjudged the situation.
I reverted this change in lp:~henninge/launchpad/recife-current-tm-view-3 and got it to work with the new model, even the test that Jeroen had to deactivate. All good but later than expected.

Sorry, the following files are from a a different branch:
lib/lp/ testing/ factory. py translations/ doc/poexport- language- pack.txt translations/ doc/potmsgset. txt translations/ doc/remove- translations- by.txt
lib/lp/
lib/lp/
lib/lp/
Luckily they are orthogonal to the other changes. The branch is lp:~henninge/launchpad/recife-kill-ut-in-tests-1. It is about replacing calls to "updateTranslation" in tests with calls to the factory method "makeCurrentTra nslationMessage ". This is quite mechanical but the factory method had to be extended to include sanitation, something that "updateTranslation" used to do.
You can chose to ignore these files or review them along with the others. Your pick. ;-)