/srv/irclogs.ubuntu.com/2010/04/19/#launchpad-reviews.txt

=== jtv changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [noodles775,adiroiban(bug-564852), jtv] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
jtvNo volunteers for a review today?10:41
=== henninge_ is now known as henninge
henningejtv: Let's swap: https://code.edge.launchpad.net/~henninge/launchpad/bug-516736-templatename/+merge/2365912:15
jtvhenninge: OK!12:16
jtvhenninge: s/\<otemplate/potemplate/12:20
jtvhenninge: also, it may help to introduce a variable in the last paragraph of the diff:12:24
jtvpotemplate = self.context.potemplate12:24
jtvif potemplate is None:12:24
jtv    # ...12:24
jtvelse:12:24
jtv    # Do stuff with potemplate, not self.context.potemplate12:24
henningejtv: yeah, nice idea. Although one line lost, one line gained...12:25
henningejtv: how did you "tighten the check a bit more" ?12:32
jtvhenninge: besides just counting the number of forms, I'm also checking that they are the right forms.  The old code would not detect the problem with nplurals=2 and "n ? 0 : 2" for instance.12:34
henningeoic12:34
jtvhenninge: anyway, I'm approving yours.12:34
henningejtv: is it this?12:34
henninge144- if pluralforms_count != len(forms):12:35
henninge145+ found_forms = sorted(forms.keys())12:35
henninge146+ if found_forms != range(expected_forms):12:35
jtvhenninge: right12:35
henningecool12:35
henningejtv: thanks12:35
jtvIt may seem wasteful at first to do a range comparison, but this is only over the number of forms anyway—maximum of 612:35
henningejtv: I just have two small things, I'll mention them in the review. r=me12:36
jtvhenninge: dankeschöen12:37
jtvahem12:37
henningedoppelt gemoppelt12:37
jtvön12:37
henninge;-)12:37
=== henninge changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [noodles775,adiroiban(bug-564852)] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
henningejtv: review sent12:44
jtvthanks12:44
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
sinzuiBjornT, ping15:28
BjornThi sinzui15:29
sinzuiI am not certain from your remarks about the not-packaged-1 branch whether I should try a different name for a new column, or proceed using Packaging15:30
BjornTsinzui: it depends on your use case. if you actually want to record that something isn't packaged, and display this information in the ui, go for the Packaging table.15:32
sinzuiBjornT, regarding the enum, we hide the INCLUDE enum a few months ago because project owner do not understand it. It is used for some Debian and Ubuntu packages. While it is correct for modeling, it does not provide a lot of value for the project or ubuntu contributors15:33
BjornTsinzui: if all you want to do is to control whether to ask the user whether it's packaged, go for the column with a different name15:33
sinzuiI will choose a different name since this is really about a portlet behaviour15:33
BjornTsinzui: ok, cool15:34
=== deryck is now known as deryck[lunch]
=== bac` is now known as BradCrittenden
=== BradCrittenden is now known as bac
=== deryck[lunch] is now known as deryck
adiroibandanilos: Hi, when you have some time can you please take a look at the current interface proposed for bug 512735 and have a short preimplementation chat?16:46
mupBug #512735: At first diplay only preferred languages for a POFile from a POFileSubset <tech-debt> <ui> <Launchpad Translations:In Progress by adiroiban> <https://launchpad.net/bugs/512735>16:46
danilosadiroiban, sure17:03
danilosadiroiban, should I look at the branch?17:03
adiroibanyes17:05
=== matsubara is now known as matsubara-lunch
adiroibandanilos: there is an IHasLangaugesWithTranslations interface17:05
danilosadiroiban, right, looking17:06
adiroibanand an implementation of language-statistics view17:06
danilosadiroiban, so, I am not sure this is quite enough; this is definitely a step in right direction though17:06
adiroibandanilos: what is not enough? the fields from the interface?17:06
danilosadiroiban, yeah, I am not sure that's completely enough17:07
danilosadiroiban, still looking though :)17:10
danilosadiroiban, the biggest concern is performance17:10
danilosadiroiban, also, I suspect you based the generic languages-translations-statistics.pt on one of distroseries or productseries templates17:11
danilosadiroiban, it would have been much easier to read that if you moved one of them to it17:11
danilosadiroiban, also, has_translations and languages_statistics should probably be @properties17:12
adiroibandanilos: true. my bad for not moving one of those files. And yes, those should be properties17:19
adiroibandanilos: the idea is that there will a lot of changes, so I should start by implementing an interface for distroseries and productseries and commit that one17:22
adiroibanand then see what other fields are required by sourcepakage and potemplate and add them later17:23
danilosadiroiban, sure, sounds good, that's why I am complaining about the templates, because that'd be the easiest way for me to see if this is indeed enough for the first go :)17:24
danilosadiroiban, btw, LanguageStatisticsView should definitely not be in browser/language.py :)17:25
adiroibandanilos: agree, I was not sure where to put it. Should I add it in a new file?17:26
danilosadiroiban, sure, please do... it's also not really "language_statistics", it's "per-language statistics"17:26
danilosadiroiban, so, I think it looks good in general, I don't like the naming for many things though :)17:29
adiroibandanilos: why do you think there will be performance issues?17:29
danilosadiroiban, well, we have to be careful about how many DB queries are executed and how many Storm objects we instantiate17:30
adiroibanis there an easy way of profiling sql query numbers and created storm objects ?17:33
danilosadiroiban, so, if we don't have everything we need exposed in the interface and we have to do something like go through all languages to get a total of something, we are a bit screwed (i.e. timeouts will happen)17:33
adiroibanyes, but those statistics are already generated17:34
danilosadiroiban, eg. imagine we need to get a total of translated and untranslated messages here; with this interface, we'd have to go through all languages and add them up17:34
adiroibanis just that there is a lot of duplicate code17:34
danilosadiroiban, right, I am just giving an example of what kind of things to watch out for17:34
danilosadiroiban, and that's the kind of thing we'd need to watch for when designing the interface17:35
danilosadiroiban, I am not pretending to be too smart this late in the day, though, so take that into consideration :)17:35
danilosadiroiban, anyway, if we can't think of anything else, I mostly have complaints about the naming :)17:39
adiroiban:)17:39
danilosadiroiban, not that I can come up with good names right now17:39
adiroibanI will try to rename then and will come back with a full implementation for distro and product series17:40
danilosadiroiban, sure, sounds good17:41
danilosadiroiban, the important distinction is that these are not languages, as I said above, but instead translations... perhaps using "translations" for the property name on the interface would be better17:42
adiroibandanilos: true... i was thinking language_translations17:44
adiroibanto denote that those translations are per language17:44
danilosadiroiban, right, I am struggling with coming up with good naming for this :)17:45
=== gary_poster is now known as gary-lunch
=== matsubara-lunch is now known as matsubara
=== gary-lunch is now known as gary-poster
=== gary-poster is now known as gary_poster
=== salgado is now known as salgado-lunch
=== matsubara is now known as matsubara-afk
=== salgado-lunch is now known as salgado
* jpds has https://code.launchpad.net/~jpds/launchpad/fix_565345-mirror-prober-agent/+merge/23708 up for review.22:24
=== jpds changed the topic of #launchpad-reviews to: On call: - || reviewing: - || queue: [noodles775,adiroiban(bug-564852),jpds] || This channel is logged: http://irclogs.ubuntu.com/ || https://code.edge.launchpad.net/launchpad/+activereviews
=== matsubara-afk is now known as matsubara
=== salgado is now known as salgado-afk

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!