/srv/irclogs.ubuntu.com/2009/12/16/#launchpad-reviews.txt

=== adiroiba1 is now known as adiroiban
=== Ursinha is now known as Ursinha-afk
=== danilo_ is now known as danilos
=== StevenK_ is now known as StevenK
=== al-maisan changed the topic of #launchpad-reviews to: on call: - || reviewing: - || queue [adiroiban(bug-492375 pre-implementation), al-maisan(http://tinyurl.com/y8joo24)] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== jtv changed the topic of #launchpad-reviews to: on call: jtv || reviewing: - || queue [adiroiban(bug-492375 pre-implementation), al-maisan(http://tinyurl.com/y8joo24)] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== jtv changed the topic of #launchpad-reviews to: on call: jtv || reviewing: adiroiban || queue [al-maisan(http://tinyurl.com/y8joo24)] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: adiroiban, - || queue [al-maisan(http://tinyurl.com/y8joo24)] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
jtvadiroiban: you're trying to get a pre-implementation call for your branch, right?09:14
adiroibanjtv: yep. but there is no hurry09:15
adiroibani just want to know if it't ok to augment a model in the view in that way09:16
gmbjtv, allenap: RC branch for your perusal, if you please: https://code.edge.launchpad.net/~gmb/launchpad/ubuntu-filebug-dupefinder-bug-497096/+merge/1623009:16
jtvadiroiban: oops, gmb's takes precedence.  I'll let yours lie for the moment, then09:17
adiroibanjtv: sure :)09:17
allenapjtv: I can take it.09:17
jtvallenap: oh, that would solve it too.  :-)09:17
jtvhi btw09:17
=== allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: adiroiban, gmb || queue [al-maisan(http://tinyurl.com/y8joo24)] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
allenapHi jtv :)09:18
allenapal-maisan: Is your branch an RC candidate?09:18
jtvadiroiban: so back to yours...  I'll browse through your diffs a bit first09:18
adiroibanjtv: look at the view class09:18
al-maisanallenap: no, it's not09:18
al-maisanallenap: .. and good morning :)09:19
adiroibanjtv: i would like to tag preferred langauages so that it makes it easy and nice to presented them different in the template09:19
allenapal-maisan: Morning :)09:19
jtvadiroiban: I'm comparing to productseries to get an idea of what danilo is saying09:20
adiroibanjtv: I talked with danilo and we agree to do the filtering using css class and javascript09:22
adiroibanjtv: the current branch is not ready yet. I just create a filter on a single page09:23
adiroibanjtv: here is the nasty code http://bazaar.launchpad.net/~adiroiban/launchpad/bug-492375/revision/10055#lib/lp/translations/browser/distroseries.py09:24
jtvadiroiban: thanks09:24
jtvoh, that's the same page I was already looking at :)09:25
adiroiban:)09:26
danilosadiroiban, btw, I think your branch already fix that bug 347... (allowing translation group owners to administer langpacks)09:26
jtvhi danilo :)09:26
danilosjtv, hi09:26
adiroibandanilos: maybe :) i have no idea how lang-packs are handled 09:26
jtvI think we have a "link" formatter for languages... makes me wonder if the CSS class for preferred languages should be in there, and the default "seen/unseen" choice for non-preferred ones set in local CSS09:28
adiroibandanilos: i just commented on that bug and assigned so that I can look into it09:28
danilosadiroiban, it should be pretty simple to test, log in as an ubuntu translation group owner but without any admin or rosetta-experts privileges to launchpad.dev and go to translations.launchpad.dev/ubuntu/hoary/+language-packs and see if the form shows up and you can edit it09:28
allenapgmb: Should lines 20 to 33 also be moving?09:28
danilosjtv, it should, I'd say!09:28
danilosjtv, I mean, it's a great idea :)09:29
danilosadiroiban, yep, thanks09:29
jtvoh, probably in js, not css—so that you get all languages when js is disabled09:29
jtv(barring cases where we have a clickthrough to a full list I guess)09:29
gmballenap: Eh... Hmm. Well, it passes the tests ;). But no, probably not. I'll move those back.09:29
danilosadiroiban, if you find it's fixed by your previous branch, please do assign yourself to it... if it's not, it can be because we are not using the same privilege on distroseries, and then it's still only a simple fix away09:29
gmballenap: Although that gets a bit knotty then...09:29
adiroibandanilos: yep. let me start firefox09:30
danilosjtv, well, we only set class "preferred" on preferred languages, but language formatter is not very useful here since we are linking to ProductSeriesLanguage or DistroSeriesLanguage (or in the future, ProjectLanguage or SourcePackageLanguage)09:30
adiroibanit looks like in webkit based browser I can not see some sprites09:30
gmballenap: No, I'll move it back, because otherwise it will have nasty effects on the other +filebug views when extra data get passed.09:30
jtvdanilos: facepalm :)09:30
gmballenap: Nice catch.09:31
danilosadiroiban, yeah, I've seen that too, I think we have an existing bug on those09:31
jtvwe have a problem with konqueror with <a> tags that have no text in them...09:32
adiroibandanilos: checking in firefox... no new edit stuff. I will look into that as by now I should know how to fix it09:32
jtvthere's a little workaround for the konqueror problem though09:32
adiroibanshare it :)09:33
adiroibani'm using chromium and epiphany and I can not see the import queue entry edit icons09:33
* jtv digs up lazr-js fix09:33
adiroibandanilos: as soon as I finish with the current branches I will start hunting the lang-pack bug. Right now I'm looking at import queue permission09:35
danilosadiroiban, I am not going to push you at all, it's not like you need pushing :) so, just take your time :))09:35
adiroibandanilos: :)09:36
adiroibani'm still learning the LP security mechanism09:36
allenapgmb: I have broken your merge proposal.09:36
gmballenap: Fail.09:37
gmballenap: Just do the second review that's listed for you; it should DTRT.09:37
allenapgmb: No, I mean it's OOPSing all the time when I go to the page.09:38
jtvadiroiban: okay, it's nasty: if you have a link with just an icon in it (nothing else), konqueror sees it as empty and so doesn't render it.  You can work around it in CSS.  To :link and :visited pseudoclasses for the link, you add content: ""09:38
allenapgmb: https://lp-oops.canonical.com/oops.py/?oopsid=OOPS-1446EB30709:38
adiroibanhow long does it take to run a full test on ec2? On an 2G AMD, running test -m translations it took me 200minutes09:38
jtvadiroiban: that's pretty long...  but a full ec2 test is going to take longer09:38
jtvadiroiban: but09:39
allenapgmb: I'm filing a bug for it.09:39
allenapgmb: In any case, r=me.09:39
jtvI'm pretty sure you can fire off an ec2 image with your own arguments for bin/test09:39
gmballenap: Ta. I'll have an incremental diff for you in a second...09:39
allenapgmb: Cool.09:40
adiroibanjtv: np. I was just courious09:40
jtvadiroiban: the old ec2test command would just pass on any extra args09:40
adiroibanjtv: so getting back at my branch (sorry for going offtopic)09:41
gmballenap: Inc diff posted to https://code.edge.launchpad.net/~gmb/launchpad/ubuntu-filebug-dupefinder-bug-497096/+merge/1623009:41
* gmb asks Santa for permalinks to MP comments.09:42
allenapgmb: That page is OOPSing for me :) I'll wait for the email.09:42
gmbHah.09:43
jtvadiroiban: yes... afaics, if js is turned off, your branch shows only the preferred languages.  Don't we want all languages in that case?09:43
gmballenap: http://pastebin.ubuntu.com/342580/ if you want it quicker ;)09:43
adiroibanjtv: ok. sure09:43
adiroibanjtv: i was worried about the usage of class DistroSeriesLanguageTagged:09:44
jtvadiroiban: yes, I do wonder whether that's really needed09:44
allenapgmb: I got it, thanks. Looks good, r=me.09:45
adiroibanjtv: adding it as an attribute to SeriesLanguage model is also strange09:45
gmballenap: Thanks.09:45
adiroibanas it's only a view attribute09:45
adiroibanand the model should not care about it09:45
allenapgmb: I'll try and reply to the mp via email to approve it too.09:45
gmbThanks.09:46
jtvadiroiban: very true09:47
adiroibanjtv: this is my dilemma09:47
adiroibanjtv: i could just put that logic in the template... but it would make the template look bad09:48
adiroibans/bad/ugly/09:48
* jtv wonders if factoring out a SeriesLanguageView would help09:48
adiroibanjtv: SeriesLanguageView or ( DistroSeriesView and ProductSeriesView) ?09:51
jtvadiroiban: a replacement for ProductSeriesLanguageView & DistroSeriesLanguageView09:52
jtvadiroiban: they're practically identical, structurally09:53
adiroibanjtv: yes... but I don't know how this can solve the langauge tagging problem09:54
jtvbut you'd have to render the table rows differently to get to that view09:54
jtvwell, you'd have a single place to tag a <tr> as being for a preferred language or not09:54
adiroibanjtv: yes. but my problem is how to tag it in the view09:55
jtvmaybe I'm thinking too much about the cleanup part :)09:55
allenapgmb: I can't update that mp by email either (bug 497338).09:55
mupBug #497338: OOPS on merge proposal page <oops> <Launchpad Bazaar Integration:New> <https://launchpad.net/bugs/497338>09:55
adiroibanjtv: i can do the cleanup... but I still don't know how to tag a preferred langauge in the view09:55
danilosjtv, adiroiban: do note that when you are going through a list of those, they are read from an attribute on the model class, but the view class extends them with preferred languages; that's the right place to add "preferred" decorators on them I guess09:55
adiroibanjtv: other than the proposed solution09:55
adiroibandanilos: I think that's what I'm doing now... or not?09:56
danilosadiroiban, I don't know :)09:57
adiroibandanilos: ok :)09:57
jtvadiroiban: I don't think anyone is saying the basic low-level approach is wrong09:57
jtvbut we're talking about where to put it09:57
jtvsince we already have view classes for {product,distro}serieslanguage09:58
gmballenap: What did you do? Honestly... Okay, no worries, I'll add a note to the effect that you broke everything.09:58
allenapgmb: Cool :)09:59
jtvadiroiban: It may start to matter as the code deals with more special cases: not logged in, no preferences set, no JS enabled.  Don't want to duplicate that code.09:59
adiroibanjtv: I can add an interface/baseclass... but I don't know how to avoid the usage of SeriesLanguageTagged09:59
adiroibanjtv: or is ok to go with a SeriesLanguageTagged class?10:00
danilosadiroiban, jtv: I'd say just put it in the model for now, since there's a lot more refactoring possible there anyway10:00
=== allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: adiroiban, al-maisan || queue [] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
jtvdanilos: maybe an "is_preferred"?10:01
jtvhmmm that still leaves the messy stuff in the tal10:01
adiroibandanilos: putting it the model will also imply changing the permission10:01
danilosjtv, yeah, it's just a place to hold the value that will be passed in from the construction in the view10:02
danilosadiroiban, what permission would need to change?10:02
adiroibanfor accessing the is_preferred10:02
adiroibanas it would be written in the view10:02
danilosadiroiban, well, of course, you'd have to allow it, but you can actually pass it in from the constructor/and or (D|P)SLSet instead10:03
adiroibandanilos: I don't know... I don't feel we need to have that attribute in the model10:03
jtvadi has a point...  it gets ugly10:04
adiroibanit is something binded to the user configurations10:04
danilosadiroiban, well, you've got two options then: initialise a view for each of the series languages (even uglier, if you ask me: that's what we are doing for +translate page and it's very bad) or...10:04
jtvnow, I'm very very rusty and vague on the zope part of this, but if we can render the table rows from a separate view, then that view seems the ideal place for this—and we have the two near-identical *SeriesLanguageViews already10:05
danilosadiroiban, or create a new decorated SeriesLanguage class which wraps (Product|Distro)SeriesLanguage and contains such things10:05
allenapal-maisan_: Line 332, does getPublishedSources() sort the results?10:05
al-maisan_allenap: just a minute please10:05
danilosjtv, yes, we can do that in zope10:05
jtvbut not nice?10:05
adiroibandanilos: that's what I'm doing now... a new class that wraps 10:06
danilosjtv, that's close to what I proposed above, except that it would again be a view10:06
adiroibandanilos: or at least... I think I'm doing it :)10:06
jtvadi: yes, you are... and I must admit it's not a lot of overhead10:07
danilosadiroiban, the problem with that approach is that it gets ugly faster... DSL and PSL should implement the same interface, and then you could have a wrapper class/row view for that interface10:07
adiroibandanilos: i will start with implementing a single interface10:07
adiroibanand the do the wrapper10:07
adiroibanfor a single serieslangauge10:07
danilosadiroiban, jtv: and, we should have a shared interface for something that IHasSeriesLanguageObjects which allows you to render these listings, including marking languages as preferred and similar10:08
jtvthat does get to be more work...10:08
al-maisan_allenap: yes, it does.10:08
daniloswith that, I don't see why we'd need a wrapper interface anyway, so... :)10:08
allenapal-maisan_: Cool.10:08
danilosjtv, indeed10:08
jtvfor the DSL/PSL views we don't even need two separate classes AFAICSC, but that's another matter10:09
danilosjtv, exactly, the views should be registered on the interface they share10:09
adiroibanok. now it's getting messy :D10:09
danilosjtv, that interface should support ProjectLanguage and SourcePackageLanguage in the (close) future10:09
=== jpds changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: adiroiban, al-maisan || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
danilosadiroiban, heh, naah...10:10
danilosadiroiban, jtv: that's why I say let's get this into a model for now, and if we want to clean it up, let's start top-down10:11
adiroibanjtv, danilos: the plan: implement the wraper as it is now. and then look look how all these views can be refactored10:11
danilosadiroiban, jtv: i.e. first step is to make PSL/DSL use a shared interface (even if that interface includes is_preferred, that's ok for now)10:11
adiroibanlike you said... it is to much for now10:11
adiroibanso we need to break the work10:12
danilosadiroiban, jtv: next step would be providing a SLCollection interface to be implemented by ProductSeries, DistroSeries,...10:12
danilosadiroiban, exactly, so I'd keep it as simple as possible for now and put it in the model :) if you also refactor PSL/DSL to share the interface and use the same view, that's even better :)10:12
adiroibandanilos: but I still need to hold the css_class as an attribute10:13
danilosadiroiban, or have an ugly TAL :) perhaps tal:define is not that bad in here because it will simplify TAL and let you get on with the actual feature without being too bad ;)10:13
adiroibanso instead of is_preferred, i need to have css_class10:13
danilosadiroiban, yep, see above10:13
adiroibanright now I don't see to much sense in putting in on the model. it should be in the view or the template10:15
jtvwe could also have it all in JS, I guess10:15
adiroibanjtv: yes :)10:16
jtvwe'd be giving the JS a list of preferred languages10:16
adiroibanjtv: maybe that would be the "cleanest" approach for now10:17
danilosjtv, that's an option as well10:17
jtvwell the dirty little skeleton in that can of worms is how to make the tal pass the list to the js10:17
allenapal-maisan_: getChangesFilesForSources() seems to now only be used in lib/lp/soyuz/adapters/archivesourcepublication.py. Is there any way to change that to use your new query?10:17
jtv...if you don't mind me mixing a few metaphors10:18
adiroibanjtv: just put it in a json/javascript structure10:18
jtvit's not a big skeleton :)10:18
al-maisan_allenap: I am not sure, that method is selecting and pre-joining a lot more data and that probably makes sense for the web UI10:20
jtvadiroiban: an added advantage (I think) is that the "full view" stays the natural consequence when JS is disabled10:21
jtvand afaics there are no changes when reusing between different "serieslanguage" types10:22
allenapal-maisan_: Okay. Do you think you could comment in getChangesFilesForSources() that getChangesFileLFA() contains a potentially more efficient query, depending on what you need out of it.10:22
adiroibanjtv: http://bazaar.launchpad.net/~adiroiban/launchpad/bug-359180-event-key/revision/8787#lib/lp/translations/templates/pofile-translate.pt line 28810:22
al-maisan_allenap: sure, will do that.10:23
adiroibanis a javascript that holds a tal loop10:23
adiroibanin that way I can write the prefered langauges in a js array10:23
jtvdanilos, didn't you also do something like what adiroiban just pointed to for PSL?10:24
danilosjtv, btw, doing it in JS is going to make some very ugly TAL10:24
allenapal-maisan_: There aren't any unit tests for getChangesFileLFA(). I can see that changes_file_url is tested in a few places, but it's not quite the same thing. Unless there's a good reason not to, could you add this?10:25
al-maisan_allenap: good point, I'll add unit tests for getChangesFileLFA().10:25
danilosjtv, /me looks10:25
allenapal-maisan_: Thanks.10:26
adiroibandanilos: <tal:block tal:replace="structure string:&lt;script type='text/javascript'&gt;" />10:26
adiroibanto trick tal thinking that you are still in HTML/XHTML land10:26
jtvdanilos: actually, not much like that bit.  :)  What I meant was, each PSL row gets a CSS class with the language code in it10:27
danilosadiroiban, the problem is that you want to get preferred languages from the view using TAL and put that into JS10:27
jtva trick for that is to embed a single js function call in the tal that passes the desired arguments10:28
jtvreally minimizes the tal impact10:28
adiroibanjtv: function... or just an array10:28
jtv...or an array.  :)10:28
danilosadiroiban, jtv: right, and if it's not clear yet, I find that just doing it in the model is much, much nicer10:28
danilosadiroiban, jtv: you can argue sanity of that any day, but I am going to argue sanity of this kind of JS back every time, and I'll still feel like I am right :)10:29
adiroibandanilos: ok. then I will add a "css_class" in the model?10:29
adiroiban:D10:29
danilosadiroiban, no, add is_preferred to the model10:29
adiroibanand how can i convert the is_preferred to a css class?10:30
danilosadiroiban, and in TAL do something like <tal:preferred condition="lang/is_preferred" define="css_class preferred" /> or something like that10:30
danilosadiroiban, using tal:condition10:30
* jtv stops trying to interfere :-)10:30
adiroibandanilos: ok. let me try and see what I can get10:31
danilosadiroiban, alternative is to not add anything to the model, and use the similar tal:condition to define CSS class using a view model and something like tal:condition="python:langstats.language in view.preferredlanguages"10:32
danilosadiroiban, with above, you won't even have to modify the model, just expose preferredlanguages in the view10:32
adiroibandanilos: but I will have to use define="global css_class string:preferred"10:33
adiroibanor otherwise there will be a big duplicate code for the row10:33
adiroibanis this ok?10:33
adiroibanto use global?10:33
danilosadiroiban, yes, don't tell me that's uglier TAL than for inserting JS :)10:33
danilosadiroiban, yeah, it's ok to use a global but then name it something more unique just in case (i.e. preferred_language_css_class)10:34
adiroibandanilos: nope10:34
jtvisn't it going to break the matching def for the next row10:34
jtvthough?10:34
danilosjtv, what do you mean? we'll want to define it to an empty string otherwise, that's for sure10:34
adiroibandanilos , jtv : thanks! I will go with TAL only10:35
adiroibanpython and global10:35
jtvdanilos: don't know what global does there, so wondering whether anything will break if you re-define the same name later10:35
danilosadiroiban, instead of doing an in like I suggested above, it's probably marginally better to have a method on the view isPreferredLanguage and call that instead10:35
adiroibandanilos: ok10:36
danilosjtv, oh, I am sure that'll be fine10:36
adiroibanmay the TAL be with me10:36
danilosadiroiban, you'll still have to call the method with python:view.isPreferredLanguage(langstat.language) but I think that's better10:36
danilosadiroiban, :)10:36
adiroibanyep10:36
adiroibanok. I think it's enough for now10:37
jtvadiroiban: and while we're complicating your life, don't forget the cases where there are no preferred languages.  :-)10:37
adiroibanjtv: :)10:37
adiroibanjtv, danilos . that should be all for the pre-implementation call. Thanks!10:41
jtvadiroiban: good luck, thanks for working on this!10:41
=== jtv changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: -, al-maisan || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: -, - || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: -, <release-qa> || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== matsubara-afk is now known as matsubara
jpdshttps://code.edge.launchpad.net/~jpds/launchpad/fix_450262/+merge/16203 ← all set for review. :)11:12
jtvjpds: shouldn't you follow that one up with bac?11:15
jpdsjtv: Hmm, yeah, I thought it could do with more eyes too.11:15
jtvjpds: makes sense, but it also confuses the situation a bit... like asking your dad for a cookie because your mom already said no.  :-)11:16
jpdsjtv: But I asked for a biscuit!11:17
jtvjpds: I see you have worked on this strategy11:17
jpdsjtv: I'll wait for bac.11:39
jtvjpds: IIRC his review said he'd review the updated MP, right?  He should be around soon, if not already.11:39
maxbIf you don't mind a slightly different kind of review: https://code.edge.launchpad.net/~maxb/meta-lp-deps/no-pullparser/+merge/1623211:44
adiroibanjtv: if a person had not defined yet his/her preferred langauges, LP tries to be smart and provides a list with possible langauges12:17
adiroibanso we can not have an empty list of preferred languages12:18
jtvadiroiban: IIRC we've sort of been moving away from that, but I can't say I kept much of an eye on it12:18
jtv(we had endless fun with a unit test that used Serbia & Montenegro as a geoip example :-)12:19
BjornTmaxb: approved12:21
adiroibanjtv: ok. then if there is no language I will set all launguages as preferred12:22
maxbBjornT: Thanks.12:22
jtvadiroiban: and don't forget to exclude en/en_US  :-)12:22
jtvoh, just "en" I think12:22
adiroibanjtv: well I will just use the current list12:23
adiroibanjtv: i will finish it and push a branch for review12:23
jtvadiroiban: it all depends how many layers of abstraction you include, I suppose.  :)  In call now.12:23
jtvgreat!12:23
=== allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: -, <lunch> || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== Ursinha-afk is now known as Ursinha
=== jtv is now known as jtv-eat
=== BjornT changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: -, <lunch> || queue [jpds, bjornt] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
BjornTjtv-eat, allenap: i've added a small branch to the queue. it's not an rc candidate13:23
* bac enjoying a quick breakfast13:38
bacjpds: i'll have a look in a bit13:38
=== irc.freenode.net changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: -, <lunch> || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap || reviewing: -, <release-qa> || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== EdwinGrubbs changed the topic of #launchpad-reviews to: on call: jtv, allenap, Edwin || reviewing: -, <release-qa> || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== vednis is now known as mars
gmbjtv, allenap: I have a branch for you to review: https://code.edge.launchpad.net/~gmb/launchpad/another-checkwatches-keyerror-bug-497414/+merge/1624315:09
gmbArgh, netsplit.15:09
=== matsubara is now known as matsubara-lunch
gmbjtv-eat allenap: I have a branch for you to review: https://code.edge.launchpad.net/~gmb/launchpad/another-checkwatches-keyerror-bug-497414/+merge/1624315:12
gmbSorry if you see this message twice; I got netsplit'd so I don't know who I hit and who I missed15:12
allenapjpds: Has someone picked up your branch?15:13
=== allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap, Edwin || reviewing: -, - || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
allenapgmb: How would all_remote_ids contain an id not in bug_watches_by_remote_bug?15:16
jpdsallenap: bac's going to have a look at it.15:16
gmballenap: Well, I haven't figured that out yet; that's a separate bug. But the point is that if we log the error rather than just blowing up when we hit it we can file a bug and investigate later rather than worrying about checkwatches failing all the time.15:17
allenapjpds: Cool. Thanks for being patient today :)15:17
allenapgmb: Oh, does it fail here too?15:18
* allenap reads the bug report so as to stop wasting gmb's time :)15:20
allenapgmb: Ah, so it does :)15:20
gmballenap: Heh.15:21
gmbYeah, the bug we just fixed was masking this one.15:22
allenapgmb: r=me15:26
gmballenap: Awesome, thanks.15:26
allenapgmb: checkwatches is getting too complex to understand.15:27
gmballenap: It did that years ago. It's since uploaded itself onto the web as pure energy and is responsible for all the major wars in the world.15:27
allenapgmb: Neuromancer, Wintermute... now CHECKWATCHES!15:28
gmballenap: Doesn't *quite* have the same ring to it, but we can work on it.15:28
=== salgado is now known as salgado-lunch
EdwinGrubbsallenap: can you review my branch? https://code.edge.launchpad.net/~edwin-grubbs/launchpad/bug-482176-add-team-member-ajax-part1/+merge/1622615:45
allenapEdwinGrubbs: Sure, I'll do it now.15:47
=== allenap changed the topic of #launchpad-reviews to: on call: jtv, allenap, Edwin || reviewing: -, Edwin, - || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
adiroibanhenninge_: is there anything I need to do for https://code.edge.launchpad.net/~adiroiban/launchpad/bug-435165/+merge/16084 ?15:53
EdwinGrubbshenninge_: do you want me to review your branch?15:55
adiroibanthere is also this on https://code.edge.launchpad.net/~adiroiban/launchpad/bug-435165/+merge/16084 :)15:55
adiroibansorry. stupid paste15:58
=== henninge_ is now known as henninge
henningeEdwinGrubbs: That would be really nice.16:05
=== jamalta is now known as jamalta|work
=== matsubara-lunch is now known as matsubara
henningeEdwinGrubbs: That would be really nice. I see you already claimed it.16:20
EdwinGrubbsyes, I'm working on it16:20
=== Ursinha is now known as Ursinha-lunch
leonardrsalgado-lunch: updated https://code.launchpad.net/~leonardr/launchpad/anonymous-oauth/+merge/1619916:54
=== salgado-lunch is now known as salgado
salgadoleonardr, ok, will get to it in a minute16:59
=== henninge changed the topic of #launchpad-reviews to: on call: jtv, allenap, Edwin || reviewing: -, Edwin, henninge || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== abentley1 is now known as abentley
salgadoleonardr, did you reply to the review or just pushed a new version of the branch to launchpad?17:19
=== beuno-lunch is now known as beuno
leonardrsalgado: i replied with an incremental diff17:22
leonardris it not there?17:22
salgadoleonardr, nope.  I think attachments are ignored17:23
leonardrsalgado: i pasted a link to ubuntu pastebin17:24
leonardr1 sec, on phone17:24
=== jtv-eat changed the topic of #launchpad-reviews to: on call: allenap, Edwin || reviewing: Edwin, henninge || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
EdwinGrubbshenninge: I don't understand why there is both an IAccountModerate and an IAccountModerateStatus. Is that so that the status is viewable by anyone?17:31
henningeEdwinGrubbs: Yes, it is in IAccountPublic (and was before I touched it).17:33
henningethat is the reason for these two interfaces.17:34
leonardrsalgado; doh! i never clicked 'save comment'17:34
salgadoheh17:34
leonardrsalgado: i found a bug in malone, but while i'm filing it...17:36
leonardrhttp://pastebin.ubuntu.com/342820/17:36
henningeEdwinGrubbs: this whole interface-zcml relationship is quite confusing to me, too, and it took me a few attempts to get it right.17:37
EdwinGrubbshenninge: I'm wondering if it would be simpler to use <require set_attributes="status status_comment"> instead of <require set_schema="..."> which requires a complicated inheritance structure.17:39
henningeEdwinGrubbs: is there some kind of precedence of set_attributes over set_schema?17:40
henningeI mean, can an attribute be mentioned in an Interface and also explicitly in set_attribute? I think only that would help.17:41
EdwinGrubbshenninge: I've usually seen set_schema used when there are tons and tons of attributes and you want to avoid duplicating them in the zcml. I think using <require interface="..."> for viewing attributes but using set_attributes when set_schema doesn't map to an existing interface might work.17:45
=== Ursinha-lunch is now known as Ursinha
henningeEdwinGrubbs: ok, I am happy to try that and get this whole thing simplified.17:46
EdwinGrubbshenninge: I also encountered these errors in the tests: http://pastebin.ubuntu.com/342855/17:47
henningeEdwinGrubbs: huh, I ran that test all the time. But maybe not after the final changes.17:52
=== mrevell is now known as mrevell-dinner
=== deryck is now known as deryck[lunch]
=== allenap changed the topic of #launchpad-reviews to: on call: Edwin || reviewing: henninge || queue [jpds] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews
=== matsubara_ is now known as matsubara
rockstarEdwinGrubbs, can I stick another branch on your queue?18:22
rockstar(it's not an RC candidate)18:24
leonardrsalgado: a quick incremental diff for the launchpadlib branch. i'd like your opinion on a test change18:25
leonardrhttps://code.edge.launchpad.net/~leonardr/launchpadlib/anonymous-access/+merge/1621318:25
EdwinGrubbsrockstar: sure, I'll start on it after lunch.18:29
rockstarEdwinGrubbs, thanks.18:29
EdwinGrubbshenninge: I sent you an intermediate review with a few comments on the code besides what we discussed already.18:38
henningeEdwinGrubbs: thanks. I got the interfaces figured out.18:39
=== EdwinGrubbs is now known as Edwin-lunch
=== deryck[lunch] is now known as deryck
leonardrsalgado: about this code19:40
leonardrassert self.consumer is not None, (19:40
leonardr            "Need a registered consumer key for authenticated requests.")19:40
leonardrif i put an assert there, i can't verify that the server rejects an authenticated request with an unknown consumer key19:40
leonardrit gets rejected before the request is made19:41
salgadooh, ok, I didn't realize that19:42
salgadothat's testing code, so I guess it's ok to be permissive19:42
leonardri think i can use your structure and it'll be more understandable, at the cost of 1 duplicate line of code19:44
leonardryeah, it's more readable19:47
=== matsubara is now known as matsubara-afk
leonardrsalgado: any idea why i would get this test failure?20:04
leonardrhttp://pastebin.ubuntu.com/342959/20:04
leonardrthe second part is my rearrangement of the code in response to your most recent comment20:04
leonardri'm running the same test on a fresh launchpad to see where the error came in20:05
salgadoleonardr, looks like we have a time bomb in our test suite20:06
leonardrsalgado: yes, i get the error in a fresh launchpad, so i'm going to be a coward and not deal w/it20:09
salgadoleonardr, a fresh devel or db-devel branch?20:10
leonardrsalgado: devel20:10
salgadoleonardr, it might be fixed in db-devel20:11
=== salgado is now known as salgado-afk
leonardrsalgado: argh, i have to do a new release of launchpadlib before i can land this branch, because the old launchpadlib contains test failures when run against the new launchpad20:16
leonardr(because the old launchpadlib has a test that verifies you can't log in to the web service when providing no credentials)20:16
leonardrsalgado: so if you have an opinion on my new launchpadlib test (http://pastebin.ubuntu.com/342874/), i'd like to hear it20:20
salgado-afkleonardr, I think that extra test won't hurt, so I think it's ok to leave it20:57
leonardrsalgado: cool20:57
=== Edwin-lunch is now known as EdwinGrubbs
rockstarEdwinGrubbs, hi.21:09
EdwinGrubbsrockstar: hi, I saw that Tim reviewed your branch21:10
rockstarEdwinGrubbs, ah, it was Tim, not you.  Okay, maybe I need to chat with him.  He apparently knows something I don't.21:10
rockstarEdwinGrubbs, I thought it was you, and so I was going to ask some questions.21:10

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