/srv/irclogs.ubuntu.com/2013/02/21/#juju-gui.txt

=== imbrando1 is now known as imbrandon
=== jovan2_ is now known as jovan2
benjibac: I'm wandering around in testing infrastructure, but we should probably formulate a plan for today soonish13:38
bacbenji: my plan is to make the changes per review and get my branch landed13:38
benjithat sounds good; want to sync up after that?13:38
bacthen i will be an official Go programmer, a juju core contributor, and an all around badass13:38
hatchmorning13:39
bacyes, benji, that'll be good13:41
hazmatbac, they teach the secret handshake then ;-)13:48
bacexcellent.13:49
benjibac is so awesome he doesn't call the wrong number, you answer the wrong phone13:50
goodspudBwa ha ha ha13:53
goodspudIs that taken from a "Clint Eastwood" joke?13:53
benjigoodspud: Chuck Norris13:54
goodspudbenji, er yeah... that's who I meant :)13:54
gary_poster:-)13:54
goodspudClint, Chuck... all the same really (don't hit me Chuck)13:54
benjiClint Eastwood doens't hit people, he makes Chuck Norris do it for him.13:55
goodspudBwa ha ha ha13:56
teknicobac, care to add a code review link to your card?14:14
bacteknico: ok.14:15
teknicobac, beat you to the punch :-)14:15
bacdang14:15
teknicooh, you got reviews already, ok14:16
bacteknico: are you doing juju-core reviews or just curious14:16
baci have an abundance of reviews!  :)14:16
teknicobac, just curious, I don't feel up to the task yet14:16
gary_posterbac you available for a call with me and frankban to share your glorious go juju api command knowledge, now that you have a branch in review?14:23
bacgary_poster: sure.  benji may want to join if he has time.14:24
baclet me re-tea and i'll join you there?14:24
gary_posterthanks bac, pm'd location14:24
gary_posteryou too benji14:24
benjifor you I'll clear my schedule14:24
teknicogary_poster, ok, where's the party?14:27
hatchI've noticed that some code uses camelcased and some uses understores fooBar vs foo_bar - is there a prefered method? I typically write camelcased14:40
hazmathatch, camelcased14:40
hazmathatch, we transitioned mid dev14:41
hatchsounds good to me - old habits are hard to break ;)14:42
gary_posterMakyo, hey.  I have more feedback for your branch--small but nice.  Trying to add it now..14:43
gary_postercomment added14:50
Makyogary_poster, Thanks for the feedback.  I'm not sure I understand.  Do I need to call _navigate rather than navigate or fire('navigate')?  Where do I set the options?  Tests for those lines?14:59
gary_posterMakyo, about to have call, but you would need your logout to eventually call the app navigate method with that new option15:00
gary_posterMakyo, talk to you after this call or after daily?15:01
Makyogary_poster, Sure.15:01
gary_posterthanks15:01
MakyoWill try to coffee in the meantime, so I'm not running so slow15:09
Makyogary_poster, nvm, I get it now, was misreading Router.combine.  Will get a test in for that.15:17
gary_postercool thanks Makyo15:27
gary_posterjujugui call in 215:28
teknicosorry, hangout crashed and is not starting anymore, trying again15:32
bacgary_poster: branch back in review after making changes.15:35
bacgary_poster: proceeding with the next branch, dependent on the first15:35
gary_postercool15:35
hatchbcsaller_: have time for a chat?15:54
bcsaller_hatch: sure15:55
hatchin the boardroom15:55
hatchif I run --fixes multiple times on a commit will that link to multiple tickets or will it blow up? :)16:38
gary_posterheh, dunno hatch.  you can do it in lp though16:39
gary_poster"link to bug"16:39
hatchsounds good :)16:41
bcsaller_I think the arg parser is last write wins16:41
MakyoHave yet to use --fixes, been using -bug=xxxxxx in lbox.  That just do the same thing?16:42
gary_posterdifferent under the hood in a way you don't care about Makyo.  --fixes annotates branch in a way that LP snarfs up, and I suspect lbox uses LP API to directly communicate the connection16:43
gary_posterso inetrchangeable effectively16:43
gary_posterhatch are you already factoring out the namespace code into a separate module?  If have some changes--mostly but not exclusively docs--for that code as well.  It would be easier if we did not stomp on one another.16:59
gary_posters/If have/I have/16:59
hatchgary_poster: I haven't touched the namespace stuff yet - I'm working on creating the subapp structure right now17:00
gary_posterGreat hatch.  Lemme know when you get there and we can either coordinate or maybe I will already have my changes in.17:00
hatchright now my changes to app.js are going to be minimal - I'm trying to keep them all in the extension - so update away!17:01
gary_postercool thanks17:02
bachatch: let's talk soon about code reviews.  whenever convenient for you.17:23
hatchcan we do it after lunch? I really want to get this subapp stuff working17:23
gary_posterSmall simple cleanup branch for review.  bcsaller needs to look at it, and then anyone else (hi, jujugui!).  https://codereview.appspot.com/7372044/17:25
bachatch: ok17:26
bacping me17:26
bacgary_poster: i'll look at it.  there is no card, right?17:27
gary_posterright bac.  was a review follow-on for bcsaller's branch of some changes I wanted but didn't make it17:27
bcsaller_*cough* sorry about that 17:32
=== bcsaller_ is now known as bcsaller
frankbanbac: is it required to ping someone to get a juju-core review? 17:33
bacfrankban: i didn't and i got four!17:34
frankbanbac: cool!17:34
bacmay not hurt to ping fwreade, though17:34
frankbanbac: I have no rush, approaching EOD17:35
gary_posterbcsaller, :-) np.  I read your reveiew, thanks.  In the current structure how does one register a namespaced route?  I assumed that you would register something for the path ":your_namespace_here:/your/path" or for something similar.  Is that it?17:35
gary_poster /:your_namespace_here:/your/path I guess17:35
bcsallergary_poster: that will work, but I think specifying it as an attr of the route definition will be better and will work the subapp stuff cleanly 17:35
bcsallerThe change to match is a few minutes of work, I can propose it after you land your changes 17:36
gary_posterbcsaller, sounds good, thanks.17:36
bacgary_poster: done17:36
gary_posterCool, thank you bac.17:37
gary_posterMakyo, approved with some small changes18:35
gary_posterhatch/bac, please take a look at https://codereview.appspot.com/7395043/ very soon so Makyo can land18:35
hatchalright18:38
bachi benji18:38
benjihey bac18:38
baci've got a branch that implements the server and client functions for the ws/rpc get command18:38
bacbenji: would you like to try poking at it with your ws client and see if it behaves?18:39
bacbenji: or show me how to?18:39
baci.e., gimme your client18:39
benjibac: sure, shall we relocate to the hangout to discuss?18:40
baci'm sure others are on the edges of their seats...18:40
bacbut, ok18:40
gary_posterI don't even have a seat!18:40
benjibac: here is the code: http://paste.ubuntu.com/1700814/18:41
bacbenji: invited you18:42
hatchthe code looks good - I'll do a functionality check now18:44
hatchI really hate how harddrives advertise 3TB but are really only 2.73TB ... 270GB is a lot of missing space ;)18:56
bacbenji: bzr push lp:~bac/juju-core/add-get-219:04
benjithanks bac19:04
bcsallergary_poster, hatch: when you have time can you check that the rules for ns route matching make sense to you in https://codereview.appspot.com/7396050/19:15
hatchI must be missing something19:19
hatchbecause it looks like it just returns true all the time :)19:19
hatchthat was a poorly formed joke19:21
hatchand poorly executed19:21
hatchbcsaller: just to verify when you said19:24
hatchSo /:inspector/service/mysql/ would match while19:24
hatchyou meant :inspector: right?19:24
bcsalleryeah19:24
bcsallerunfortunate typo19:25
hatchrevieweddd19:26
bacbenji: which websocket package does your script use?  the one from pip doesn't have 'create_connection'19:27
benjibac: hmm, let me look19:27
bacgary_poster: are we chatting in 1 min?19:28
gary_posterbac, no.  I hoped we would be, but house person is here.  will ping?19:30
gary_postershould be within 15 min19:30
bacok19:31
benjibac: "websocket-client"19:31
gary_posterbac, ready now.  joining.  you ready?19:48
bacgary_poster: joining now19:57
gary_posterbac https://codereview.appspot.com/7390043/20:15
bachi benji, i'm getting {"RequestId":1,"Error":"no such request \"ServiceGet\" on Client","Response":{}}20:21
bacbenji: is there some other registration step i might be forgetting?20:22
benjibac: I didn't have to do anything for mine, let me look at your code a second20:22
benjibac: the code looks good to me; did you use --upload-tools when you bootstrapped?20:24
gary_posterbcsaller, that namespace-restricted route matching looks good to me.  When you prepare for landing, please do include some documentation20:24
gary_postereven just comments in the routes section20:24
bcsallergary_poster: thanks, on it20:24
bacbenji: yes20:24
bacbenji: i just tried 'Status' and it works20:25
benjihmm, well, that's something20:25
benjibac: it might be your return signature, you should be returning a struct, not a pointer to a struct (I am far from certain that this is it, but that is the only candidate I have for what the problem might be)20:28
bachmm20:29
bacok20:29
bacbenji: that is why rog was returning Status{}20:32
bache had to return a struct so he couldn't return nil20:32
benjithat would explain it (although, I wonder why not just make the standard return signature a pointer to a struct, then returning nil is fine)20:33
bacbenji: well there is that20:34
bacgo is weird in that the caller looks the same whether it is a struct or pointer returned20:34
benjiyeah, that's something that I'm not sure if I like or not; not having to do the "." vs. "->" dance like in C++ is nice, but it might be confusing having the DWIM20:36
bacbenji: that was it!  fixed the return signature and it works.  thanks!20:41
benjicool20:41
bacbenji: are you okay running with my add-get-2 branch?20:54
benjibac: I'm ok enough to try :)  please write down my goal(s) in an email to me and I'll tackle them20:55
bacbenji: ok, the main thing is to figure out api_test and add relevant test for the new command20:56
bacbenji: writing email now20:59
benjithanks20:59
benjitests I think I can handle20:59
bacbenji: did my msgs just show up in #juju-dev?21:00
benjibac: I'm not in juju-dev at the moment21:00
bacmy client is reporting Your message couldn't be sent to the channel21:00
bacok21:00
benjiI guess I should add that to my auto-join (it's just so noisy over there)21:00
hatchO K lunching21:15
hatchbbiab21:15
BradCrittendengary_poster: should we be added to ~gophers?  if not we cannot submit to juju-core21:29
gary_posterBradCrittenden, yes we should.  I will ping mramm about it unless you tell me you are doing so21:29
BradCrittendengary_poster: he is currently on #juju-dev.21:29
=== BradCrittenden is now known as bac
bcsallerhmm, lbox submit is failing for me, trying to figure out why, sorry about any noise its generating21:30
bacbcsaller: how is it failing?21:33
baci got a read-only transport failure, which i attributed to not having write permission to lp:juju-core21:33
bcsallerbac: http://paste.ubuntu.com/1701833/21:33
bcsallerbac: sh ./.lbox.check works fine though21:34
bacbcsaller: ok, unrelated21:34
bacno clue as to what is happening with yours21:35
bcsallerbac: thanks for looking :)21:35
bacgary_poster: well, thanks for trying.  :)21:48
gary_posterbac :-(21:49
hatchok!!!22:03
hatchsooo22:03
hatchhow do I go about merging trunk into my branch?22:04
hatchwell the proper way of doing so22:04
hatchI need to make sure I have all of the most recent routing code22:05
Makyohatch, If you're in your branch, you can do bzr merge ../../trunk or wherever your copy of trunk is22:06
Makyohatch, Make sure trunk is up to date by doing `bzr pull` in there, first.22:06
hatchahh ok that's simple enough thx22:06
Makyobcsaller, new version of jshint changed the command name, just running into that now.22:07
Makyoguihelp, Newest version of jshint dies spectacularly on some of our files - namely JSON, but a few JS files it was fine with before.  Can bcsaller or I set the version in our current branch to an older one for the time being?22:12
gary_posterMakyo, +122:12
hatchgo for it22:12
hatchalthough what's it barfing on?22:12
hatchjust curious22:12
Makyohatch, **.json, a few redefinitions across files (YUI, etc.), one instance of 'char' as a var name.  I'd like to get both bcsaller and I's branches landed (or proposed) today, so I'm proposing we drop the version for now, make a card to investigate moving to current when we've got time.22:15
hatchoh yeah for sure - drop it down22:15
hatchjshint isn't one that you wouldn think would all of a sudden start breaking heh22:16
MakyoThey just hit 1.0.0, so I'm assuming something big happened :_22:16
Makyo:)22:16
Makyobcsaller, when you get back, in package.json, set jshint's version to "0.9.1" rather than ">=0.9.1"22:17
hatchhaha22:19
hatchaww man this routes stuff is kicking my a$$22:19
hatchbcsaller: is the _dispatch method in app.js a monkeypatch for the YUI one in Router?22:35
hatchI now finally have all of the route parsing business done (and only 2 lines lol)22:35
hatchbut now it's barfing on dispatch22:35
hatchbcsaller: maybe we can pair tomorrow to solve this?22:39
gary_posterbcsaller, I made a review of your Landscape aggregation branch.  Please rustle up another one.22:52
bcsallerhatch: yes, its overridden22:55
hatchyeah I attempted to make my way through it but I think it's best if we work together on this integration part22:55
hatchwould that be alright?22:55
bcsallersure22:56
hatchgreat - I figure we should be able to get it done in <1h tomorrow22:56
gary_posterMakyo, appcache info: thanks! LGTM with trivials22:58
gary_poster(and actually fly-bys)22:58
hatchif one reviewer has comments and the next has nothing to add but agrees with reviewer 123:03
hatchwhat should they put? land as is? or....23:03
hatchland with other changes?23:03
hatchI chose "Land with Gary's trivials" :)23:08
hatchhas anyone ever evaluated using https://github.com/airportyh/testem ? A bunch of my local dev friends use it and really like it23:14
gary_posternever hatch.  If you look at it and think it is worth incorporating into our tools you could do so and propose it some Friday or other.23:30
hatchsure I can look into it23:30

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