/srv/irclogs.ubuntu.com/2011/04/18/#launchpad-yellow.txt

gary_posterbac benji danilos, I'll look at kanban in a sec, & call in 413:26
gary_posterwho's doing "identical displays of subscriptions" in FW 1: active?13:28
* gary_poster guesses danilos13:29
danilosgary_poster, that's right, sorry13:29
gary_posternp :-)13:29
gary_posterbac and benji are you rejecting my Skype calls? :-)13:31
benjigary_poster: should I put this branch on ~yellow to make it easier for us to collaborate?13:37
gary_posterbenji, do you think your branch is in a state that it could be merged, and then we could land separate things on top of it?13:37
gary_poster(In general, I'd prefer to do that, and feature flags let us)13:38
benjiat the moment it puts placeholder text in the spots, but I think if I changed that it would be sane; or we could accept it as-is if we're cool with it because it's behind a feature-flag13:38
gary_posterYeah, I think the only constraint should be that what you have that is supposed to be working is tested before it is merged13:39
benjiyep, it's fully tested13:39
gary_poster(I don't thin we need tests for the placeholder text, for instance :-) )13:39
gary_posterawesome13:40
gary_posterI'm in favor of landing as is13:40
benjiheh, no the tests don't depend on the text13:40
benjik, I'll do that13:40
benjiand then the plan is that you guys will work from devel?13:40
gary_postercool :-) (and even moving a separate card along the kanban board for "direct action pattern" (or "infrastrcture" or something like that)13:41
benjisounds good13:41
gary_postersince landing will take a while I'd work from your branch13:41
gary_posterBut then I'd get it reviewed with your branch as a dependency if it is not in devel yet13:41
benjiactually, I should probably mutate my current card to that one and then add a new one for the mute action that I'm adding13:41
benjik13:42
gary_posterYes, that does make sense13:42
=== Ursinha-afk is now known as Ursinha
bacgary_poster: did you try to install natty?13:53
gary_posterbac, no.  problems?14:10
bacgary_poster: it installed fine under vmware but no unity14:10
bacas vmware doesn't have the required 3d drivers yet14:10
gary_posteryeah, that's what I expected, bac14:11
bacso it is a bit of a wash14:11
gary_postermight work in parallels14:11
bacyeah14:11
gary_posterI'm still using server version14:11
baci've read it may work in virtualbox...but i'm dubious14:11
gary_posterI readthat too14:11
gary_posterderyck said he might go back to dual boot14:11
baci meant to try on metal but the weekend slipped by and i didn't want to risk it14:11
gary_posteryeah14:12
gary_posterbenji, lp:~benji/launchpad/direct-personal-subscription-actions-scaffolding right?14:13
* danilos -> lunch14:13
benjigary_poster: yep14:13
gary_postercool14:13
benjigary_poster: should there be a new feature flag for the scaffolding?14:19
gary_posterbenji, no, we feature flag the link to this page14:19
gary_posterI think that's good enough14:19
gary_poster the page was already "broken"14:19
gary_posterin the sense that it didn't make sense14:19
benjiyep, I agree; I just wanted to make sure it wasn't turned on in production; thanks14:19
gary_postercool, np14:20
gary_posterbenji, do you have a plan for what to do after a change has been made that requires another functionality to be available?14:25
gary_posteri.e.14:25
gary_posterI go to the page and mute14:25
gary_posterthis is done via ajax14:25
gary_posternow I need to be able to unmute14:25
gary_poster"no" is fine, but we should talk through it if so14:25
benjiI've given it a little thought, since the current functionality works off of the cached values and those should be updated by AJAX calls, we can just re-run the code to generate the description and the IDs of the subscription controls that should be visible14:26
gary_posterso, like, collapse, redraw, expand?14:27
gary_posterI guess the nice thing is that we only have to do that for the direct/personal stuff14:28
gary_posterwe can leave the "other" bits to handle themselves14:28
benjiright14:28
gary_posterok that sounds doable.  Thanks14:29
gary_posterbenji, sorry another question.  You had worked on code that tried to hook up the current subscribe-with-notification-level stuff before I asked you to move to the scaffolding.  What's the status of that work?  What's your opinion on reuse?  Does this warrant a call?14:31
benjigary_poster: status: not in good shape, prognosis: decent, reccomendation: it shouldn't be too hard to refactor the current code until what we want is easy14:33
gary_posterok thanks benji.  not really looking forward to that :-P but that should be done.  I guess I'll try that (so, "subscribe_action" and "change_subscription_action" and, unfortunately, "unmute_action" are all tied into this).  Any pointers on where to get started?  I have not looked at this code at all.14:35
benjigary_poster: after I prepare to review the branch I'll look at it and see what memories it jogs14:36
gary_posterok thanks14:36
benjigary_poster: I think the state of my hacking branch tells the story of what I know at this point: http://pastebin.ubuntu.com/595519/14:44
benjiif not, feel free to ask me to make up for its story telling deficiencies14:44
gary_posterbenji, .log('cool, thanks, that looks helpful')14:45
benji:)14:45
benjigary_poster: that code currently dies wanting to find a spinner, but I think it's close to working14:46
gary_postercool14:46
bacgary_poster: you know what this warning means?  http://paste.ubuntu.com/595547/16:03
gary_posterbac, I understand some of the elements (for instance, I'd have an idea on what to do to find the unhelpfully described "milestone-edit.pt.validate_widgets") but not the main point, no. :-/16:05
bacgary_poster: ok.  i didn't introduce it but i was curious16:05
gary_postercool16:05
bacgary_poster: putting my milestone branch up for review now16:05
gary_postergreat!16:06
* gary_poster is staring at largely untested JS with concern and potential dithering16:06
gary_posterThe bug unmute story really is unpleasantly confusing16:09
gary_posterbenji, this code we are trying to reuse makes me sad :-(16:23
* gary_poster goes to go have lunch16:23
gary_poster:-D16:23
benjiheh16:23
danilosgary_poster, the big branch is landing, I've still got https://code.launchpad.net/~danilo/launchpad/duplicate-pillars-subscriptions/+merge/58135 up for review17:42
gary_posterdanilos, great.  You need me to shepherd that one through, so you can head out?17:42
danilosgary_poster, yeah, please :)17:44
gary_posterdanilos, I think I'll claim it so I can be sure to actually feel productive about something today :-P17:44
gary_postergood luck on the test17:44
gary_postertalk to you Thursday17:44
gary_posterdanilos, approved with no changes; going to try and land17:49
danilosgary_poster, cheers17:51
danilosgary_poster, there was a conflict, merged, and lint is happy now :)17:51
gary_posterheh, ok thanks17:51
bacgary_poster: i'm free to help now.  where should i start?18:39
gary_posterbac, /me looks, one sec18:39
gary_posterbac, unless benji has another suggestion, I suggest you branch lp:~benji/launchpad/direct-personal-subscription-actions-scaffolding (which he will land separately, so this will be a dependency of your branch), merge in devel, and then look in lib/lp/bugs/javascript/subscripton.js.18:42
gary_posterI suggest you work on real implementations for unsubscribe_action and unsubscribe_with_warning_action .18:42
gary_posterbenji, agree/disagree/suggest?18:42
* bac branches18:42
* benji has abort/retry/fail flashbacks.18:42
benjiagree18:42
gary_posterbac, tests are in lib/lp/bugs/javascript/tests/test_subscription.js18:42
bacgreat18:42
gary_poster:-) thanks benji18:43
bacbenji: will you be able to look at my branch soonish?  it's ever so tiny18:43
benjibac: sure, if it's small I'll do it now18:44
bac64 lines of diff, i think18:44
gary_posterbenji, if we are reusing the existing stuff, and I'm trying hard to continue to make myself do so, then mute is tied in with unmute, which is tied in with subscribe.  But nevermind...I'll try to ignore. :-)18:45
gary_posterOr divide them up in that portlet code18:46
benjigary_poster: yeah, it's a bit of a tangle, I was going to apply the old saw of refactoring until what you want to do is easy18:47
benjibac: done18:48
bacgracias18:48
benjiel gusto es mío18:51
gary_posterheh18:51
gary_postermy lack of spanish but knowledge of cognates translated that as "the taste is mine"18:52
gary_posterBut I suspected that "pleasure" was a better translation than "taste"18:52
benjiright; I like "it's my plesure" better than "it's nothing" but that's probably my english-centric brain misapplying idioms18:54
benjiI would really like to learn more Spanish; taking German in HS/college was such a bad choice.18:55
gary_poster:-)18:55
benjiand I'm back (total machine freeze)19:26
gary_postermeh19:26
gary_posterbenji, fwiw, I've looked at what the current susbscription stuff does, and what we need, and I've decided to not reuse.  They are too dissimilar IMO.  I've made a list of what we want for the three scenarios that I have claimed19:26
gary_posterI'm not sure how it will work with what we have exactly, but I'm just going to run with it so I can make some progress.  I have a goal, at leats19:27
gary_posterleast19:27
benjicool, at least we tried19:28
gary_posteryeah19:28
gary_posteryou did fix a bug in your branch though19:28
gary_posterI don't want to lose that19:28
gary_posterbac are you at UDS Mon and Tues?19:52
bacyes19:52
bacgary_poster: you have a mission for me?19:53
gary_posterbac, Brian Murray wants us to present our work there.  He actually wants to help present.  Would you be willing to work with him on that?19:53
bacgary_poster: sure!19:54
gary_posterawesome19:54
gary_posterthank you19:54
bacnp19:54
gary_posterI'll email folks19:54
baci find it easier to have a structured thing to do than just mill about trying to engage people in discussions about launchpad registry19:54
gary_posterheh, I can understand that19:55
bacso, jorge, any thoughts on the team participation table?19:55
gary_poster:-)19:55
gary_posterbac, do you know bdmurray already?19:56
bacyep19:56
gary_postercool19:56
bacgary_poster: in your email you mention me being head down for this week and the next two.  as a reminder, i leave for budapest on tuesday may 3rd20:13
gary_posterbac, lol20:13
bac?20:14
gary_posterbac, laughing at myself, sorry.  feel free to correct.  If you are not head down for the third week, but just for this and next, I think that will work out fine for us.  Is that OK, do you think?20:14
bacyes, i just didn't want you to be surprised20:15
gary_postercool, thank you20:15
gary_posterbenji, I'm changing some of the framework.  basics are still there but20:17
gary_poster(1) I'm adding a separate box for actions that increase email quantity, and dividing up the actions into the two kinds (and only showing each box when appropriate);20:17
gary_poster(2) I'm adding some actions to separate out some of the actions I claimed into individual nodes (some of which will go into the two boxes);20:17
gary_posterand (3) I'm changing the action functions to use the action_ids mapping (and making those values not have the # prefix).20:17
gary_posterI'll make that as a separate branch20:17
gary_posteror at least that's my intent now20:17
gary_posterdoes that sound ok?20:17
gary_posternote that we can tweak this; it's just a step in the right direction, or at least a direction that I can see now20:18
benjigary_poster: that sounds fine; I'm especially curious to see the results of dropping the #s20:21
gary_posterbenji, cool thanks.  dropping the #s just means I can use the "constant" strings when I construct the nodes; I'll have to add the # back when I use the string as a selector of course20:22
benjiI suspect I'll dislike that, but I dislike lots of things and still manage to forge ahead :P20:23
gary_posterheh20:23
gary_posterI'm just reusing your action_ids20:23
gary_posterbut ok20:23
* benji tries not to turn into Fred Drake.20:23
gary_poster:-)20:23
gary_posterwhat is his stance on this?20:23
benjigrumpy20:24
gary_posterlol20:24
gary_poster I see20:24
gary_posterbenji, I think we should assemble some JS differences of opinion and present them to bac for discussion, perhaps at Thunderdome or wherever he thinks is appropriate.  I think string constant identifiers are very good for certain cases, and this fits into those certain cases though I have not taken the time to identify why yet.20:27
gary_posterSimilarly, I disagree with danilos about not reusing var, and about his stance on not reusing values returned from appendChild.  Settling down on some standards probably would save time and annoyance in the long run.20:27
gary_posteranyway...20:27
bacgary_poster: are you suggesting that b/c i led such scintillating and productive sessions in dallas?20:29
bac:), btw20:29
gary_posterbac, heh, yes...and you are the head of the reviewers, yes? :-)20:29
bacof course those two hours of pain in dallas have spared us the weekly meeting, so i guess it was a good trade off20:30
gary_posteryeah, I think so20:30
benjiit's worth a shot; we have a lot to reconcile I think between: our stated desire not to nitpick in reviews, our still quite large python style guide, and our lack of a JS style guide20:30
gary_posteryeah :-/20:31
gary_posterIf we don't have an LP agreement, I think we need a squad one20:31
bacbenji: and our lack of common expertise in JS20:31
gary_posteryeah20:31
benjibac: yep; you know I wonder if there isn't something like "The Seven Stages of Code Review"20:32
gary_poster...we need a squad one just so that we can know when to squelch the desire to refactor, or indulge in it20:32
gary_posterheh20:32
gary_posterrefactor/reformat/...20:32
bacgary_poster: was danilos against chaining in general or just with appendChild, or did i misread?20:33
gary_posterbac, I don't know if he took his opinion beyond appendChild.  Even just within the world of appendChild, chaining is pretty idiomatic afaict20:34
benjiunfortunately we'd still have to decide on what format to adopt; do whatever you feel like doesn't seem like an equilibrium20:34
bacthe way we're doing it is pretty jarring to see the first time (multi-line chaining) but is quite readable20:34
gary_posteragreed20:34
gary_posterheh, to both20:34
gary_posterthat is, agreed to both20:35
benjiyeah, I'm pretty sure the multi-line chaining is a win; personally I've been experimenting with puttint nothing more than '<tag/>' in the Y.Node.create() call and doing everything with methods from there.  It seems easier to read and reason about thus far.20:36
gary_posterI noticed that and liked it20:36
gary_posterI wondered if all browsers support it20:36
gary_posterIE 7/8 for instance...to the degree that we care20:36
gary_posterObviously I didn't, much :-P20:37
benjiI'm pretty sure that pattern is supported on all of YUI's "grade A" browsers.20:37
gary_posterFrancis says we support Firefox, because that's what we have automated tests for20:37
gary_posterperiod20:37
gary_postereverything else is convenience20:37
gary_posterall Grade A: great20:37
gary_posterbenji, another one. :-)  Why do you prfer20:45
gary_poster        var i;20:45
gary_poster        for (i=0; i<direct_info.increases.length; i++) {20:45
gary_poster            direct_node.one(direct_info.increases[i]).removeClass('hidden');20:45
gary_poster        }20:45
gary_posterover20:46
gary_poster        for (var i=0; i<direct_info.increases.length; i++) {20:46
gary_poster            direct_node.one(direct_info.increases[i]).removeClass('hidden');20:46
gary_poster        }20:46
gary_poster(that is, why do you not like the var in the for statement?20:46
gary_poster)20:46
benjiprimarily because jslint complains about the first, secondly because it has a point20:46
gary_posteryou mean complains about the second?20:46
benjithe point is that in JS the "var" acts in the local scope, not where the var is placed, it's like "global" in python; you should therefore put them in the place that makes their effect as obvious as possible when reading the text20:47
benjiright20:47
gary_posterah20:47
gary_posterso the second has the effect of the first20:48
benjiright20:48
gary_posterso therefore write the first?20:48
gary_postergotcha20:48
gary_posterI can buy that20:48
gary_posterthank you20:48
benjigranted, it's a subtle point and if jslint didn't complain, I might come down on the other side, but since it does it's worth going with the flow20:49
gary_posteryeah, I'm very happy with "follow what the lint says to do" as a general rule, myself20:49
gary_posterThough I must admit I didn't care for the optional lint bits he introduces as "the good parts"20:50
benjimy rule is "follow what the lint says to do but figure out why it says what it says so you don't feel like a robot"20:50
gary_posterdon't remember details20:51
gary_posteryeah sounds good20:51
benjiI haven't payed mutch attention to the good parts; we might have to read his book to figure out why he feels the way he does.20:51
gary_posteryeah20:51
gary_posterI've read some about the on the net20:51
gary_posterthem20:51
gary_posterbenji, is it possible that the entire JS test suite wasn't passing in your branch?  I think I might be fixing things in the underlying branch now.  Small stuff, but things that we might all hit.  I could be wrong though.  If you are not sure I'll give it a whirl after I'm done21:39
gary_posterI mean, is it possible that some of thes tests were failing21:39
gary_postereven though your new suite was passing21:39
gary_posterargh, new case I mean21:39
benjiit's possible; I don't recall running the whole thing, so I wouldn't be suprised (and I'm a bad person)21:40
gary_posterheh, I should have run it before I started21:40
benjiI did run all of the ones in the file I added a case too though (because I don't know how to run just one)21:40
gary_posterthat's what I meant21:40
gary_posterit seemed like some of them might be failing before I came along21:40
gary_posterbut anyway21:40
benjiI'd be really surprised if that were the case.21:41
gary_posterif that's the case, we can just land my branch of yours21:41
gary_posterok21:41
gary_posteris your branch already reviewed and such21:41
gary_posterMaybe I removed the one line21:43
gary_posterno worries21:43
gary_posterbenji, do you mind if I target my MP specifically to you?22:12
gary_postersince it is tweaking your initial infrastructure22:12
gary_posterooh, you freshened...22:17
gary_posterbenji, it lookslike your merge might have done something bad in structural-subscriptions.js22:20
gary_posterIn some places, it uses namespace._add_subscription_overlay (as is current in trunk I think) and in someplaces it uses add_subscription_overlay22:21
gary_posterand clean_up is in the wrong place22:22
gary_posterbenji, https://code.launchpad.net/~gary/launchpad/direct-personal-subscription-actions/+merge/58197 fwiw22:26
gary_posternight all22:26
=== Ursinha is now known as Ursinha-afk

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