=== 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 [09:14] adiroiban: you're trying to get a pre-implementation call for your branch, right? [09:15] jtv: yep. but there is no hurry [09:16] i just want to know if it't ok to augment a model in the view in that way [09:16] jtv, allenap: RC branch for your perusal, if you please: https://code.edge.launchpad.net/~gmb/launchpad/ubuntu-filebug-dupefinder-bug-497096/+merge/16230 [09:17] adiroiban: oops, gmb's takes precedence. I'll let yours lie for the moment, then [09:17] jtv: sure :) [09:17] jtv: I can take it. [09:17] allenap: oh, that would solve it too. :-) [09:17] hi btw === 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 [09:18] Hi jtv :) [09:18] al-maisan: Is your branch an RC candidate? [09:18] adiroiban: so back to yours... I'll browse through your diffs a bit first [09:18] jtv: look at the view class [09:18] allenap: no, it's not [09:19] allenap: .. and good morning :) [09:19] jtv: i would like to tag preferred langauages so that it makes it easy and nice to presented them different in the template [09:19] al-maisan: Morning :) [09:20] adiroiban: I'm comparing to productseries to get an idea of what danilo is saying [09:22] jtv: I talked with danilo and we agree to do the filtering using css class and javascript [09:23] jtv: the current branch is not ready yet. I just create a filter on a single page [09:24] jtv: here is the nasty code http://bazaar.launchpad.net/~adiroiban/launchpad/bug-492375/revision/10055#lib/lp/translations/browser/distroseries.py [09:24] adiroiban: thanks [09:25] oh, that's the same page I was already looking at :) [09:26] :) [09:26] adiroiban, btw, I think your branch already fix that bug 347... (allowing translation group owners to administer langpacks) [09:26] hi danilo :) [09:26] jtv, hi [09:26] danilos: maybe :) i have no idea how lang-packs are handled [09:28] I 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 CSS [09:28] danilos: i just commented on that bug and assigned so that I can look into it [09:28] adiroiban, 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 it [09:28] gmb: Should lines 20 to 33 also be moving? [09:28] jtv, it should, I'd say! [09:29] jtv, I mean, it's a great idea :) [09:29] adiroiban, yep, thanks [09:29] oh, probably in js, not css—so that you get all languages when js is disabled [09:29] (barring cases where we have a clickthrough to a full list I guess) [09:29] allenap: Eh... Hmm. Well, it passes the tests ;). But no, probably not. I'll move those back. [09:29] adiroiban, 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 away [09:29] allenap: Although that gets a bit knotty then... [09:30] danilos: yep. let me start firefox [09:30] jtv, 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] it looks like in webkit based browser I can not see some sprites [09:30] allenap: 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] danilos: facepalm :) [09:31] allenap: Nice catch. [09:31] adiroiban, yeah, I've seen that too, I think we have an existing bug on those [09:32] we have a problem with konqueror with tags that have no text in them... [09:32] danilos: checking in firefox... no new edit stuff. I will look into that as by now I should know how to fix it [09:32] there's a little workaround for the konqueror problem though [09:33] share it :) [09:33] i'm using chromium and epiphany and I can not see the import queue entry edit icons [09:33] * jtv digs up lazr-js fix [09:35] danilos: 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 permission [09:35] adiroiban, I am not going to push you at all, it's not like you need pushing :) so, just take your time :)) [09:36] danilos: :) [09:36] i'm still learning the LP security mechanism [09:36] gmb: I have broken your merge proposal. [09:37] allenap: Fail. [09:37] allenap: Just do the second review that's listed for you; it should DTRT. [09:38] gmb: No, I mean it's OOPSing all the time when I go to the page. [09:38] adiroiban: 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] gmb: https://lp-oops.canonical.com/oops.py/?oopsid=OOPS-1446EB307 [09:38] how long does it take to run a full test on ec2? On an 2G AMD, running test -m translations it took me 200minutes [09:38] adiroiban: that's pretty long... but a full ec2 test is going to take longer [09:39] adiroiban: but [09:39] gmb: I'm filing a bug for it. [09:39] gmb: In any case, r=me. [09:39] I'm pretty sure you can fire off an ec2 image with your own arguments for bin/test [09:39] allenap: Ta. I'll have an incremental diff for you in a second... [09:40] gmb: Cool. [09:40] jtv: np. I was just courious [09:40] adiroiban: the old ec2test command would just pass on any extra args [09:41] jtv: so getting back at my branch (sorry for going offtopic) [09:41] allenap: Inc diff posted to https://code.edge.launchpad.net/~gmb/launchpad/ubuntu-filebug-dupefinder-bug-497096/+merge/16230 [09:42] * gmb asks Santa for permalinks to MP comments. [09:42] gmb: That page is OOPSing for me :) I'll wait for the email. [09:43] Hah. [09:43] adiroiban: 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] allenap: http://pastebin.ubuntu.com/342580/ if you want it quicker ;) [09:43] jtv: ok. sure [09:44] jtv: i was worried about the usage of class DistroSeriesLanguageTagged: [09:44] adiroiban: yes, I do wonder whether that's really needed [09:45] gmb: I got it, thanks. Looks good, r=me. [09:45] jtv: adding it as an attribute to SeriesLanguage model is also strange [09:45] allenap: Thanks. [09:45] as it's only a view attribute [09:45] and the model should not care about it [09:45] gmb: I'll try and reply to the mp via email to approve it too. [09:46] Thanks. [09:47] adiroiban: very true [09:47] jtv: this is my dilemma [09:48] jtv: i could just put that logic in the template... but it would make the template look bad [09:48] s/bad/ugly/ [09:48] * jtv wonders if factoring out a SeriesLanguageView would help [09:51] jtv: SeriesLanguageView or ( DistroSeriesView and ProductSeriesView) ? [09:52] adiroiban: a replacement for ProductSeriesLanguageView & DistroSeriesLanguageView [09:53] adiroiban: they're practically identical, structurally [09:54] jtv: yes... but I don't know how this can solve the langauge tagging problem [09:54] but you'd have to render the table rows differently to get to that view [09:54] well, you'd have a single place to tag a as being for a preferred language or not [09:55] jtv: yes. but my problem is how to tag it in the view [09:55] maybe I'm thinking too much about the cleanup part :) [09:55] gmb: I can't update that mp by email either (bug 497338). [09:55] Bug #497338: OOPS on merge proposal page [09:55] jtv: i can do the cleanup... but I still don't know how to tag a preferred langauge in the view [09:55] jtv, 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 guess [09:55] jtv: other than the proposed solution [09:56] danilos: I think that's what I'm doing now... or not? [09:57] adiroiban, I don't know :) [09:57] danilos: ok :) [09:57] adiroiban: I don't think anyone is saying the basic low-level approach is wrong [09:57] but we're talking about where to put it [09:58] since we already have view classes for {product,distro}serieslanguage [09:58] allenap: What did you do? Honestly... Okay, no worries, I'll add a note to the effect that you broke everything. [09:59] gmb: Cool :) [09:59] adiroiban: 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] jtv: I can add an interface/baseclass... but I don't know how to avoid the usage of SeriesLanguageTagged [10:00] jtv: or is ok to go with a SeriesLanguageTagged class? [10:00] adiroiban, jtv: I'd say just put it in the model for now, since there's a lot more refactoring possible there anyway === 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 [10:01] danilos: maybe an "is_preferred"? [10:01] hmmm that still leaves the messy stuff in the tal [10:01] danilos: putting it the model will also imply changing the permission [10:02] jtv, yeah, it's just a place to hold the value that will be passed in from the construction in the view [10:02] adiroiban, what permission would need to change? [10:02] for accessing the is_preferred [10:02] as it would be written in the view [10:03] adiroiban, well, of course, you'd have to allow it, but you can actually pass it in from the constructor/and or (D|P)SLSet instead [10:03] danilos: I don't know... I don't feel we need to have that attribute in the model [10:04] adi has a point... it gets ugly [10:04] it is something binded to the user configurations [10:04] adiroiban, 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:05] now, 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 already [10:05] adiroiban, or create a new decorated SeriesLanguage class which wraps (Product|Distro)SeriesLanguage and contains such things [10:05] al-maisan_: Line 332, does getPublishedSources() sort the results? [10:05] allenap: just a minute please [10:05] jtv, yes, we can do that in zope [10:05] but not nice? [10:06] danilos: that's what I'm doing now... a new class that wraps [10:06] jtv, that's close to what I proposed above, except that it would again be a view [10:06] danilos: or at least... I think I'm doing it :) [10:07] adi: yes, you are... and I must admit it's not a lot of overhead [10:07] adiroiban, 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 interface [10:07] danilos: i will start with implementing a single interface [10:07] and the do the wrapper [10:07] for a single serieslangauge [10:08] adiroiban, 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 similar [10:08] that does get to be more work... [10:08] allenap: yes, it does. [10:08] with that, I don't see why we'd need a wrapper interface anyway, so... :) [10:08] al-maisan_: Cool. [10:08] jtv, indeed [10:09] for the DSL/PSL views we don't even need two separate classes AFAICSC, but that's another matter [10:09] jtv, exactly, the views should be registered on the interface they share [10:09] ok. now it's getting messy :D [10:09] jtv, that interface should support ProjectLanguage and SourcePackageLanguage in the (close) future === 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 [10:10] adiroiban, heh, naah... [10:11] adiroiban, 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-down [10:11] jtv, danilos: the plan: implement the wraper as it is now. and then look look how all these views can be refactored [10:11] adiroiban, 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] like you said... it is to much for now [10:12] so we need to break the work [10:12] adiroiban, jtv: next step would be providing a SLCollection interface to be implemented by ProductSeries, DistroSeries,... [10:12] adiroiban, 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:13] danilos: but I still need to hold the css_class as an attribute [10:13] adiroiban, 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] so instead of is_preferred, i need to have css_class [10:13] adiroiban, yep, see above [10:15] right now I don't see to much sense in putting in on the model. it should be in the view or the template [10:15] we could also have it all in JS, I guess [10:16] jtv: yes :) [10:16] we'd be giving the JS a list of preferred languages [10:17] jtv: maybe that would be the "cleanest" approach for now [10:17] jtv, that's an option as well [10:17] well the dirty little skeleton in that can of worms is how to make the tal pass the list to the js [10:17] al-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:18] ...if you don't mind me mixing a few metaphors [10:18] jtv: just put it in a json/javascript structure [10:18] it's not a big skeleton :) [10:20] allenap: I am not sure, that method is selecting and pre-joining a lot more data and that probably makes sense for the web UI [10:21] adiroiban: an added advantage (I think) is that the "full view" stays the natural consequence when JS is disabled [10:22] and afaics there are no changes when reusing between different "serieslanguage" types [10:22] al-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] jtv: http://bazaar.launchpad.net/~adiroiban/launchpad/bug-359180-event-key/revision/8787#lib/lp/translations/templates/pofile-translate.pt line 288 [10:23] allenap: sure, will do that. [10:23] is a javascript that holds a tal loop [10:23] in that way I can write the prefered langauges in a js array [10:24] danilos, didn't you also do something like what adiroiban just pointed to for PSL? [10:24] jtv, btw, doing it in JS is going to make some very ugly TAL [10:25] al-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] allenap: good point, I'll add unit tests for getChangesFileLFA(). [10:25] jtv, /me looks [10:26] al-maisan_: Thanks. [10:26] danilos: [10:26] to trick tal thinking that you are still in HTML/XHTML land [10:27] danilos: actually, not much like that bit. :) What I meant was, each PSL row gets a CSS class with the language code in it [10:27] adiroiban, the problem is that you want to get preferred languages from the view using TAL and put that into JS [10:28] a trick for that is to embed a single js function call in the tal that passes the desired arguments [10:28] really minimizes the tal impact [10:28] jtv: function... or just an array [10:28] ...or an array. :) [10:28] adiroiban, jtv: right, and if it's not clear yet, I find that just doing it in the model is much, much nicer [10:29] adiroiban, 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] danilos: ok. then I will add a "css_class" in the model? [10:29] :D [10:29] adiroiban, no, add is_preferred to the model [10:30] and how can i convert the is_preferred to a css class? [10:30] adiroiban, and in TAL do something like or something like that [10:30] adiroiban, using tal:condition [10:30] * jtv stops trying to interfere :-) [10:31] danilos: ok. let me try and see what I can get [10:32] adiroiban, 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] adiroiban, with above, you won't even have to modify the model, just expose preferredlanguages in the view [10:33] danilos: but I will have to use define="global css_class string:preferred" [10:33] or otherwise there will be a big duplicate code for the row [10:33] is this ok? [10:33] to use global? [10:33] adiroiban, yes, don't tell me that's uglier TAL than for inserting JS :) [10:34] adiroiban, 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] danilos: nope [10:34] isn't it going to break the matching def for the next row [10:34] though? [10:34] jtv, what do you mean? we'll want to define it to an empty string otherwise, that's for sure [10:35] danilos , jtv : thanks! I will go with TAL only [10:35] python and global [10:35] danilos: don't know what global does there, so wondering whether anything will break if you re-define the same name later [10:35] adiroiban, 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 instead [10:36] danilos: ok [10:36] jtv, oh, I am sure that'll be fine [10:36] may the TAL be with me [10:36] adiroiban, you'll still have to call the method with python:view.isPreferredLanguage(langstat.language) but I think that's better [10:36] adiroiban, :) [10:36] yep [10:37] ok. I think it's enough for now [10:37] adiroiban: and while we're complicating your life, don't forget the cases where there are no preferred languages. :-) [10:37] jtv: :) [10:41] jtv, danilos . that should be all for the pre-implementation call. Thanks! [10:41] adiroiban: good luck, thanks for working on this! === 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: -, || 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 [11:12] https://code.edge.launchpad.net/~jpds/launchpad/fix_450262/+merge/16203 ← all set for review. :) [11:15] jpds: shouldn't you follow that one up with bac? [11:15] jtv: Hmm, yeah, I thought it could do with more eyes too. [11:16] jpds: makes sense, but it also confuses the situation a bit... like asking your dad for a cookie because your mom already said no. :-) [11:17] jtv: But I asked for a biscuit! [11:17] jpds: I see you have worked on this strategy [11:39] jtv: I'll wait for bac. [11:39] jpds: IIRC his review said he'd review the updated MP, right? He should be around soon, if not already. [11:44] If you don't mind a slightly different kind of review: https://code.edge.launchpad.net/~maxb/meta-lp-deps/no-pullparser/+merge/16232 [12:17] jtv: if a person had not defined yet his/her preferred langauges, LP tries to be smart and provides a list with possible langauges [12:18] so we can not have an empty list of preferred languages [12:18] adiroiban: IIRC we've sort of been moving away from that, but I can't say I kept much of an eye on it [12:19] (we had endless fun with a unit test that used Serbia & Montenegro as a geoip example :-) [12:21] maxb: approved [12:22] jtv: ok. then if there is no language I will set all launguages as preferred [12:22] BjornT: Thanks. [12:22] adiroiban: and don't forget to exclude en/en_US :-) [12:22] oh, just "en" I think [12:23] jtv: well I will just use the current list [12:23] jtv: i will finish it and push a branch for review [12:23] adiroiban: it all depends how many layers of abstraction you include, I suppose. :) In call now. [12:23] great! === 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 === 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: -, || queue [jpds, bjornt] || RC candidates take priority || This channel is logged: http://irclogs.ubuntu.com || https://code.edge.launchpad.net/launchpad/+activereviews [13:23] jtv-eat, allenap: i've added a small branch to the queue. it's not an rc candidate [13:38] * bac enjoying a quick breakfast [13:38] jpds: i'll have a look in a bit === irc.freenode.net 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: -, || 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: -, || 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 [15:09] jtv, allenap: I have a branch for you to review: https://code.edge.launchpad.net/~gmb/launchpad/another-checkwatches-keyerror-bug-497414/+merge/16243 [15:09] Argh, netsplit. === matsubara is now known as matsubara-lunch [15:12] jtv-eat allenap: I have a branch for you to review: https://code.edge.launchpad.net/~gmb/launchpad/another-checkwatches-keyerror-bug-497414/+merge/16243 [15:12] Sorry if you see this message twice; I got netsplit'd so I don't know who I hit and who I missed [15:13] jpds: Has someone picked up your branch? === 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 [15:16] gmb: How would all_remote_ids contain an id not in bug_watches_by_remote_bug? [15:16] allenap: bac's going to have a look at it. [15:17] allenap: 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] jpds: Cool. Thanks for being patient today :) [15:18] gmb: Oh, does it fail here too? [15:20] * allenap reads the bug report so as to stop wasting gmb's time :) [15:20] gmb: Ah, so it does :) [15:21] allenap: Heh. [15:22] Yeah, the bug we just fixed was masking this one. [15:26] gmb: r=me [15:26] allenap: Awesome, thanks. [15:27] gmb: checkwatches is getting too complex to understand. [15:27] allenap: 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:28] gmb: Neuromancer, Wintermute... now CHECKWATCHES! [15:28] allenap: Doesn't *quite* have the same ring to it, but we can work on it. === salgado is now known as salgado-lunch [15:45] allenap: can you review my branch? https://code.edge.launchpad.net/~edwin-grubbs/launchpad/bug-482176-add-team-member-ajax-part1/+merge/16226 [15:47] EdwinGrubbs: Sure, I'll do it now. === 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 [15:53] henninge_: is there anything I need to do for https://code.edge.launchpad.net/~adiroiban/launchpad/bug-435165/+merge/16084 ? [15:55] henninge_: do you want me to review your branch? [15:55] there is also this on https://code.edge.launchpad.net/~adiroiban/launchpad/bug-435165/+merge/16084 :) [15:58] sorry. stupid paste === henninge_ is now known as henninge [16:05] EdwinGrubbs: That would be really nice. === jamalta is now known as jamalta|work === matsubara-lunch is now known as matsubara [16:20] EdwinGrubbs: That would be really nice. I see you already claimed it. [16:20] yes, I'm working on it === Ursinha is now known as Ursinha-lunch [16:54] salgado-lunch: updated https://code.launchpad.net/~leonardr/launchpad/anonymous-oauth/+merge/16199 === salgado-lunch is now known as salgado [16:59] leonardr, ok, will get to it in a minute === 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 [17:19] leonardr, did you reply to the review or just pushed a new version of the branch to launchpad? === beuno-lunch is now known as beuno [17:22] salgado: i replied with an incremental diff [17:22] is it not there? [17:23] leonardr, nope. I think attachments are ignored [17:24] salgado: i pasted a link to ubuntu pastebin [17:24] 1 sec, on phone === 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 [17:31] henninge: I don't understand why there is both an IAccountModerate and an IAccountModerateStatus. Is that so that the status is viewable by anyone? [17:33] EdwinGrubbs: Yes, it is in IAccountPublic (and was before I touched it). [17:34] that is the reason for these two interfaces. [17:34] salgado; doh! i never clicked 'save comment' [17:34] heh [17:36] salgado: i found a bug in malone, but while i'm filing it... [17:36] http://pastebin.ubuntu.com/342820/ [17:37] EdwinGrubbs: this whole interface-zcml relationship is quite confusing to me, too, and it took me a few attempts to get it right. [17:39] henninge: I'm wondering if it would be simpler to use instead of which requires a complicated inheritance structure. [17:40] EdwinGrubbs: is there some kind of precedence of set_attributes over set_schema? [17:41] I mean, can an attribute be mentioned in an Interface and also explicitly in set_attribute? I think only that would help. [17:45] henninge: 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 for viewing attributes but using set_attributes when set_schema doesn't map to an existing interface might work. === Ursinha-lunch is now known as Ursinha [17:46] EdwinGrubbs: ok, I am happy to try that and get this whole thing simplified. [17:47] henninge: I also encountered these errors in the tests: http://pastebin.ubuntu.com/342855/ [17:52] EdwinGrubbs: huh, I ran that test all the time. But maybe not after the final changes. === 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 [18:22] EdwinGrubbs, can I stick another branch on your queue? [18:24] (it's not an RC candidate) [18:25] salgado: a quick incremental diff for the launchpadlib branch. i'd like your opinion on a test change [18:25] https://code.edge.launchpad.net/~leonardr/launchpadlib/anonymous-access/+merge/16213 [18:29] rockstar: sure, I'll start on it after lunch. [18:29] EdwinGrubbs, thanks. [18:38] henninge: I sent you an intermediate review with a few comments on the code besides what we discussed already. [18:39] EdwinGrubbs: thanks. I got the interfaces figured out. === EdwinGrubbs is now known as Edwin-lunch === deryck[lunch] is now known as deryck [19:40] salgado: about this code [19:40] assert self.consumer is not None, ( [19:40] "Need a registered consumer key for authenticated requests.") [19:40] if i put an assert there, i can't verify that the server rejects an authenticated request with an unknown consumer key [19:41] it gets rejected before the request is made [19:42] oh, ok, I didn't realize that [19:42] that's testing code, so I guess it's ok to be permissive [19:44] i think i can use your structure and it'll be more understandable, at the cost of 1 duplicate line of code [19:47] yeah, it's more readable === matsubara is now known as matsubara-afk [20:04] salgado: any idea why i would get this test failure? [20:04] http://pastebin.ubuntu.com/342959/ [20:04] the second part is my rearrangement of the code in response to your most recent comment [20:05] i'm running the same test on a fresh launchpad to see where the error came in [20:06] leonardr, looks like we have a time bomb in our test suite [20:09] salgado: yes, i get the error in a fresh launchpad, so i'm going to be a coward and not deal w/it [20:10] leonardr, a fresh devel or db-devel branch? [20:10] salgado: devel [20:11] leonardr, it might be fixed in db-devel === salgado is now known as salgado-afk [20:16] salgado: 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 launchpad [20:16] (because the old launchpadlib has a test that verifies you can't log in to the web service when providing no credentials) [20:20] salgado: so if you have an opinion on my new launchpadlib test (http://pastebin.ubuntu.com/342874/), i'd like to hear it [20:57] leonardr, I think that extra test won't hurt, so I think it's ok to leave it [20:57] salgado: cool === Edwin-lunch is now known as EdwinGrubbs [21:09] EdwinGrubbs, hi. [21:10] rockstar: hi, I saw that Tim reviewed your branch [21:10] EdwinGrubbs, ah, it was Tim, not you. Okay, maybe I need to chat with him. He apparently knows something I don't. [21:10] EdwinGrubbs, I thought it was you, and so I was going to ask some questions.