/srv/irclogs.ubuntu.com/2013/06/10/#juju-gui.txt

=== rogpeppe1 is now known as rogpeppe
benjiinteresting, it looks like the Ubuntu One team is working on a statsd client and server: https://launchpad.net/pystatsd (project registered 11 hours ago)12:21
rick_h__benji: fork/copy of https://github.com/sivy/py-statsd it looks like12:22
rick_h__peeked at that before12:22
benjithanks for the link, rick_h__ 12:23
gary_posterIs there an Ubuntu One team at this point?  Or is just Sidnei?12:23
bacSidnei is a Team of One, like the US Army.12:26
bacfrankban: i'm available to QA your branch if it is still needed12:26
gary_poster:-)12:26
baci need two reviews of https://codereview.appspot.com/10024046 if anyone has some time.12:27
rick_h__bac:  done12:31
bacthx12:37
benjibac: I'll do a review12:38
* benji tags the card.12:38
gary_posterhey luca__, you have a good visit?12:38
luca__gary_poster: I did thanks, how are things?12:38
gary_posterluca__, I'm glad.  had a good weekend, but would be nice if it were longer.  also somewhat worried for my wife's sanity starting tomorrow, because our boys will then be out of school for the summer. :-P12:40
gary_posterluca__, call about scenarios looks good.  I assume you mean right after the standup?12:40
luca__gary_poster: hehe that doesn't sound too good :P12:40
luca__gary_poster: yeah12:40
gary_postercool12:41
luca__gary_poster: I'm not sure how long we need to discuss them but we can talk more tomorrow if needed, just wanted to start working through them as soon as.12:41
gary_posterluca__, I started on doc on Thursday to brainstorm stories.  I never got it to where I wanted it12:42
gary_posterluca__, https://docs.google.com/a/canonical.com/document/d/1YTOmCCwSGMpZSXCQ_aRZz5UHXx6Tm4hr8X32Zz9iogw/edit#heading=h.y144flj0cwx412:42
bacrick_h__: making the GA id configurable is interesting but seems counter to our goals.12:42
luca__gary_poster: fantastic, I'll give it a read over and we can talk about it later :)12:42
bacrick_h__: the point, as i understand it, is for us to be able to gather usage patterns for anyone deploying the gui.  giving an easy way to subvert that seems counterproductive.12:43
bacbut it is an interesting thing for us to discuss12:44
gary_posterluca__, cool.  I forget where I was going to take the last "Building an environment" discussion right now, but I know part of it was going to be that I like what you had in your story.  I think I was going to brainstorm different users/scenarios for when you might build from charms (experimenting, small use case, or building a bundle for the future) and when you might build from a deployer file/bundle (duplicating d12:45
gary_posterev or prod environment, deploying known good config from charm store and then tweaking, ...)12:45
luca__gary_poster: I see, sound good :)12:46
frankbanbac: I am back. It would be great if we can take a look at the error you reported. It's weird. The usual chat seems open.12:49
gary_posterrick_h__, hey.  When does sinzui usually start his day?12:51
gary_posterbac benji frankban teknico, any of you interested in attending a call about grid units/making the gui friendly to mobile/responsive web design (I used to know this as "flexible web design" but now it seems to also refer to different form factors)?  It is in 4 minutes.  I'll attend.  It's not a good time for Ben Matt or Jeff or I would have invited them.12:57
gary_poster3 minutes :-P12:57
benjinot especially, but I'll be glad to drop in if no one else will take the bullet12:58
teknicogary_poster: yep, pass the link12:58
gary_posterteknico, priv msg12:58
rick_h__gary_poster: usually between now and our 9:30 standup12:58
gary_posterok rick_h__.  I would have asked him to ask you the question above :-)12:59
gary_posterjcsackett, too12:59
rick_h__gary_poster: heh, responsive means using media queries in the css, so just an extra layer on flexible12:59
rick_h__gary_poster: sure, I'll attend 13:00
gary_posterrick_h__, gotcha. cool, will privmsg13:00
gary_posterluca__, responsive call is now, yeah?  Rick and I are here.13:01
luca__gary_poster: coming!13:01
rick_h__bac: yea, but will most production deploys agree to share that info? and it solves the jujucharms.cmo case for my needs :)13:01
gary_poster:-)13:01
bacrick_h__: on a call so i can't think.  :)13:02
rick_h__bac: I think a cool default would help but allow people to use it as they might find handy :)13:02
bacbenji: i like this "The looks good."  i think i'll adopt it as a reviewer catch phrase.13:12
benjiThe looks, they are good, yes?13:12
bacTime to fail for the "As seen on TV" self-shrinking garden hose I got for my birthday:  10 days.13:14
BradCrittendenfrankban: tests finished.  http://paste.ubuntu.com/5751661/13:33
=== BradCrittenden is now known as bac_
frankbanbac: intersting, does that file exist?13:34
bac_frankban: you mean /dev/null?13:35
frankbanbac: /home/bac/charms/precise/juju-gui/tests/.venv/local/lib/python2.7/site-packages/xvfbwrapper/xvfbwrapper.py13:36
MakyoAnyone up for another review/QA? https://codereview.appspot.com/10048043/14:02
rick_h__bac_: my call is done if you want to continue discussion of the GA id as config?14:02
MakyoNote that that includes a comment WRT a deferred task.  Card is already created and assigned.14:02
* gary_poster had to actually google to discover what bac's hose could possibly be. http://windo.en.alibaba.com/product/636728871-214175883/2012_Shrinking_Garden_Hose_As_Seen_On_TV.html for those with similar interest14:04
bac_gary_poster: it wasn't really an endorsement14:05
bac_although those were some of the most fun 10 days of watering14:05
bac_hi rick_h__14:06
bac_sure14:06
MakyoMan, I love watering.14:06
hatchmorning all14:07
rick_h__bac_: so I'm not up on the back story of the feature. I assume that it's defaulted to on, allow users to turn it off, and used mainly for helpful reporting of usage to make life better for all users14:07
rick_h__bac_: my argument is that, allowing users to do their own reporting is a nice cool feature that our team would love to have in the charm, and doesn't adversely effect the original goal since most users won't change the default config14:07
rick_h__the users that go into the config to chage the GA id are likely to be the same that would just turn it off anyway. 14:08
bac_rick_h__: which deployment are you specifically talking about?14:08
bac_uistage?14:08
bac_rick_h__: wanna chat?14:09
rick_h__bac_: sure14:09
gary_posterluca__, thank you for organizing that mtg. was great to have.  would be thrilled to share more across teams14:12
luca__gary_poster: thanks Gary :) I was really hoping it would be worth everyones time.14:13
sinzuiorangesquad: I created an mp for a mid-implementation review: My branch is 2 days old, now and there are a few issues I am not sure about: https://code.launchpad.net/~sinzui/charmworld/charm-model-fixes-views/+merge/16817514:14
abentleysinzui: Oh, good grief.  I assumed "optional" mean "may be none", but it appears to mean "may not be present": http://docs.mongodb.org/manual/reference/gridfs/#gridfs-files-collection14:17
sinzuiabentley, If you mean "aliases" then I too think the value is None.14:20
sinzuiabentley, This is the dict problem  we have with charms isn't it?14:21
abentleysinzui: I meant files.contentType14:21
sinzuiyep, it is listed about aliases as optional. We both think the value can be None, but the apparent use is the key may not be present14:22
abentleysinzui: That's okay with a dict, but optional attributes on an instance are a PITA.14:23
rick_h__luca__: yea, thanks. I'm bouncing off walls at the idea of a shared CSS lib. 14:27
abentleyorangesquad: could you please review https://code.launchpad.net/~abentley/charmworld/same-name-related/+merge/16819014:28
* sinzui looks14:28
luca__rick_h__: haha, glad it was helpful :)14:28
* rick_h__ looks forward to the day when he doesn't have to look up the #-code for "ubuntu orange"14:30
gary_posterrick_h__, sinzui in prep for meeting, https://bugs.launchpad.net/juju-gui/+bug/1186299 is done right?14:30
_mup_Bug #1186299: The charm browser quality tab does not have data <charmbrowser> <juju-gui:In Progress by rharding> <https://launchpad.net/bugs/1186299>14:30
rick_h__gary_poster: yes, I'll close up and link to the branch. Sorry I missed it14:30
rick_h__gary_poster: reminds me, luca__ did you see my email about the quality tab and get a chance to peek at it?14:31
rick_h__luca__: kind of a 'proposed' solution and would love feedback. 14:31
gary_posterrick_h__, great thank you.  when will charm browser default land?  that was another goal for today14:31
rick_h__gary_poster: jcsackett is working on it now I believe14:31
gary_postercool rick_h__  thanks14:31
abentleysinzui: Is anyone chasing down the Tarmac issue today?14:31
sinzuiabentley, r=me, matsubara fell out of the channel the moment I tab completed him14:32
rick_h__fastest review evar! on that branch 14:32
abentleysinzui: !14:32
sinzuiabentley, we are thinking the same I think :)14:32
sinzuiI will follow up with matsubara14:32
hatchrick_h__: can I set up some sort of config to open a tmux window with a certain window split every time?14:47
rick_h__hatch: see pm14:48
hatchthx14:51
bac_gary_poster: rick_h__ makes the good point that until the GA opt in/out is easily available via the charm we should have the default for useAnalytics set to false.   i agree and would like to land this initial branch with it turned off.  a-ok?14:56
gary_posterbac +114:57
bac_gary_poster: he also suggests a chat with jcastro to brief from a community perspective, which i'm also +1 and will be happy to do14:57
gary_posterthank you bac_ , cool14:58
jcastrowe have a sync call in 2 minutes anyway!14:58
gary_poster:-)14:58
gary_postery14:58
rick_h__sinzui: can we ask for an update to mjc to get v2 api available on there?15:13
sinzuiI will after this meeting, you you can ask15:13
rick_h__sinzui: k, I'll bug you post-meeting. I thuoght we needed to file an RT and wanted to check on the process. 15:14
sinzuirick_h__, we do, and then we prod webops. We know the deploy will fail so hand holding is needed15:16
hatchman I can never remember the syntax for linking with rst15:16
rick_h__.. _something: google.com15:17
hatch...something something something....dark side15:17
rick_h__lol15:17
hatchrick_h__:  https://twitter.com/FromAnEgg/status/344111810431049728 :)15:20
rick_h__hatch: :P http://www.webupd8.org/2012/03/retext-30-released-text-editor-for.html15:21
hatchsure but that's another app :)15:21
hatchmaybe there is a sublime plugin15:21
rick_h__I think there's a few editors that do live viewing15:21
rick_h__hatch: yea, but it's live so you don't have to type/save/type/save/etc15:22
hatchoh kewl15:22
hatchrick_h__: why did you say // THIS IS BAD!!!!!!!!! on ln 1000 of app.js?15:33
hatchit's not bad, the router is just broken :)15:33
hatchalthough Ben fixed it this weekend I think15:34
rick_h__hatch: oh crap was that in there?15:34
hatchlol15:34
rick_h__hatch: I was walking through the issue with jcsackett in a call and just marked out the line as we talked15:34
rick_h__completely missed that in the diff, thought I reverted when I switched colo-branch15:34
rick_h__hatch: lmao, thanks for catching. Mechanical whatever I guess...15:35
hatchstore/charm.js ln 164 "charmworldj"15:35
rick_h__wtf, it's not in my local branch15:36
hatchman it's a good thing I'm going through this :P15:36
* rick_h__ is so confused15:36
hatchbad merge?15:36
rick_h__must be, both of those aren't in my local code15:37
* rick_h__ does a re-propose15:37
hatchdoesn't look like codereview lets you do a self review - it doesn't turn your comment green15:40
hatchthis made me laugh this morning http://xkcd.com/742/15:40
rick_h__hatch: cool, thanks for peeking at it. Yea, looks like a mess up from when I did a bzr switch between branches 15:42
hatchis that a bzr issue when switching branches like that? Or did you mess something up? (curious)15:43
rick_h__so I don't know exactly what I typed/did but I had uncommitted changes in a branch I didn't want. I created a new one and went to work and it carried over the uncommitted changes I think15:43
hatchahhh yeah I noticed it does that15:44
hatchfound that odd15:44
hatchbut I suppose git does something similar15:44
sinzuiorangesquad. We want to deploy, but we know migrations will fail. I propose landing a branch that makes migration 7 a no-op so that the deploy works without intervention. I am preparing a script that walks through the charms and generate a report to discover which charms have circular references.15:48
abentleysinzui: Makes sense.15:49
gary_posterjujugui call in 10. kanban now15:50
sinzuiabentley, matsubara is working on the ssh-to-Lp problem. I don't expect tarmac to work today15:50
abentleysinzui: Okay.15:51
gary_posterjujugui call now16:00
MakyoWelp.16:02
sinzuiabentley, do you have a moment to bless or curse this merge: https://code.launchpad.net/~sinzui/charmworld/disable-migration/+merge/16848216:05
abentleysinzui: I am confused about whether we still follow Launchpad policies.  If so, https://dev.launchpad.net/PolicyandProcess/XXXPolicy would dictate a bug number.16:07
sinzuiabentley, yeah, I sould have one since I have a card on the board for it16:08
sinzuiabentley, I updated the comment and reported bug 118953116:13
abentleysinzui: r=me16:14
sinzuithank you16:14
gary_posterluca__, alejandraobregon shall we meet in guichat or somewhere else?16:15
luca__guichat is fine gary_poster 16:15
=== deryck is now known as deryck[lunch]
* hatch needs a break from docs17:08
benjiis there some reason errors are thrown with this format? "INVALID_STATE_ERR : Connection is open to another client."17:11
benjispecifically, the space before the colon; that seems like a weird thing to do in English17:11
hatchEnglish has consistent grammar rules?17:12
hatchsince when?17:12
hatch:P17:12
hatchgary_poster: I'm at a place with the documentation where I'd like to get some input from Ben before moving forward so should I move on to the ghost config with the view controller or did you have something else in mind?17:45
gary_posterhatch, ...could you (a) land bcsaller's nsrouter branch and (b) work on replacing the alerts dropdown bootstrap stuff?17:47
rick_h__hatch: on the ns-router lines I've changed it in my local copy, just have getHash do return window.location.hash;17:48
rick_h__hatch: please take a peek before landing it as it is still broken for our needs in getting the active tab support landed17:48
hatchgary_poster: can do17:50
gary_posterthank you hatch17:50
hatchno problemo17:52
=== deryck[lunch] is now known as deryck
hatchrick_h__: guichat?17:54
rick_h__hatch: sure thing17:54
abentleyorangesquad: could you please review https://code.launchpad.net/~abentley/charmworld/file-etags/+merge/16849718:04
* sinzui looks18:05
* hatch lunching18:07
bacfirst they steal 'launchpad' and now 'mavericks' (sic)18:11
hatchpourquoi?18:12
* hatch used the wrong word18:12
rick_h__hatch: you're not up on your apple-fu18:12
hatchsorry I've been WORKING today instead of reading blogs :P18:13
rick_h__hatch: you need more screens :P18:13
hatchI know!18:13
rick_h__maybe now you can upgrade that laptop and get 3 thunderbolt displays on it so you can work with news on the side and know what bac knows :)18:13
hatchdamn shared video ram on a mac mini18:13
rick_h__lol18:13
hatchdamn rights!18:13
bacman i wish i had an external monitor18:14
hatchxbox one $500? small price to pay for an invasion of privacy!18:14
rick_h__hatch: come on, you get that for free with your gmail, twitter account, and ISP18:14
hatchwhat is lacking with that is a camera and microphone in my livingroom18:15
hatchglad MS is planning on filling that void18:17
sinzuiabentley, r=me18:17
abentleysinzui: Thanks!18:17
Makyojujugui Another call for reviews: https://codereview.appspot.com/10048043/ Just need one more :)18:17
hatchrick_h__: sorry I just don't trust MS enough to place an always-on video camera and microphone into my livingroom18:19
jcsacketts/MS/anyone/18:21
jcsackettjujugui: i too must ask for reviews https://codereview.appspot.com/1015604318:21
rick_h__jcsackett: I'll peek in a second18:21
hatchjcsackett: hah truth! Although if it was OSS then at least people could look into the source to find the inevitable bugs18:22
Makyojcsackett, on it.18:22
rick_h__jcsackett: couple of notes while I look into the test regex part18:26
hatchrick_h__: the sad thing is that I actually want the new xbox but not with the kinect18:33
rick_h__jcsackett: I see what's up with the test issue, I'm working on some code to help it out. Will be a few min.18:42
MakyoHow long until people figure out you can just put the xbox in a well-lit diorama of your livingroom with the proper number of people painted on the couch?18:45
rick_h__jcsackett: check out  lp:~rharding/juju-gui/sanity-check-default please and let me know how that looks18:48
sinzuiabentley, This is the script to look for errors in charm data. Dev and staging are fine as I expect. Do you have any additions to the script? http://pastebin.ubuntu.com/5752622/19:04
abentleysinzui: No, it looks good to me.19:07
sinzuifab19:07
hatchMakyo: lol!19:07
gary_posterhey hazmat.  May I schedule 30 minutes with you tomorrow to talk about bundles/deployer stuff?  Almost certainly will need more later, and with other people, but this can get things rolling again19:13
gary_posterarosales, hey.  In https://docs.google.com/a/canonical.com/document/d/1FU29PCI2I2a-PUKCMHvt9jK6Jr1TcfyvUFDypHOQ_ic/edit# does ecosystems need to do anything to have test results ready on time or are they already ready to go?19:15
gary_posteron the ecosystems side I mean19:15
hatchMakyo: do I have to re-review your branch?19:16
Makyohatch, Don't think so, though you're welcome to.19:17
arosalesgary_poster, they should be ready to go19:21
hatchMakyo: didn't we decide that we weren't going to fire events on other classes? re topology/panzoom.js ln 18119:21
arosalesif orange run into any issues on the parsing of test results though please let me and marco know19:22
gary_postergreat thanks arosales, so that deliverable is all on UX and GUI (Orange).  I'll call that out explicitly on list19:22
Makyohatch, I don't remember any such decision, but I do recall us deciding that Topology was it's on special sort of madness.19:23
hatchyeah I remember that part haha19:24
hazmatgary_poster, sure19:24
hatchMaybe we just discussed it but didn't make any decisions19:24
hatchanyways, my LGTM stands :)19:24
arosalesgary_poster, aiui that testing data from jenkins was in a consumable form. So yes next actions for testing are on orange and UI.19:25
arosaless/ui/design19:25
gary_posterthanks hazmat .  created event.  gave you edit power if you need to move it, but it worked with your calendar as it is now19:26
gary_posterarosales, cool, thanks.  sinzui, do you all already have a plan for slurping up the jenkins data?  does it go in m.j.c and then the GUI gets it from there?19:27
sinzuiWe have been slurping data since before orange took control19:28
gary_postercool sinzui, so this is entirely simply a matter of exposing something in the GUI?  The data already is moving to the GUI?19:28
sinzuiwe also know know then data format changes because it breaks staging and production 15 minutes later19:28
sinzuithat's right19:28
arosalesgary_poster, np.19:29
hazmatgary_poster, thanks, done.19:29
arosalessinzui, let us (me and marco) know if you run into any issues slupring the testing jenkins data19:29
gary_postersinzui, data format changes: ok.  what's the status of that for long term m.j.c happiness?19:30
gary_posteris that call-worthy?19:30
sinzuiarosales, we will :). All has been good for that last 6 weeks.19:30
arosalessinzui, thanks, and good to know :-)19:30
sinzuigary_poster, Its in the long-term charmworld stability blueprint19:31
gary_posterok sinzui thanks will see that when I get there then19:31
abentleysinzui: I would like to discuss bug #1176452 with you.19:40
_mup_Bug #1176452: ElasticHttpError:NumberFormatException[For input string: "yes" <elasticsearch> <ingest> <oops> <charmworld:Triaged> <https://launchpad.net/bugs/1176452>19:40
sinzuiin a few minutes abentley, otp with dan19:41
abentleysinzui: ack19:41
hatchI always thought otp = on the potty19:41
hatchbut it makes a lot more sense thaat it means on the phone19:42
hatchlol19:42
BradCrittendenbenji: do you need to re-review the test i added?  'lbox propose' is running now and 'lbox submit' is on hit heels.19:45
* BradCrittenden hates his droppy internet19:45
=== BradCrittenden is now known as bac
benjibac: nah, if you're happy with it then I'm fine19:46
bacbenji: i'm ecstatic19:46
* benji throws confetti19:46
sinzuiorangesquad, tarmac is back. We were blacklisted for hammering bazaar.lp.net20:07
abentleysinzui: Ah.20:08
bachatch: did you qa teknico's branch?20:16
hatchbac: I did - I didn't LGTM it though20:17
bachatch: i changed useAnalytics to true and ran it but don't see the banner.  am i missing something obvious?20:18
hatchI think you need to be on sandbox: false with rapi running20:18
bacreally?  huh.20:19
hatchoh wait - no that was just for prod20:20
hatchnm20:20
hatchbac: I think app.js line 1217 is the issue20:21
sinzuiabentley, sorry for the delay. I an talk now20:21
hatchI am not sure if that is being set20:21
abentleysinzui: Cool.20:22
sinzuiabentley, I can talk now20:22
abentleysinzui: Your microwave may not be wi-fi compatible :-)20:24
sinzuiabentley, i just got kicked out20:24
abentleysinzui: I have reinvited you, but it's just ringing and ringing and finally said "It looks like Curtis Hovey isn't available."20:25
bacgary_poster: thoughts on GA on uistage?  leave it in or rip it out for now?20:25
hatchbac: oh nm it appears to be being set20:25
bachatch: well i can't get it to work20:26
hatchhmm sorry I'm not sure - I can look into it further if you would like but I have a few other things in front of it atm20:26
bachatch: nope, don't bother20:26
gary_posterbac we have to have it as the cornerstone of everywhere else for GA to work, I thought.  wrong?20:26
gary_posters/of/for/20:26
hatchbac: alright - imho it needs a bit more work before it's landable anyways20:26
gary_posteror something...20:26
bacgary_poster: on uistage i manually inserted the snippet into index.html.  my branch has now landed that has it for real, but with the config turned off.20:27
bacgary_poster: i propose reverting uistage to not be divergent20:27
gary_posteroic.  +1 bac20:27
bacgary_poster: but that will disable GA for now20:27
gary_posterbac will that screw up GA for other sites?20:27
bacgary_poster: other sites?  other deployments will not have it turned on by default and i assume no one is going to hack it in20:28
gary_posterbac, if so, I suggest reverting index.html but changing config to turn it on20:28
bacer....20:28
gary_posterbac, :-)20:28
bacgary_poster: what other sites are you referring to?20:28
gary_posterbac, I mean for when we turn this on in the charm20:29
bacoh20:29
gary_posterif we turn this on in the charm, GA needs to already be happy 20:29
bacthe jujucharms must be on stuff20:29
bacyeah, well, i don't know how that'll work since it has been seen once.20:29
gary_posterbac, I vote to leave it turned on in uistage, assuming that the cookies warning is working20:30
gary_posterwdyt20:30
bacgary_poster: so for uistage, revert index.html to the branch version and then set config-prod: useAnalytics true.  seems like a good plan20:30
gary_posterexactly20:30
gary_postercool, thank you20:30
bacthe cookie warning will not land until tomorrow at earliest20:30
gary_posteroh20:30
gary_posterok20:30
baclots of work from review20:30
gary_postermm20:30
gary_posterthen useAnalytics false bac, till that lands20:31
bacok20:31
hatchno new MBP yet :( guess that's good for my credit card balance :)20:32
bacgary_poster: done20:39
gary_posterthanks bac.20:39
gary_posteryeah hatch, was disappointed too :-)20:39
hatchother sites are claming September which is quite a ways away for those who are in the market..20:40
* hatch <---- this guy20:40
gary_posterhuh.  it's 364 days since last update, which is most in their history (http://buyersguide.macrumors.com/#MacBook_Pro)20:41
gary_posteroh wait20:41
gary_posternever mind20:42
gary_posterhttp://buyersguide.macrumors.com/#Retina_MacBook_Pro20:42
hatchyeah it's definitely not been a long time....but haswell!20:42
gary_posterI know20:42
gary_postercompletely with you20:42
bacto make up for my negative review this morning, i heartily endorse this product: http://www.amazon.com/dp/B00008GS96/ref=tsm_1_fb_lk20:45
hatchbac: lol nice comment in the review :P20:45
hatchbac: here the bugs aren't big enough for those :( but what they lack in size they make up for in quantity20:45
bacwe have one upstairs and down20:46
bacthey make up by transmitting deadly disease20:46
baci mean, ours are tiny but awful20:46
hatchthat's unfortunate - ours are mostly disease free (as far as I know) but the ticks apparently aren't the cleanest20:50
* bac walks dogs, jojo + 2 little white things who spend 90% of the time tangled up in the leash20:51
hatchlol20:52
MakyoDogwalk.  Eyes need a break;.20:58
rick_h__jcsackett: still around?21:12
jcsackettrick_h__: yup.21:12
rick_h__jcsackett: so looking at the changes, was there something to not moving the browser subapp up into the original subApplications def vs a push in init?21:13
jcsackettrick_h__: i don't follow.21:13
rick_h__jcsackett: and the problem is that when the browser isn't FF'd it always tries to run and at least show the sidebar. There's no store though. 21:13
jcsackettrick_h__: i know that part; but the phantom parsing of "test" is still not sorted.21:14
rick_h__jcsackett: line 55 can have the subapp vs line 35521:14
jcsackettas to the push, i have no preference. i whacked the flag and then hunted down test errors.21:14
rick_h__jcsackett: ok, right, my first pass I mentioned that there's no need to have the subapp in the init and the extra call to push it21:14
jcsackettrick_h__: i don't think i saw that.21:14
* jcsackett looks21:14
rick_h__jcsackett: so the 'test' is that someone is testing urls that are just /something/test and it caused the code in the subapp browser to check it as an id21:15
rick_h__jcsackett: so adding it to the id ignore was just a lucky 'ignore what someone decided to use in a test' vs a real fix to not try to run browser code when it's not intended21:15
rick_h__jcsackett: so LGTM after moving the browser subapp def back to the top of the class per https://codereview.appspot.com/10156043/diff/1/app/app.js#newcode35521:17
jcsackettrick_h__: huh; i grepped for that in the test file but didn't see anything to that effect.21:17
rick_h__jcsackett: it was in other tests21:17
jcsackettah, and we have nothing for test isolation. right.21:17
* rick_h__ goes to look if he has the failures 21:17
rick_h__jcsackett: right, all tests around the App() will hit browser the subapp since it's part of it now that it's not FF'd21:17
rick_h__jcsackett: so the 'hack' is that other tests won't set a charmworld.url as part of their setup. 21:18
rick_h__jcsackett: so the browser subapp just ignores things if there's not a valid store. Browsing makes no sense without it. 21:18
jcsackettright; i like the store check as a fix.21:18
jcsackettit was the phantom url that was irking me.21:18
rick_h__might as well be a "isTesting" flag, but it's a bit more specific21:18
rick_h__test/test_charm_running.py:        self.load('/test/')21:19
rick_h__might have been teh cause21:19
rick_h__just a quick grep, but anyway. Changes look good to me21:19
rick_h__jcsackett: thanks for the update and un-FF'ing the browser. Look forward to not needed :flags:/ :)21:20
hatchrick_h__: I think I have it     #.[^?/]*[$]?21:29
rick_h__hatch: why the [$]?21:29
rick_h__hatch: you should be able to remove that part21:29
hatchahh yes I can21:29
hatchthx21:29
rick_h__hatch: np21:29
hatchturns out to be exactly what you said all along21:30
hatchI was thrown by the wako results in regexpal21:30
rick_h__once in a while I get lucky :)21:30
hatchneeded to revert to the console21:30
rick_h__yea, tests or bust!21:31
hatchregex pal for some reason highlights http: as well21:31
rick_h__oh hmm, strange. 21:31
hatchthe console results are correct though21:32
hatchohh the regex is slightly off21:34
hatchit should drop the first #21:34
rick_h__hatch: ah, well the regex is only matching. In the match you can split/slice/trim to get rid of it. 21:35
rick_h__hatch: I think there's some rtrim/etc functions available in there /me isn't at his desktop atm21:35
hatchyep but the regex should only return the proper data21:35
hatchwhy take another step when you don't have to21:35
rick_h__hatch: well, you're asking it to match. It's going to match the character. I tried once to do a #(xxx) type of things but didn't see a good way to get at the () part21:36
hatchahh ok21:36
rick_h__hatch: well, if you find a good way let me know, but I've manually trimmed/etc in my use. You know it'll be there because it's part of the match so it'll always be there21:36
hatchrick_h__: ([#])(.[^?/]*)?21:41
hatchuse this url: http://gui:8888/sidebar/precise/ceph-9/:flags:/browser_enabled/#bws-configuration=foobar&stuff=awesome?query=charms21:41
hatchthe 3rd match....21:41
hatchpretty sure this isn't ideal21:41
hatchhaha21:41
hatchcan drop the [] in the first parens I guess21:42
rick_h__hatch: this is nicer than just url.match(/#[^?/]/).replace('#', ''); ?21:44
rick_h__sorry21:44
rick_h__hatch: this is nicer than just url.match(/#.[^?/]*/).replace('#', ''); ?21:44
hatchit's a lot harder to understand so yes21:44
hatch:P21:44
rick_h__lol21:44
hatchrick_h__: did you want to pull down my branch to test?21:48
rick_h__hatch: not atm, I'm EOD and on the tablet. 21:48
hatchahh ok jcsackett still around?21:48
rick_h__hatch: my branch if up if you want to test it out 100%, but if that urls passes I'm good21:48
rick_h__hatch: go ahead with it and I'll pull the update down into my branch tomorrow21:49
hatchhere is the diff, look good? http://bazaar.launchpad.net/~hatch/juju-gui/routing-hash-query/revision/71421:49
rick_h__https://code.launchpad.net/~rharding/juju-gui/direct-2-tab  is my branch21:50
rick_h__hatch: looks ok from here21:51
hatchI figured you could just see the tests to see that it appears to cover all of the use cases we need21:51
hatchurls are the epitome of edge cases21:51
rick_h__hatch: yea, don't need to get 100% atm, but having tests and getting the - we know we need will help :)21:52
hatchrick_h__: so I can't propose this because lint is giving me an odd error22:05
hatchvar match = url.match(/(#)(.[^?\/]*)?/);22:05
rick_h__hatch: is it because of the /?22:05
hatchline 111, col 34, Insecure '.'22:05
rick_h__ah, yea22:05
rick_h__hatch so change the start and end / to "22:05
hatchquote a regex? I thought that was a nono22:05
rick_h__the start/end chars can be anything I believe22:06
rick_h__making them " makes the liter shush22:06
rick_h__so actually ' since the litner will fuss over " vs '22:06
hatchyah - that's odd22:06
hatchI wonder it's reasoning22:06
rick_h__hatch: yea, I gave up trying to understand and just bend to the will of the linter22:07
hatchhehe22:07
rick_h__trying to change it in the case of a regex like that just seems like it'd be a pita to detect the exception 22:08
rick_h__hatch: I think the warning is that . matches any character and can be a case of 'getting more than you wish for' when it comes to regex22:09
rick_h__hatch: so I *think* it's a warning because of that, but it's messier to add ignore/etc clauses around the code than to just ' vs /22:09
hatchtrue true22:09
hatchI really need to figure out why phantomjs keeps crashing22:10
hatchit crashes probably 50% of the time :/22:10
rick_h__:/22:10
rick_h__that sucks, not here22:10
rick_h__trying to use it more and more since it's a chunk faster than even chrome in test runs22:10
hatchoh yeah it should be way faster because it doesn't have to do any DOM updates22:11
hatchand I think they are both V8 aren't they?22:11
rick_h__yea22:12
rick_h__hah, did bcsaller just submit an update while you've been working on this :(22:13
rick_h__hatch: heh, so bcsaller updated the branch, but I think the regex is a little nicer and fewer calls. Compare notes I guess with each other and I'll pull down which ever survives the night for my needs22:14
hatchheh22:14
hatchclearly you should pick mine22:15
bcsalleryeah, sorry about that22:15
bcsallerjust trying to help22:15
hatchpfft22:15
hatch;)22:15
hatchso how will we settle this?22:16
hatchput both branches in a url parsing test to see who's wins?22:16
hatch:P22:16
bcsallerwell, I didn't add a test for the new case so if you have that you win :)22:16
rick_h__implementation fight! go go go!22:16
hatchI did!22:16
hatchyusss22:16
rick_h__I want to see timeit results!22:16
hatchlol22:17
hatchregex vs two indexof and a slice call22:17
hatchoo it would be a close one22:17
hatchmicro optomization ftw22:17
rick_h__thanks bcsaller, appreciate the update 22:19
* hatch is going to land his branch if he can get some reviews22:19
hatch https://codereview.appspot.com/10176043/22:19
hatchas soon as I ask for a review it goes quiet in here.....22:21
hatchlol22:21
rick_h__hatch: heh, well it's hard to multi-task and use the code review site on a tablet22:26
rick_h__every touch to the screen brings up a comment box and moves code around, most annoying22:26
hatchhaha yeah it's probably not under active development22:31
hatchnot really sure what to do re your comment rick_h__22:32
rick_h__hatch: yea, me either, but if we're going to add a TODO seems there should be something to make sure it does get done one day, be it bug, card, etc22:34
hatchyeah a bug probably22:35
hatchI don't really understand what it's saying though so maybe we can leave that one for bcsaller to make22:35
bcsallerhatch: already resolved by line 31422:37
hatchbcsaller: so that comment can be removed?22:37
bcsalleryes22:37
hatchkewl22:37
hatchI'm going to land after removing that comment as it's like a pair programming at this point :)22:37
bcsallerotherwise those could appear as namespaces, but they are non-enum props on Routes objects22:38
hatchahh I understand now22:38
hatchok changing and submitting22:38

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