/srv/irclogs.ubuntu.com/2014/06/20/#juju-gui.txt

huwshimihatch: Are you gone for the day?00:00
huwshimihatch: Are you gone for the day?00:04
huwshimisomething's not right00:04
hatchim still here00:05
huwshimihatch: If I override the init method on the tokens then it won't render the tokens again when I close and open the machine view00:06
hatchok looking at the code00:07
hatchwhen you close and open the machine view does it destroy all the tokens?00:09
hatchit looks like it00:09
huwshimiyeah00:10
hatchso that doesn't make any sense00:10
hatchso it only works once?00:10
huwshimihatch: Actually, that might not be entirely correct.00:11
huwshimihatch: If you drag a charm to the canvas, deploy and then open the machine view they don't appear00:11
huwshimihatch: Even though the machine token's render function is called.00:12
hatchnot sure00:14
hatchI can look at it later on00:14
hatchbut atm I've got a bunch of stuff to do heh00:14
huwshimino problems00:20
kadams54hatch: it does pass! Woot woot!00:28
kadams54I'm going to squash again, but I fully expect that to pass as well.00:28
kadams54Oh, heh, the version that passed doesn't have the async fix yet. Never mind.00:34
kadams54huwshimi: I'm knocking off for the night, but if you want to QA my PR, it's ready to be broken :-) https://github.com/juju/juju-gui/pull/39301:15
huwshimikadams54: No problems, I'll take a look!01:16
kadams54Have a good one…01:16
huwshimikadams54: Night01:16
rick_h_evening01:38
hatchhuwshimi hey how goes it?02:46
huwshimihatch: ugh02:46
hatchthat good eh? anything I can help with?02:48
huwshimihatch: Well, I think I know that the container is not being set correctly, I just don't know why02:49
huwshimialthough now it's not working at all, even if I don't overwrite the init02:50
rogpeppe1mornin' all07:06
huwshimirogpeppe1: Morning07:11
rogpeppe1huwshimi: hiya07:13
frankbanrogpeppe1: morning08:34
rogpeppe1frankban: hiya08:34
rogpeppe1frankban: hangout?08:34
frankbanrogpeppe1: yes08:34
rick_h_morning all11:09
jcsackettmorning, all.12:26
jcsackettrick_h_: you back today?12:27
rick_h_jcsackett: yep, back and emailing wheee12:28
jcsackettah, the email excavation, always fun.12:28
* frankban lunches12:31
bacrick_h_: thanks for your email to ben.  i was left scratching my head too.12:39
rick_h_bac: heh, maybe I was just tired. We'll see12:43
rick_h_rogpeppe1: https://github.com/juju/juju/pull/124 is part of what I was talking about stealing from core. I'm not sure if we can use it but just something to be aware of12:43
rogpeppe1rick_h_: that seems largely overkill for what we need to do, i think (though i reserve the right to change my mind later :-])13:01
rogpeppe1rick_h_: in particular i hope that we can avoid using the txn package in store13:01
rick_h_rogpeppe1: ok, cool. Just want to make sure we don't reinvent the wheela a couple times13:02
rogpeppe1rick_h_: i suspect this wheel will be a different enough shape that there wouldn't be much saved by trying to reuse the code.13:03
rick_h_rogpeppe1: sounds good thanks13:03
rick_h_rogpeppe1: you also see the point on the individual file blogs inside the charms/bundles? 13:04
rogpeppe1rick_h_: i'm not sure. we definitely want to expose *some* data/metadata from bundles, but i don't know about individual file extraction.13:04
rick_h_rogpeppe1: well during publish time we want to store then apart13:05
rick_h_we need this for things like icons and such, without extraction on demand13:05
rogpeppe1rick_h_: because you can't create zip files in JS?13:05
rogpeppe1rick_h_: icons, certainly13:06
rick_h_rogpeppe1: no, more because when we load api results we need to shot icons, allow readmes, etc13:06
rick_h_ s/shot/show13:06
rogpeppe1rick_h_: anything else?13:06
rick_h_and we allow things like browser the hooks and such13:06
rick_h_rogpeppe1: the list of whitelisted files are in charmworld second13:07
rick_h_rogpeppe1: http://bazaar.launchpad.net/~juju-gui-bot/charmworld/trunk/view/head:/charmworld/models.py#L91413:08
rick_h_are what we currently load/allow. I suspect we'll want to add actions to that soon13:08
rogpeppe1rick_h_: yeah, actions should definitely be there13:09
rick_h_rogpeppe1: and we expose those whitelisted files over http://charmworld.readthedocs.org/en/latest/api.html#retrieving-the-files-that-make-up-a-charm13:10
rogpeppe1rick_h_: does the GUI know how to parse those files? or does it just show the raw data?13:11
rick_h_rogpeppe1: raw data but it needs to know how to parse the actions to build the UI for them13:11
rick_h_so that's not always going to be true (that it doesn't need to parse)13:11
rick_h_rogpeppe1: oh, well I guess it renders .md file for README so it parses some, plain dumps others13:11
rogpeppe1rick_h_: so you've got a decent YAML parser in JS?13:11
rick_h_rogpeppe1: nope, we get json :)13:12
rick_h_rogpeppe1: that's why we've pushed so hard for jsonschema and limiting the yaml in there to stuff that's valid json as well13:12
rogpeppe1rick_h_: how will you get json from a YAML file? (i think the actions file is yaml)13:12
rick_h_the api will save us? :)13:12
rick_h_it's what we've been working on with the actions guys from the start. Making sure it's targeted to json/gui use13:12
rogpeppe1rick_h_: so that means it's not just extracting files from the zip, but applying appropriate transformations to them too?13:12
rick_h_but that will come from core, not from the store13:13
rick_h_from the store we just want to be able to show users what's in the charm 13:13
rogpeppe1rick_h_: so you won't be able to parse actions unless you've got a live environment?13:13
rick_h_rogpeppe1: hmm, not sure. On the one hand we NEED parsed for a live env so we can show you the UI generated based on the actions file13:14
rogpeppe1rick_h_: BTW i'm not necessarily opposed to doing some store-side transformations - i'm just trying to work out whether we're talking about a general file retrieval mechanism or tailored metadata13:14
rick_h_rogpeppe1: but in the store side, we want to show users 'this charm supports these actions with these docs/notes'13:14
rick_h_rogpeppe1: to date, it's just been file retrieval13:14
rick_h_rogpeppe1: with the only store side transformations being around icons so that we don't show icons for non-recommended charms13:15
rogpeppe1rick_h_: from what i can see, it'd be quite straightforward to provide access to individual files from the zip if necessary, while still storing the files in zip format in the db13:15
rogpeppe1rick_h_: writing is a bit different though13:16
rogpeppe1rick_h_: and if you can't create zip files client-side, that may be awkward13:16
rick_h_rogpeppe1: yea we can't do that reliably13:16
rick_h_rogpeppe1: otp can chat about it in a bit13:17
rogpeppe1rick_h_: a mime multipart archive might be possible13:17
rogpeppe1rick_h_: ok, enjoy!13:17
jcsackettjuju-gui: anyone have the story on the "activeID in charm results" card in Project 1? i'd like to start in on it, but i need more context, like what part of charm results? (and is that 'precice' a typo or something we're meant to support)13:23
jcsackettoops. jujugui^13:29
rick_h_jcsackett: I can fill you in after the call if no one else gets to you13:33
frankbanrogpeppe1: I am back in the hangout13:34
jcsackettrick_h_: after the call i'll have ~40min of work left. might as well leave it till monday.13:34
rick_h_jcsackett: I mean my current call sorry13:38
rick_h_30ish min13:38
jcsackettrick_h_: oh, ok.13:38
bachi rick_h_ -- i've tried quickstart on utopic with mixed results.  it works great against ec2 but on local provider i cannot get services to fully start.13:46
bacrick_h_: so there may be a juju issue there but not a quickstart one, afaict13:46
rick_h_bac: yea, we're waiting on the upcoming release13:48
bacrick_h_: i've got 1.19.3.  the fix for bug 1314686 was targeted to 1.19.2 so i thought it would be in13:50
_mup_Bug #1314686: Please add support for utopic <packaging> <juju-core:Fix Released by wallyworld> <juju-core 1.18:Fix Released by wallyworld> <juju-core (Ubuntu):Fix Committed by racb> <https://launchpad.net/bugs/1314686>13:50
rick_h_jcsackett: free14:03
rick_h_jcastro: do you know who works with sputnick stuff on our end?14:03
jcastroyeah14:04
rick_h_bac: there was some mongo issue that I think needs the upcoming 1.19.414:04
rick_h_jcastro: I wanted to buy one but they won't let me and say stuff changing and want to make sure if I wait there is a new one vs it's ended or something14:04
jcastrorick_h_, it was kamal mostafa, no idea if he still does it14:04
rick_h_jcastro: cool thanks14:04
jcastrooh you mean business wise14:04
rick_h_jcsackett: meet you in the standup hangout14:04
jcsackettrick_h_: dig.14:07
jcsackettrick_h_: be a moment. it's doing the "you don't have the plugin installed" nonsense.14:08
jcsackettrick_h_: today's standup hangout? b/c i'm there, but you're not. and i can't imagine i beat you.14:09
bacrick_h_: any suggestions on what i should do next?14:12
rick_h_bac: sec, after this call can chat.14:14
kadams54hatch: I'm not seeing any changes on develop - did huw's branches not land yet?14:16
hatchkadams54 nope https://github.com/juju/juju-gui/pull/39114:16
hatchI'm doing another review and qa atm14:17
hatchthen it will14:17
hatchif all goes well14:17
kadams54I can review and QA as well14:17
kadams54It seems like there are quite a few things coming out of the machine view work that warrant further discussion with the design team.14:18
hatchoh?14:18
kadams54There are consistency issues with the create container form, such as the "Move/Create/Add" label on the same button. Ditto for some labels within the form.14:19
hatchkadams54 ok if you could do the QA then I could keep going on my remove relation stuff14:19
hatchbe very thorough there was a lot of hidden bugs the last time heh14:20
rick_h_jcsackett: frozen fail14:20
kadams54There are questions about how to handle situations like dropping a unit on one machine while you have another machine selected14:20
jcsackettrick_h_: i've been knocked off hangouts; google claims i have no internet, which is funny b/c other things open.14:20
rick_h_lol14:20
rick_h_it hates you man. You've got more hangout issues than anyone I know14:20
jcsacketti know dude.14:21
jcsackettand i'm not doing anything unusual.14:21
jcsacketti have three google accounts--i know people with 5 or 6 who have fewer issues.14:21
jcsackettrick_h_: ok, it's loading again.14:21
kadams54Now that machine view is really starting to shape up, we're driving out all the normal UX issues that happen when you take static visuals and turn them into a working, changing app.14:21
jcsackettshould be there in a second.14:21
rick_h_kadams54: wheeeeee14:22
rick_h_antdillon: jcsackett hatch http://techcrunch.com/2014/06/19/google-launches-web-starter-kit-a-boilerplate-for-multi-screen-web-development/ kind of cool14:25
hatchyeah I've got it open in a tab14:25
hatchheh14:25
hatchhaven't tried it yet14:25
rick_h_bac: ok got a sec?14:26
bacrick_h_: sure14:26
rick_h_bac: @ standup hangout?14:26
bacyep, joining14:27
bacrick_h_: looks like it is occupied14:27
rick_h_bac: it should be free14:27
rick_h_I'm in it14:27
bacrick_h_: url? normal daily standup has fb and rp in it14:28
rick_h_https://plus.google.com/hangouts/_/calendar/cmljay5oYXJkaW5nQGNhbm9uaWNhbC5jb20.t3m5giuddiv9epub48d9skdaso?authuser=114:28
rick_h_bac: ah I'm in the friday url14:28
bacblast the friday url14:29
hatchmakyo_ is there a secret 'get relation by endpoints' method hidden somewhere?14:32
hatchahah I found it...14:34
hatchrick_h_ whenever you get a second we should chat about the ghost inspector and the ecs change stuff14:37
jcsackettrick_h_: that is pretty cool.14:41
rick_h_hatch: sure thing, sec14:41
antdillonrick_h_, Looks good, I've been using browsersync.io, but will give it ago14:43
rick_h_antdillon: yea, all good. Just something to keep an eye on14:43
jcsackettjujugui: is /charmName a valid url? I thought we only wanted /series/charmName and /series/charmName-version14:44
hatchjcsackett it is14:44
hatchat least it used to be14:44
jcsacketthatch: i mean, it's allowed by the app. it's the reason we're having the login weirdness.14:44
hatchdeal with it14:44
hatch.....14:44
* hatch snickers14:45
jcsackettand, if anyone creates a charm named login, is going to be an issue.14:45
rick_h_jcsackett: yea, it defaults to latest series14:45
jcsacketti mean, that's an *unlikley* charm name.14:45
jcsacketthow about moving /login and /logout to a /somenamespace/loging etc14:45
hatchjcsackett I'm not sure I understand the problem...can't you just check if it's login/logout and call it a day?14:45
jcsacketthatch: what if someone makes a charm for a single sign on service and names it login?14:46
jcsacketti'm not saying it's likely, but it's possible.14:46
hatchwe tell them in review that they can't14:46
hatch:)14:46
hatchit'll only matter on promoted charms14:46
hatchpromulgated?14:46
rick_h_yea, only promulgated charms get that 14:46
hatchapproved14:46
hatchyeah....approved14:46
hatch:D14:46
rick_h_so it's a list we control14:46
jcsackettok, if people are comfortable with that being a review req, i'm fine with it. just wanted to raise it as an issue.14:47
rick_h_hatch: ok, give me 2 and we can standup?14:47
hatchrick_h_ yep no rush14:47
hatchI'm reading some old code that has no comments and illegible var names14:47
hatchI feel like I'm reading some third party node.js code14:47
hatchrofl14:47
hatchahh I crack myself up....14:48
rick_h_hatch: k, loading14:48
hatchumm it's being broken...14:48
hatchjust a sec, switching networks...14:49
rick_h_jujugui call in 514:55
=== tvansteenburgh1 is now known as tvansteenburgh
rick_h_jujugui call in 114:59
bacjujugui: also, trusty->utopic via 'update-manager -d' hangs.  'do-release-upgrade' is the way to go.15:01
=== hatch__ is now known as hatch
bachi hazmat, i see you're out next week. could you have a look at my merge proposal for jujuclient before you head out?15:17
bacjujugui: US-based people, reminder there is a 401-K meeting at 12EDT15:19
hazmatbac, yes, there another on the same topic15:19
hazmatthere is15:19
hatchOooo I'll take some 401K's15:19
bacby noon i mean 1pm sorry15:19
hazmatyeah.. curious what that's about re 401k15:19
hazmatare plan options kinda blow15:19
hazmatour15:20
bachazmat: yeah, i think they are looking at new selections. i've been pressing for some ETFs or similar15:20
jcsackettjuju-gui: i could use a review on https://github.com/juju/juju-gui/pull/39715:21
rick_h_bac: thanks for the reminder15:28
rogpeppe1that was such a dumb thing to do!15:31
hatchrogpeppe1 lol15:31
rogpeppe1keybd now sigificantly broken15:31
hatchuh oh, well now you have the weekend to take it apart and clean it15:32
kadams54Way to keep on the sunny side hatch15:32
hatchwell it's been pouring here for a week15:38
hatchso something's gota be sunny!15:39
hatchjust in case everyone misses GOTO https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label :P15:48
=== makyo_ is now known as Makyo
rogpeppe1hatch: i've just cleaned it ok, but problem is that in taking some of the keys off, some of the little plastic pieces under the keys have broken15:59
hatchdamn lenovo junk :P15:59
rogpeppe1hatch: so now i'm missing an x, an r and half the space bar15:59
hatchI'm going to bet you can buy those parts....I hope at least15:59
rogpeppe1hatch: when the fan broke, they replaced the keyboard and i'm sure it wasn't so vulnerable before16:00
rogpeppe1hatch: i hope so too16:00
hatchI bet that plastic gets fatigued over time16:00
hatchbeing banged on day-in-day-out16:00
rogpeppe1hatch: it's less than 6 mo old16:00
hatchwell what the heck...16:01
rogpeppe1IMO, keys should not break if you pull them off16:01
hatchI'm with you on that one16:02
hatchwhen I moved some keys around on my MBP they flew apart but didn't break16:02
rogpeppe1hatch: i spilled a glass of gin & tonic all over the old keyboard on the plane once, and it ended up fine16:02
hatchclearly it can hold its booze16:03
hatch...16:03
hatch:D16:03
jcsacketthave a good weekend all.16:09
rogpeppe1good. laptopkey.com seems to be the biz16:09
kadams54hatch: Finished QAing huw's branch and left a comment. I really only found one problem and that might be better to address in a separate branch.16:11
hatchlooking16:12
hatchrogpeppe1 great!16:12
rogpeppe1three new keys ordered...16:12
rogpeppe1$17.6016:12
hatchahh I love the internet, obscure businesses for everything :D16:12
rogpeppe1they even had pictures of the three possible keyboards this laptop could have16:13
rogpeppe1anyway, time for me to vamos16:13
rogpeppe1happy weekends all!16:13
hatchcya rogpeppe1 have a good one16:14
hatchkadams54 thanks for the qa - I agree, follow-up card16:14
hatchI only had one small note which maybe you can address in your branch16:14
hatchI'll shipit16:14
kadams54No.16:15
hatchno don't shipit?16:15
kadams54I categorically refuse to address anything else in my branch.16:15
hatchoh lol16:15
kadams54;-)16:15
kadams54Alright, let's land this puppy so I can move from test hell to merge heaven…16:15
hatchok shippppped - so kadams54  there is the one trivial comment I made 16:15
kadams54Oh, wait.16:15
hatchtoo late16:15
hatch:P well not really, but what's up?16:16
kadams54OK, I need to quit making jokes that can be misinterpreted as "stop what you're doing"16:16
hatchcan you create a bug for your first qa comment16:16
hatchlol16:16
kadams54My "oh wait" was a follow up to my comment about "merge heaven"16:16
hatchohhhh I get it16:16
hatchmaybe it won't be so bad16:17
kadams54 hatch: will do on the bug16:17
hatchkadams54 so it's still going to be a good 30mins until it's merged just fyi16:17
kadams54Yeah, I'm going to grab lunch16:18
hatch*sigh* turns out the method I thought we had, doesn't work like I thought it did16:28
* rick_h_ runs to get lunch16:38
hatchrick_h_ saw your tweet, what are you getting?16:39
rick_h_hatch: ordered the xps13 developer edition with ubuntu on it16:39
rick_h_need a laptop with working mic/camera for all my darn calls16:40
hatchwoah.....16:40
hatchdon't those run 12.04?16:40
rick_h_yea, but not like I'd ever run the OS delivered anyway16:41
rick_h_ok, off to lunch now biaf16:42
bacjoining that conference call is the hardest thing i've done today17:04
hatchlol17:06
hatchrick_h_ heh true - so does 14.04 have all the drivers necessary? 17:40
rick_h_hatch: I assume, we'll find out17:41
rick_h_at least the camera should work :)17:41
hatchhaha - you hope...17:41
hatch:P17:41
rick_h_others have them in the company so I feel pretty good17:41
rick_h_I'm not going to love it, but there's such a lack of 'good' laptops out there right now17:41
hatchit's true17:46
hatchI'm digging this MBP but I really need to get some support from someone who knows how to write drivers :)17:47
rick_h_yea, the camera not working is a killer for me. 17:47
rick_h_too many calls to have to do17:47
rick_h_and rebooting into osx to do calls is a pita 17:47
rick_h_and using osx is an even bigger pita17:48
hatchyop!17:48
rick_h_Makyo: you're going off of https://drive.google.com/a/canonical.com/?pli=1#folders/0B7XG_QBXNwY1cWQ4TmRmRXJBc0E for the change version? 17:53
Makyorick_h_, https://drive.google.com/a/canonical.com/#folders/0B7XG_QBXNwY1Vmowb25PejhJOTg17:57
MakyoWhich looks similar.17:58
rick_h_Makyo: oh cool I missed it on there when I loaded it up :/17:58
rick_h_blindy friday17:58
hatchrick_h_ so on sprints are you going to bring three laptops now? lol17:59
rick_h_hatch: no, I'll be down to one17:59
rick_h_I'm tired of carrying two17:59
rick_h_and two power cords etc18:00
hatchThis weekend I think I'll hop back into Ubuntu and see if I can get the issues fixed up18:00
hatchwould really love to run it on metal18:01
rick_h_I'm going to run. Everyone have a good weekend. 18:40
hatchcya rick_h_  enjoy!18:40
hatchkadams54 hey did the rebase go ok?20:47
kadams54Yeah, it's pushed and the CI build is churning away on it right now.20:48
hatchoh cool, so it's ready for a review?20:48
kadams54Yup.20:48
bacbye jujugui. have a nice weekend everyone.20:56
kadams54You too bac20:56
hatchyou too, cya bac 20:56
hatchkadams54 in the _displayCreateMachine method you're grabbing either the create-machine or create-container element for the container....but won't there also be a create-xxx in the unplaced units column when the user clicks the little button? 21:02
kadams54serviceunit-token.js handles its form a little differently21:03
kadams54Since it needs to populate the dropdowns dynamically, including existing machines and containers21:03
hatchso we have two identical forms with two different code bases? :)21:03
kadams54Fortunately no21:04
hatchoh ok good :)21:04
kadams54It grabs the existing form and manipulates it into what it needs21:04
hatchI don't understand the comment about the kludge21:05
kadams54Huw took the approach of showing/hiding various sections in the form by placing a "state class" at the form level… so if <form class="state-new-lxc">, hide the constraints. If <form class="state-new-kvm">, show constraints.21:06
kadams54I only discovered that after using the "hidden" class directly on the various sections within the form21:06
kadams54In the other places the form is used21:07
kadams54So in that bit of code we're both setting the state class AND having to remove the "hidden" class21:07
kadams54It should only be one or the other and the approach needs to be consistent throughout the code21:07
hatchhmm ok thx21:08
kadams54TBH, I meant to revisit that once everything was working and happy, but before it went out for review21:08
kadams54Sorry.21:08
hatchnp, we should get this landed21:08
hatchalmost done review21:08
hatchkadams54 ok review is done21:13
hatchI'll do qa no21:14
hatchq21:14
hatchnow21:14
kadams54Ah yes… the async issue in the tests…21:16
kadams54I tried wrapping them in after21:16
kadams54And failed miserably.21:16
kadams54Having chunks of the code executed as callbacks messed up stubbed methods21:16
kadams54env.createMachine.lastArguments() was undefined21:16
hatchok after QA I'll show you a diff21:17
kadams54Here's what I tried… https://gist.github.com/kadams54/bc7cfc5ddb722bd42cc821:19
hatchand env was undefined?21:19
kadams54One moment, let me check…21:24
kadams54No, env is not undefined21:28
kadams54And addMachines is still a stub method21:28
kadams54It's just that lastArguments() now returns undefined21:28
kadams54Something (f._allArguments?) seems to be dropping out of scope once the assertion happens in a closure21:29
hatchok sorry I can look now, I was just sending an email re a qa issue21:30
hatchok looking at the code21:30
hatchhmm that's very odd21:31
hatchkadams54 I"m ok with leaving it I suppose, it looks like it's causing more issues than it's solving....no idea why those issues are happening though21:32
kadams54hatch: OK. FYI, I found a problem when QAing… now that I have Huw's stuff, the dropAction is not bubbling up through the events properly.21:33
hatchreally? It's working here21:33
hatchwhat's your issue?21:33
hatchI'll try and repro it21:34
kadams54When I drop an unplaced unit on the "Create Container" target in the container column header, the form shows up over in the machine column21:34
kadams54The action === 'container' conditional is failing, so the container gets set to the form in the machine column.21:35
kadams54OK, gotta run21:35
hatchok be sure to add that comment to the PR so noone lands with it21:36

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