/srv/irclogs.ubuntu.com/2014/05/08/#juju-gui.txt

rick_h_hatch: rgr will look00:03
rick_h_hatch: don't worry about the search branch. It's just a WIP to go through00:09
kadams54hatch: I am now :-)01:58
rick_h_heh, timing is everything02:00
rick_h_time for me to head home...02:01
huwshimihatch: I'll be pushing changes up here if you want to follow along: https://github.com/huwshimi/juju-gui/compare/machine-view-render-changes02:15
hatchhuwshimi sounds good, mind firing me an email at your EOD and let me know what still needs/has been done?02:57
huwshimihatch: Will do.03:06
hatchthanks, we r in crunch time :)03:07
huwshimiyeah03:07
hatchany questions or anything so far?03:07
huwshimihatch: Do you know how to simulate an update on an object? In the console I've been using app.db.machines.add/remove etc. but don't know how to do update.03:13
hatchchange03:13
hatchif you change the contents of one of the machines there should be a *:change event that bubbles up to the modellist03:14
huwshimihatch: But how do I change the contents of a machine?03:14
hatchwell you can use the getById() method on the modellist if you have the id03:15
hatchto fetch the model03:15
hatchor item(n) to grab it by index03:15
hatchor each(function(machine) { ... })03:16
hatchto loop through03:16
hatchthen you just change the contents like you would any model03:17
hatchdid that answer the question03:18
huwshimihatch: Oh, I was trying to do a .set(..) on the object, but I can just set the parameter directly (foo.id = '1')03:19
hatchif the machines modellist is a lazyModelList then yes each model is actually just an object03:19
hatchthat's the primary difference between a modelList and a lazyModelList03:19
huwshimiHmm... the change event doesn't fire though.03:20
hatchno, you'll need to promote it to a real model03:20
hatchhttp://yuilibrary.com/yui/docs/api/classes/LazyModelList.html#method_revive03:20
hatchbut this is a problem that we will need to think about...03:21
hatchbrb need to dc for a second03:21
hatch__back03:22
huwshimihatch__: So when I do the revive the change event should fire?03:22
hatch__it 'should'03:23
hatch__it's been a while since I've used it03:23
hatch__then you'll want to call `free` on it03:23
hatch__http://yuilibrary.com/yui/docs/api/classes/LazyModelList.html#method_free03:23
hatch__I 'think' this is the interaction we'll want to use for this type of thing03:24
huwshimihatch__: Hmm... nothing is getting fired03:25
hatch__how are you listening for the event?03:25
huwshimihatch__: https://github.com/huwshimi/juju-gui/compare/machine-view-render-changes#diff-947e688a9f9e23383a48af542be63bbfR6503:25
hatch__hmm that 'should' work....03:26
=== hatch__ is now known as hatch
rick_h_hatch: I added a card in 'on deck' in Maint. for the password thing fyi03:26
rick_h_hatch: actually two, one for core and one for gui03:26
hatchkewlio03:27
huwshimihatch: And in a console I'm doing: foo = app.db.machines.getById(14); foo.displayName = 'new'; app.db.machines.revive(foo);03:27
hatchohh03:28
hatchyou need to revive first03:28
hatchthen use `set()`03:28
huwshimioh03:28
hatchbasically it's converting an object into a real model03:29
huwshimihatch: Yeah, that worked. Thanks03:29
hatchright on03:29
hatchmake sure you use 'free' afterwards03:30
huwshimihatch: Even in the chrome console?03:30
hatchohh you're just hacking?03:30
hatchthen it's fine03:30
huwshimihatch: Yeah, I'm just simulating the events in the browser at the moment03:31
hatchoh ok cool yeah then np03:31
huwshimihatch: I'll free in the test03:31
hatchbasically you use a LML to save memory and whatnot because then it's just objects instead of model instances03:32
huwshimihatch: Any suggestions for how to do the update? I don't want to have to compare the contents of every token...03:39
hatchI think i need more context03:40
huwshimihatch: Do you know what can change on a machine? Can the displayName change for example?03:42
hatchhmm, I don't think anything tbh03:42
hatchI would assume that any changes would require a new machine03:42
hatch^ rick_h_  have any idea?03:43
rick_h_huwshimi: it will be possible to name machines yes. It came up in Vegas and I've got a meeting on that tomorrow with Luca03:43
rick_h_huwshimi: but we're ok for the moment03:43
huwshimihatch: The units can, but I assume we'll handle that differently (it's not something tied to the machine model)03:43
hatchyeah the units definitely can03:44
hatchI didn't know you could name machines03:44
hatchthat's interesting03:44
rick_h_hatch: I don't recall if that's planned or does work atm03:44
huwshimihatch: Should I leave updating until we know what will change then?03:44
hatchI'd say so03:45
huwshimihatch: OK, that might be a follow up branch then.03:45
hatchyeah it should be ok to add on later on03:45
hatchcool03:45
huwshimihatch: I have to dash out for lunch. bbs.03:45
hatchsure thing, cya later03:46
rick_h_man this is going to be a big diff lol03:57
rick_h_I'll have to ask hatch to review it :P03:57
hatchhaha shouldn't you be in bed?03:58
rick_h_I should, but need to make this work and been talking with another team about their custom gui/charmworld needs for their demo :/03:58
hatchoo boy03:59
rick_h_this.state.getCurrent('charmID');04:04
rick_h_that seems like it's broken?04:04
rick_h_hmm, looks like it's custom mapped just for editorial ugh04:06
hatchrick_h_ that is no longer the valid syntax for the new state class04:13
rick_h_hatch: yea, gotcha. It looks legacy for non flagged editorial stuff04:15
rick_h_will add an XXX04:15
hatchyeah - the new getCurrent syntax is pretty clunky, I've been wanting to add dot-notation support but haven't yet04:15
rick_h_huwshimi: around?04:50
huwshimirick_h_: Oh, sorry I missed your message05:45
rick_h_huwshimi: all good05:50
rick_h_huwshimi: have much time left in your day?05:50
huwshimirick_h_: A couple of hours, but I'll try and work until this is done.05:50
rick_h_ok, cool. I might need your help tomorrow. I've broken sticky headers, probably off a div somewhere, and not seeing it jump out at me05:51
huwshimirick_h_: You, on the other hand, should be in bed :)05:51
rick_h_about to call it a night05:51
rick_h_well soon05:51
rick_h_almost have it working05:51
huwshimirick_h_: Want me to take a look?05:51
rick_h_well, it works w/o the flag, now to make it work with05:51
rick_h_https://github.com/juju/juju-gui/pull/279 is the WIP05:52
rick_h_lots of crapped moved around and such, try not to look at the diff05:52
rick_h_but if you get a sec to try it out and notice that the first header returns after scrolling down maybe the reason will jump out at you05:52
huwshimirick_h_: I don't get any sidebar content and an undefined is not a function error05:56
rick_h_huwshimi: with no flags?05:57
huwshimirick_h_: that's with flags05:57
huwshimirick_h_: It's actually broken without flags too. It overlaps the headers instead of pushing05:57
rick_h_huwshimi: I just pushed a fix for making it work with flags05:57
rick_h_huwshimi: right, that's what I mean05:58
rick_h_my refactoring (without flags) has messed up the sticky headers05:58
huwshimiAh05:58
rick_h_I think it's a div/css placement thingy05:58
rick_h_ok, well the event stuff works with and without a flag and search works. Home doesn't and the sticky headers are broken. I guess I'll call that half way there and call it a night05:59
rick_h_huwshimi: if you see anything that jumps out let me know, otherwise I'll try to pick it back up with a clear head tomorrow05:59
rick_h_or well later today06:00
huwshimirick_h_: I suspect it's not calculating the distance between headers correctly06:00
huwshimimight be an on('scroll' not firing06:00
rick_h_ah, me looks06:02
rick_h_hmm <div id="bws-editorial"> is the renderTo in the code for the target of that event06:04
rick_h_but yea, not firing06:04
huwshimiyeah, that's it06:05
huwshimirick_h_: .bws-content is the element it should have the event on.06:05
rick_h_ah ok, updating 06:06
huwshimirick_h_: We could possibly make #bws-editorial the element that scrolls if need be.06:06
rick_h_yea, that works06:07
huwshimiOh good.06:07
rick_h_I just hard coded it to .bws-editorial for now06:07
rick_h_the structure is a bit different, but this will work for now06:07
rick_h_thanks!06:07
huwshimirick_h_: No problems. Hope you get some sleep! :)06:07
rick_h_I will head off to bed now. Have it pretty close. 06:10
rick_h_night and thanks again!06:11
huwshimirick_h_: Night06:14
antdillonrick_h_, Morning10:49
rick_h_antdillon: morning10:53
antdillonrick_h_, I have a few issues with the environment change set. Where is the best place to voice them?10:55
antdillonrick_h_, Also can I check I should be working from flag mv/li?10:56
rick_h_Just me for the moment. Want to chat? Or type out what's up?10:56
rick_h_antdillon: yes, this is work under the two flags. It's really mv, but il is the soon to be released 'inspector left' flag10:56
antdillonrick_h_, I got it all working its mainly missing info in the ecs like no time stamp10:57
rick_h_antdillon: oh? Ok, well I was just expecting the count to work10:57
rick_h_so if you've got more stuff working then why not push up your branch, start a pull request with notes, and we can start to look through the code and help fill in the last bits10:57
antdillonrick_h_, I few events to bundled like deploying a server and subordinate fire the same deployed event10:58
antdillonrick_h_, Wont we need time stamps for the summary panel?10:58
rick_h_yes, well containers and machines are the same thing in juju land so that's not surprising. There should be some metadata to help us tell them apart10:58
rick_h_antdillon: well, maybe. I'll look at the mocks. I'd consider that more for the changelog, which we're not doing right now since we can't get your previous commits10:59
antdillonOh I see, I was using the command method to split the events10:59
rick_h_antdillon: cool, yea if you start a pull request we can start to go through and help hash over the last details and check it out. 11:01
antdillonrick_h_, Sure, just working through the last few changes and there messages then tests :)11:03
=== perrito6` is now known as perrito666
rick_h_antdillon: yay11:07
rick_h_frankban: sorry, completely missed the time12:11
frankbanrick_h_: no worries, ready when you are12:11
rick_h_frankban: https://github.com/juju/juju-gui/pull/27712:31
* frankban lunches12:36
rick_h_this test run isn't going to be pretty 12:41
jcsackettmorning all.13:05
rick_h_morning13:07
jcsackettrick_h_: got your invite--i have a contractor swinging by the house sometime between now and 11, so i may be interrupted, but i'll be there.13:20
rick_h_jcsackett: thanks13:21
rick_h_it'll be quick, forgot to shorten from the google calendar 1hr default13:22
jcsackettcool.13:22
bacrick_h_: daily hangout?13:30
rick_h_bac: soryr, had a hangout in the meeting invite13:32
rick_h_https://plus.google.com/hangouts/_/canonical.com/charmworld?authuser=1&hceid=cmljay5oYXJkaW5nQGNhbm9uaWNhbC5jb20.7enijh4dvef97a4ifdu83bnoj413:33
rick_h_I <3 it when a passing test comes together13:50
bacredir: when you finish your current work, could you look at the deploying local charmworld instructions and walk through them to ensure they still work?  you have fresh eyes.  https://docs.google.com/a/canonical.com/document/d/1Y8Uhomr4_6L3nFXLXPZY2V-tFjl5KjOIknQLuXdzU_A13:52
redir bac do we have a target for the demo? trusty?13:53
redirI can do it from scratch in a container13:53
bacyes, i'd say trusty13:53
bacin an lxc would be great13:54
redirk13:55
rick_h_bac: want to catch up with 1-1 later on?14:08
bacrick_h_: what do you mean?  postpone?  i can do it now14:09
rick_h_bac: ok14:09
antdillonHi guys, does anyone have a min to help me get my head around some tests for deployer bar?14:21
rick_h_Makyo: are you around to help antdillon?14:24
rick_h_antdillon: I've got a call in 7, what's up? Maybe push a branch and create a pull request with notes/questions so we can see what's up?14:24
rick_h_and I can help out between calls 14:24
antdillonrick_h_, Its mainly just trying to add a change to the ecs in the test14:25
rick_h_antdillon: ah, gotcha. sec, might be able to find an example14:25
antdillonrick_h_, I'm in the text_env_change.js14:26
rick_h_antdillon: oh ok, so in the ecs tests itself?14:26
antdillonrick_h_, Something like utils.makeStubMethod(envObj, '_deploy');14:27
rick_h_antdillon: you're looking to make a stub or to put something into that stub'd method?14:30
jcsackettrick_h_: fyi, my contractor just called to say he's running late, so he's likely to arrive *during* standup. as with earlier meeting, i'll be there but may get interrupted.14:30
rick_h_jcsackett: rgr14:31
rick_h_antdillon: maybe hatch can help you 1-1?14:32
hatchuh oh14:32
* hatch runs away14:32
hatch:P14:32
antdillonhatch, come back14:33
hatchwhat's up?14:33
antdillonhatch, Getting errors trying to set changes to the ecs in the deploy bar tests14:34
antdillonhatch, Got any tricks?14:34
hatchcan you push up the code?14:34
hatchso I can see what you're trying14:34
hatchand what the errors are14:34
antdillonhatch, Here is the test: https://pastebin.canonical.com/109870/14:34
antdillonGetting TypeError: 'undefined' is not an object (evaluating 'ecs.changeSet')14:35
hatchlooking14:36
antdillonhatch, Not sure im initialising the ecs properly14:36
hatchblah 2fa, one sec14:36
hatchok you're doing the stubbing incorrectly14:38
hatchone sec 14:38
hatchat least I think so14:38
hatchyou're stubbing out the entire application 14:38
antdillonprobably, seems slightly different test by test14:39
hatchso what is this test trying to do?14:39
hatchwhen you simulate a click on the deploy button the ecs commit method is called?14:40
antdillonThe "should increase changes when a services is added" is trying to set a change then check the deployer bar is returns 1 changes14:40
hatchoh that test14:40
hatchwoops :)14:41
antdillonI didnt write that one, im working on the one above and will move to that one14:41
antdillonhatch, But both are erroring14:41
hatchok so first of all you're stubbing out a method and not resetting it14:43
hatchand then as far as the rest of the errors I'll need to run the code to see the actual error14:44
antdillonhatch, I'll push them up14:44
hatchthx14:45
hatchbrb14:45
redirmerge proposal submitted in lp. requested R=jcsackett to get different eyeballs on it.14:48
redirbac: ubuntu or ubuntu-cloud for the container?14:49
redirmatter?14:49
bacredir: lxc?14:49
antdillonhatch, https://github.com/anthonydillon/juju-gui14:51
hatchantdillon which branch?14:53
hatchoh you pushed into develop14:53
antdillonPushed to my fork14:53
antdillongit@github.com:anthonydillon/juju-gui.git14:53
jcsackettredir: ack, i'll take a look after standup.14:53
jcsackettredir, bac: we're using LP, not rietveld now?14:54
hatchantdillon yeah ok, give me a few minutes to pull this down and take a look14:54
bacjcsackett: new hires cannot use lbox14:54
bacsomething to do with the auth dance14:55
bacand unsupported tools14:55
jcsackettbac: lovely.14:55
jcsackettok, no worries.14:55
antdillonhatch, Thank you very much14:55
rick_h_jujugui call in 414:57
bachey rick_h_ you're sending out gcal invites in pacific time.  perhaps you should tell google you're back home.  :)14:57
bacnot that it matters...14:57
rick_h_bac: hah, awesome14:58
rick_h_bac: hmm, it says I'm in eastern14:58
bacour 1:1 came across as 7am, which caused me to panic a bit14:59
hatchantdillon assert.equal(view._getChangeCount(ecs), 1);14:59
hatchyou didn't pass ecs into this method14:59
kadams54hatch: got a state question for you, maybe after standup?14:59
hatchsure14:59
hatchjujugui call now15:00
antdillonhatch, Isnt ecs a global?15:03
antdillonhatch, Ah got it :)15:04
redirjcsackett: bac's instructions for setting up juju-gui to connect to local charmstore with ngrams applies also.15:04
hatchantdillon :) rookie mistake :P15:06
antdillonhatch, :P15:06
Makyojcsackett, shared the calendar with you.15:09
jcsackettMakyo: thanks.15:09
jcsackettredir, bac: do we have to set it up that way? shouldn't the search api endpoint reflect the changes? was planning on just poking at a local charmworld with httpie for qa.15:10
bacjcsackett: i think that works just as well15:11
bacjcsackett: using juju-gui to see the autocomplete behavior is nice, too15:11
antdillonhatch, Is utils.makeStubMethod(envObj, '_deploy'); the correct way to trigger an event?15:11
hatchnope15:12
redirjcsackett: that is how I rolled. But hooked up the gui to make sure it didn't puke15:12
jcsackettredir, bac fair points.15:12
hatchthat will make a stubed version of the _deploy method on the envObj15:12
jcsackettlooking now.15:12
hatchyou want to fire an event from envObj?15:13
hatchrick_h_ you said that you have an outline of the demo they want to do?15:13
antdillonIm copying from test_env_change.js15:13
hatchyou're going to have to give me more information :)15:14
rick_h_hatch: yes, I've requested access for everyone, waiting on luca 15:14
redirbac: yes re lxc, there are ubuntu and ubuntu-cloud images. Not sure which they will demo from butvalidating  on the same one would be ideal.15:14
bacredir: i have no preference.  pick one and document it15:15
redirk15:15
bacand if it breaks, pick the other one15:15
redirhehe15:15
hatchfrankban are you taking over huw's branch?15:18
rick_h_hatch: no, I was going to see if you would 15:19
rick_h_hatch: we need to get the service units stuff landed first before anything else really15:19
hatchyep I will, I just saw his comments, wasn't sure if he was on it15:19
rick_h_he was realy helpful to narrow it down <315:19
hatchhaha yes15:20
hatchok I've got to run to the drug store to buy some drugs15:20
rick_h_yay drugs!15:20
hatchI've gone this long without any, but with all this coughing it's just too hard to do anything 15:20
jcsackettrick_h_, frankban: so, what branch should i be watching for service unit stuff? i thought just frankbans, but huw's too?15:20
hatchneed some cough juice 15:20
frankbanhatch: I am trying to proceed with this branch, so that wasn't a real review15:20
hatchfrankban ok thanks15:21
hatchbbiab15:21
jcsacketthatch: just make sure it's not the *special* cough juice.15:21
hatchjcsackett maybe the code will be more interesting :P15:21
jcsackettyeah, b/c coding with full-strength robo-tussin is such a good idea. or is that like the balmer curve...15:22
frankbanjcsackett: that's my branch: we will have a db.units lazy model list, and new db.addUnits() / db.removeUnits() calls to use in order to keep the different model lists in sync15:22
antdillonhatch, Sorry I was using the code from test/test_env_change.js15:22
jcsackettfrankban: awesome. you're not doing anything insofar as loading units onto machines, are you? i'm assuming i'll want to have the machine view code drop that onto tokens as appropriate from the lazylist you're making.15:23
antdillonhatch, All I need to do it trigger an event like _deploy or _relation15:23
jcsacketts/machines/machine-view/15:23
frankbanjcsackett: yeah, at that point it should be something like db.units.filter(function(unit) {return unit.machine == $myMachine}) or similar15:24
jcsackettfrankban: awesome. thanks.15:25
jcsackettredir: to make sure i'm understanding, ngram stuff is available in ES, you've set up how you want ngram stuff done with n3_20 stuff in filter and analysis, so ES understands what is meant by that when you use it in the mapping?15:40
redirjcsackett: yes. define an analyzer then use it15:41
jcsackettredir: just making sure. outside of a full understanding of ES it looks a little magical. :p15:41
rediragreed15:41
redirI don't claim to have a full understanding of ES:)15:42
hatchback15:43
hatchantdillon _deploy or _relation aren't events15:44
antdillonhatch, I mean't adding to the ecs15:44
hatchok so you need to add a record to the ecs so that you can test that the count goes up in the deployer bar?15:45
antdillonWhen I do ecs._createNewRecord('service');15:45
antdillonI get TypeError: 'undefined' is not an object (evaluating 'record.command.args')15:45
jcsackettredir: code is r=me, qa-ing now. can you please file a bug about the test you needed to comment out?15:46
hatchthat means that record.command is undefined15:46
kadams54hatch: another question on the hasChanged stuff…15:46
hatchantdillon the ecs stuff requires a bunch of setup your best bet is to call one of the public methods15:46
hatchecs.deploy for example15:46
antdillonhatch, Tried ecs._createNewRecord('service',{ foo: 'foo' }); with an undefined args.length15:46
jcsackettredir: qa may take awhile--i have no charms in my local charmworld, need to let ingest run for a bit.15:47
hatchkadams54 shoot15:47
redirjcsackett: and with that test commented out they won't get deleted when you run the suite15:47
redir:)15:47
hatchjcsackett why does charmwork injest take to long?15:47
rick_h_hatch: don't go there :P15:47
hatchoh15:47
hatchhaha ok15:47
* hatch steps back slowly15:48
kadams54hatch: right now, the way things are coded up, it doesn't do a deep object comparison. https://github.com/juju/juju-gui/blob/develop/app/views/state.js#L7015:50
hatchwell that's stupid15:51
kadams54That's a problem for metadata, which, as things stand, will always return true.15:51
hatchwhat kind of idiot wrote that15:51
hatch:)15:51
kadams54I'm pretty sure it's Benji's fault ;-)15:51
hatchlol!15:51
kadams54So… how do you want to fix?15:51
rick_h_I had to do this for filters15:51
hatchthe 'proper' way to do fix is to add dot notation to that method15:52
hatchbut the easy way is ot manually compare for now15:52
hatchsorry15:52
* kadams54 *sobs*15:52
hatchmanually compare isn't too bad15:52
hatchone extra line15:52
rick_h_kadams54: hatch I just did JSON stringify compare to check if they were the same for the filter object data15:52
rick_h_fyi15:52
kadams54rick_h_: yeah, I was thinking of doing the same15:52
hatchahh yeah that would work, but in this case that's overkill15:52
kadams54Couldn't remember if there were any caveats to that hack15:52
hatchimho15:53
rick_h_kadams54: determinism of the data15:53
hatchit's slow15:53
hatch"slow"15:53
hatchantdillon you can probably go ecs.changeSet.abc123 = { ... }15:55
hatchassuming that you don't have another key which is abc123 :)15:56
antdillonhatch, lol i thought that would be cheating15:57
antdillonhatch, wanted to try and push a true event in there using the right function15:57
hatchwell it is, but you're testing the integration between two classes 15:57
hatchyou don't need to test that the ecs is working, it already has tests for that15:57
antdilloni guess15:57
antdillonthanks15:57
hatchnp :)15:58
hatchI don't know how the stuff in cough syrup works but daaaaaaamn it works fast15:58
antdillonon to the deploy :P15:58
hatchantdillon so how is the Object.observe stuff working out?16:00
antdillonhatch, Good! seems to be working for the changes that are supported16:01
hatchnice16:01
hatchglad to hear it16:01
antdillonshould have a pull request in soon16:01
redirjcsackett: filed 131756716:07
jcsackettredir: thanks.16:07
rick_h_jujugui need two reviews and would like two qa's of https://github.com/juju/juju-gui/pull/281 please. Apologies for the size up front. took 4 files down to 1 so lots of moving around16:18
kadams54QAing16:21
rick_h_kadams54: ty16:21
rick_h_hah, and somehting is broken yay16:22
hatchfrankban so in huw's branch the proper add event is being fired but `this.get('db').machines.filterByParent(null);` is not returning the newly added machine16:23
hatchbut there IS a machine in the db16:23
frankbanhatch: I explained what's going on in the mp comments16:23
hatchohh woops I misread your comments16:24
frankban.filterByParent(null) does not return the machine because parentId is not set at the time the event is fired16:24
frankbanhatch: ^^^16:24
hatchok I can fix that, instead of overwriting add, listen to the the 'on' event and modify the machine before it's added16:24
frankbanhatch: my current branch fixes the issue16:24
rick_h_bah, make test pass rebase and now it's broken16:25
rick_h_hold off kadams54 working on it16:25
hatchis there a reason why ^ wouldn't work frankban ?16:25
frankbanhatch: interesting16:25
kadams54rick_h_: will do16:26
hatchit seems like it should16:26
hatchthen we don't have to make custom events for fun :)16:26
jcsackettredir: so, qa may take a really long time. ingest blew up b/c of local network problems.16:28
jcsackettredir: do you have other things to work on, or is this blocking you?16:28
redirnope trying to review local demo instructions and have a bug in the lxc ubuntu image trying to figure out where to file that16:29
redirjcsackett: ^^16:29
frankbanhatch: I am not sure, the add override has been there for a while, but if you think that works I agree it can be better, given we find a way to make it easy for people looking at the models what's going on (i.e. you add a machine, and then you have a different machine). This kind of jumping around can be dangerous when using events.16:29
hatchok I'm going to give it a try, see if the tests pass16:31
redirjcsackett: I have a copy of the ES index I can put up for you to DL but you may also need the mongo stuff for CW to work right16:31
rediridk16:31
frankbanhatch: to be clear, I am worried by the double pain of having 1) an object mutated 2) by a ninja subscriber16:32
jcsackettredir: if it's not blocking you, i'm content to just let it finish running properly.16:32
redirjcsackett: cool16:32
jcsackettredir: not that i think your branch could be at fault, but it's always good to make sure ingest still works. :p16:32
hatchfrankban, yeah it's not very transparent with the ninja subscriber16:32
jcsackettis "ninja subscriber" an actual term of art, or just something y'all are going with?16:33
hatchI just feel that we should be modifying the machine BEFORE it's saved not after16:33
hatchjcsackett just running with it16:33
hatch:D16:33
jcsacketthatch: dig.16:33
hatchI see a tweet here somewhere16:33
hatchI need some program that tweets and G+'s at the same time16:34
frankbanninja subscribers can destroy your application very fast16:34
hatchsee an attribute would handle this in the setter16:35
hatchI'll ask in #yui see if anyone has any input16:35
frankbanhatch: anyway, what's so wrong with the custom event? we can also avoid the original one to be fired, so the total event count can be maintained stable16:36
hatchfrankban events aren't discoverable - and custom event's don't follow any convention16:36
hatchso anyone working with the code will have to somehow 'just know' that they should use this custom event instead of the YUI one16:37
hatchI suppose we could make the add event silent and then fire an add event ourselves16:38
frankbanhatch: I tried to reuse the YUI one, but found that unfortunately an internal ninja subscriber is already in place in YUI :-/16:38
hatchsomething else is listening to the 'add' event?16:39
frankbanhatch: yes16:39
hatchand our modifications break it?16:39
frankbanhttps://yuilibrary.com/yui/docs/api/files/app_js_model-list.js.html#l18916:40
hatchthat's just publishing that this will fire that event16:41
hatchbut I see what you're saying16:41
hatchthe lazy model list api is linking to the wrong file :/16:42
frankbanhatch: that;s also adding a default subscriber: this._defAddFn16:42
hatchyeah16:42
frankbanhatch: but perhaps we can fire add with preventDefault?16:43
frankbanhatch: yeah, that could work16:43
hatchhttps://yuilibrary.com/yui/docs/api/files/app_js_lazy-model-list.js.html#l28716:43
frankbanhatch: so we add with silent: true, we modify the object and then we fire "add" with preventDefault?16:43
hatchjust an idea16:44
antdillonhatch, sorry one last thing16:45
hatchnp, shoot16:45
rick_h_kadams54: pushing updated branch now. 16:45
hatchfrankban I'll try that approach and see how it works out16:45
rick_h_jujugui so https://github.com/juju/juju-gui/pull/281 is updated and looking for eyeballs please. 16:45
* rick_h_ goes out to get some lunch16:46
antdillonhatch, assert.isTrue(stubApp.ecs.commit.calledOnce()); is false but it should defo be being hit16:46
hatchhow are you stubbing it?16:47
antdillonhatch, http://paste.ubuntu.com/7417088/16:48
hatchantdillon where you think it should be being called place a debugger right before that line. Then console.log the function and see if you get the stub function or the real commit function16:49
hatchand don't use isTrue (it doesn't give proper tracebacks) use equal() instead16:50
antdillonhatch, Ok thanks16:50
frankbanhatch: ok so I'll exclude that change from my current work, could you please inform Huw that you are working on that later?16:53
hatchfrankban yeah - I'll let you know if this works, atm I'm having trouble preventing the default soon enough16:54
hatchfrankban looks like this technique won't work without a bunch of hackyness 17:00
hatchso we'll have to use your technique 17:00
frankbanhatch: fullAdd?17:01
hatchyeah17:01
hatchfrankban what if we modified the model BEFORE calling var result = MachineList.superclass.add.apply(this, args);17:02
hatchis that possible?17:02
hatchso invert how the new add method executes17:02
frankbanhatch: that can be possible17:02
frankbanhatch: especially because we are using lazy model lists, so we should not require calling instance methods17:03
antdillonhatch, Ah so I had to call stubApp.ecs.commit() to get true for stubApp.ecs.commit.calledOnce() 17:03
hatchfrankban that's what I was thinking....ok I'll try that 17:03
hatchthat makes sense17:03
hatch^ antdillon 17:04
antdillonhatch, Is there a way to calledOnce on the none stubbed function?17:04
hatchno but you can call the original method17:04
antdillonThe original method is called by the button click17:05
hatchhttps://github.com/juju/juju-gui/blob/develop/test/utils.js#L8917:05
hatchwell if the original method is called by the button click then clicking the button should trigger the stub to be called17:05
antdillonhatch, Its not for some reason17:06
rick_h_antdillon: is the code up? Remember that button clicks are events and async17:07
antdillonhatch, But by debuggering and calling stubApp.ecs.commit()17:07
rick_h_antdillon: so you have to find a way to watch for that click17:07
antdillonthe calledOnce returns true17:07
hatchmy guess is you're running into an async issue17:07
hatchso what you need to do is listen to 'after' that click event17:07
antdillonhatch, I thought it might be a race :(17:07
hatchthen test for the once() in there17:07
hatchso yeah....like rick_h_  said :)17:08
antdillonbut with the debugger i ran calledOnce a while after the click and its still false17:08
rick_h_antdillon: right, so you created a mock, then you manually called the mock17:09
rick_h_what you want to do is create the stub, and watch it, and see who ELSE talks to it17:09
rick_h_antdillon: let me know if you want to hangout and I can help look at it. I'm free atm17:09
antdillonrick_h_, Ok that would be good. This is the final bit of tests for now17:09
rick_h_antdillon: hangout invite on the way17:10
rick_h_antdillon: https://plus.google.com/hangouts/_/grvtyzyt53dbgg2c4lkx6elfwya?authuser=1&hl=en17:11
hatchfrankban inverting the execution order of add() fixed it :) yay17:12
frankbanhatch: very cool17:13
hatchmuch happier17:13
hatch:)17:13
frankbanyeah17:13
hatchfrankban https://gist.github.com/hatched/84a65398d22fc3753ef6 here is the new method17:15
frankbanhatch: cool, could you please change also the unitList one?17:16
hatchI could, that might be out of scope of this branch though17:17
hatchthis branch already breaks the environment switcher 17:17
hatchlol17:17
hatchrick_h_ when you have a moment I'd like to pair on this review - there are so many lines moved around it would be nice to have some guidance as to what's new and what's not17:22
rick_h_sure thing17:26
rick_h_hatch: will ping once done with antdillon 17:26
antdillonrick_h_, git@github.com:anthonydillon/juju-gui.git17:26
hatchyeah no rush17:27
jcsackettredir, bac: https://pastebin.canonical.com/109893/17:32
jcsackettpost ingest, trying to start up charmworld.17:32
redirjcsackett: dude you broke i17:33
redirt17:33
* jcsackett laughs17:33
jcsackettsorry, dude.17:33
jcsacketti didn't want to. :)17:34
jcsackettredir: i'm running tests now to see if we get something informative locally to help you debug.17:34
jcsackett`make check`, to be specific. could always clobber something bad in my environment and make your code work.17:34
hatchMakyo I think I failed with your QA....dragging a service to the canvas on comingsoon doesn't open the inspector anymore....after you deploy one service though, it does17:39
Makyohatch, boo.  Oh well, easy fix.17:39
MakyoLet me do that real quick.17:40
hatchthanks, sorry about that - I'm not sure how I didn't notice that in QA17:40
rick_h_hatch: time to chat?17:42
rick_h_looks like kadams54 found I missed the cleanup point whoops17:42
hatchrick_h_ maybe you should fix kadams54's issues he found in QA first :)17:42
rick_h_:P17:43
hatchwelcome back to the dark side17:43
hatchmohohahaha17:43
kadams54I hate to say this, but huw suffered through multiple rounds of QA when I was working this branch17:43
kadams54He might be good to pull in for a second set of QA ees.17:43
kadams54eyes even17:43
kadams54He had a good knack for breaking this in increasingly complex ways17:44
rick_h_it's all good, it's close. I didn't test the inspector integration and it's some missing cleanup on close/change 17:44
antdillonrick_h_, Branch up updated git@github.com:anthonydillon/juju-gui.git17:44
antdillonrick_h_, Heading home will be online in an hour17:45
rick_h_antdillon: do a pull request please17:45
rick_h_antdillon: it's easier then you can see the diff of what changes 17:45
antdillonrick_h_, Sure17:45
rick_h_thanks17:45
frankbanguihelp: I need two reviews and possibly two QAs for https://github.com/juju/juju-gui/pull/282 (this is the db.units change). I have to go now, but I'll take a look later. Thanks a lot, that's a long diff but should unblock things a bit17:47
hatchfrankban I'll take one17:47
hatchthanks for the hard work on it17:47
jcsackettfrankban: i'll take the other.17:47
frankbanthank you both!17:47
jcsackettfrankban: no no, thank *you* for doing the work. my code needs it. :)17:48
hatchhaha :)17:48
frankbanheh17:48
antdillonrick_h_, https://github.com/juju/juju-gui/pull/28317:49
hatchjcsackett can you do a QA on frankban's branch in a real env? I'm not setup atm for it - I could get setup though if you can't17:53
jcsacketthatch: i don't have a version of juju that works with local provider, and aside from getting the one from source i'm unsure how to go about it. :(17:53
hatchwhat version are you on?17:54
hatch10.04? lol17:54
jcsackett1.18.1-trusty. and i see no updates.17:54
jcsacketti get endless connection failures trying to bootstrap on local.17:54
hatchohh is there a bug?17:55
redirI installed juju-local from ppa and then deleted /usr/bin/juju to get local provider17:56
* jcsackett raises eyebrow.17:56
jcsackettredir: can you juju deploy to other providers, having done that?17:56
redirjcsackett: rebuilding cw/ngrams from scratch to ensure it works here17:56
redirjcsackett: havne't tried17:56
redirbut I have a build in ~/go/17:57
jcsackettredir: yeah, i think i'll have to do the source build and figure out what i did wrong yesterday.17:57
redirand it requires the 'package' to be installed 17:57
jcsackett'package'?17:57
hatchyeah there is a local package that needs to be installed separate17:57
hatchbut usually it says so17:57
Makyohatch, https://github.com/juju/juju-gui/pull/28417:57
hatchthanks, I'll qa  now17:58
hatchMakyo +1'd18:00
Makyo\o/18:01
redirjcsackett: a fresh checkout/branch from lp:~reedobrien/charmworld/ngrams "works for me"18:01
MakyoRealized all of my QA took place with an inspector URL already in place.18:01
redirjcsackett: 'package' == apt-get install juju-local18:01
redirwhich also installs juju-core18:02
rick_h_kadams54: call?18:03
redirbac: you ever resolve that npm conflict?18:05
bacredir: i did not but noticed nodejs installed /usr/bin/npm so my system is in working order18:05
jcsackettguihelp: we need someone else to qa redirs charmworld branch. anyone able?18:07
rick_h_hatch: got a sec?18:08
hatchI do18:09
rick_h_https://plus.google.com/hangouts/_/canonical.com/kyle-rick?authuser=118:09
redirjcsackett: http://pastebin.ubuntu.com/7417568/ works with the caveat that sysdeps fails to install npm so I run apt with out that and nodejs installs npm18:18
rediron trusty18:19
jcsackettbac ^ is this sort of thing likely necessary for a deploy, then?18:21
jcsackettredir: that also blows away the entire database...so have you done an ingest to see if it works once there's data?18:21
redirjcsackett: running now18:21
jcsackettredir: ok.18:21
jcsackettsorry this is such a pain. just be glad eventually all of this is going to be something better.18:22
bacjcsackett: we're deploying on precise.  the node/npm issues are not new to this branch.18:22
redirjcsackett: but I did this more than once yesterday18:22
redirbetter18:22
baci mean, the issues are new but the requirements aren't.  i'm inelegantly trying to say i think it works on precise.18:22
redirbac: should I be developing on precise? I was doing it locally18:22
rediron trusty18:22
redirwas/am18:23
baci think we need to be on trusty18:23
jcsackettbac: i'm not having a node/npm issue, and my lxc is precise.18:23
jcsackettnonetheless, bin/es-update crashes on me with the ngram branch.18:23
bacjcsackett: oh18:23
bachow does it crash?18:23
jcsackettbac: https://pastebin.canonical.com/109893/18:24
redirbac: jcsackett sent this https://pastebin.canonical.com/109893/18:24
bacjcsackett: i thought the node/npm thing was the only issue, so i apologize for being uninformed18:24
redirjynx18:24
* jcsackett laughs18:24
rick_h_hatch: ok, got it thanks18:27
hatchawesome18:27
rick_h_hatch: ok, I'm ready for qa and such, well after my call in 318:28
hatchsure, I'm going to grab lunch now18:28
hatchso in a while :)18:28
bacjcsackett, redir: i'm perplexed18:30
redirjcsackett: bac: building a precise container to build in now18:31
jcsackettbac: so am i.18:31
bacthat looks more like a coding error than an environmental one.  unless you're dealing with a different version of ES package.18:32
redirjcsackett: bac: es-0.90.0 here18:43
jcsackettbac: i don't actually know how to check es version.18:48
rick_h_dpkg -l | grep elasticsearch18:49
bacyeah, that18:49
bacbut i think there's only the one version curtis packaged18:50
redircurl localhost:920018:50
baci've got 0.90.0.release+201305241158+repack8~precise118:50
jcsacketti've got 0.90.018:54
jcsackettbac, redir ^19:05
redirand you are on precise, jcsackett?19:13
jcsackettredir: yup.19:13
redirbuilding precise now to test on 19:14
rick_h_woot, the NUCs have arrived. Now to wait a week to have time to play with getting them setup19:19
hatchrick_h_ when you do be sure to keep notes so you can write a blog post about how awesome MAAS and Juju are, and how they allowed you to create a cloud in your house19:21
rick_h_hatch: heh, I'll try19:21
hatchAll of the juju questions on askubuntu seem to be around maas19:22
hatchhardware must be hard19:22
hatchrick_h_ ok I'm done frankban's branch, did you want to run through your branch now?19:28
rick_h_hatch: sure, I blew up tests in this last batch but can run through it19:29
Makyorick_h_, I was able to reproduce this stacked service thing earlier, switched to the branch to fix hatch's QA issue, realized I couldn't reproduce it anymore on develop.  What were your steps again?19:29
MakyoI'm wondering if an interstitial branch fixed it by accident.19:30
rick_h_Makyo: I deployed some stuff with MV/IL on. Did a relation, had three services. I then went into machine view, used the deploy button from there to deploy19:30
rick_h_then went back to the service view after a reload, this was in a live env19:31
rick_h_when I was qa'ing against lxc19:31
MakyoAha, that's the difference.  My bad.19:31
rick_h_hatch: did you want to call to walk through it?19:31
rick_h_hatch: or you good for now?19:31
hatchrick_h_ ok well lemme qa it19:33
hatchand i'll get back to you19:33
redirstil building19:36
redirI think the net is slow:/19:38
rediror maybe that is just archive.ubuntu.com that is slow19:40
jcsacketthatch: were you able to QA frankban's branch on a real env?19:41
hatchjcsackett I haven't yet 19:41
hatchI actually have an architectural change in the comments19:41
hatchso I wasn't sure if I was going to19:41
rediron precise it built and is now ingesting jcsackett bac19:42
jcsackettredir: cool. i look forwards (in an hour or so) hearing if bin/es-update crashes for you. :)19:42
redirbin/es-update is called when you run make run19:43
hatchrick_h_ QA'd19:43
hatchthree issues, one meh, 2 need to be fixed19:43
rick_h_hatch: all good thanks for the qa19:44
hatchoh those issues were using il19:44
hatchI forgot to mention that in the comment19:44
jcsackettredir: yes.19:45
redirso wouldn't it crash when I do make run?19:45
redirjcsackett: it didn't19:45
jcsackettredir: but you hadn't ingested yet, right?19:45
redirnot sure how that would differ.19:46
redirexcept if you had data that was already indexed with the old mapping and tried applying the new mapping over it19:46
rick_h_jujugui going afk, will finish up fixes and tests on my branches later on. 19:47
hatchcya19:47
bacta19:47
jcsackettredir: i had no data at all before ingesting.19:47
redircaio19:47
hatchjcsackett take a look at my big comment in frankbans pr when you get a chance and let me know what you think19:47
jcsackettredir: having now just killed all my data and done make run, i can confirm that bin/es-update only fails post-ingest for me.19:47
jcsacketthatch: changeUnits?19:48
redirOK19:48
hatchjcsackett yeah that comment19:48
redirI may not have done things in that order19:49
jcsacketthatch: so are you suggesting that he redo things so that someone working units would do list.{add,remove,change}, and then events would be used to sync everything up?19:50
hatchexactly19:50
jcsacketthatch: yeah, i don't like that. :P19:50
hatchbecause how it is right now, he needs to add a changeUnits method too19:50
jcsacketthatch: but as it is now, won't he need to implement new stuff for list.change as well, *plus* the event listening stuff?19:51
jcsacketti agree changeUnits should be added, but i like the interface he's suggesting here for working with the dual lists.19:51
jcsacketthatch: i feel like using events would make this interaction more opaque.19:53
redirbac have you been able to reproduce jcsackett's problem?19:53
bacredir: i have not tried.  i'm working on the demo issue19:54
redirbac right OK19:54
hatchjcsackett well right now we are saying, any time you modify a unit you need to do it through these convenience methods. I'm proposing that any changes done to the main list and then propagated outwards instead19:56
hatchI'm just trying to stick to conventions as much as possible19:58
jcsacketthatch: i don't know that we really gain anything in this instance by following convention.20:01
jcsackettwe're doing something very specific to this collection--having modifications to it also sync other bits.20:01
hatchwell we will never run into an issue where someone updates the unit list directly breaking the synchronization 20:02
hatchright now - if someone goes unitList.add() it's immediately out of sync20:02
hatchand it relies on codereview for people to 'know' that's incorrect20:02
jcsacketthatch: still, i don't think we gain much here by doing it as you suggest, beyond hiding the syncing so it's not clear when you're looking at say, `add` that it's also going to modify other things.20:02
jcsackettthe other way relies on reviewing the code to know that it has side effects, though, right?20:03
jcsacketteither way people are going to have to read the code.20:03
jcsacketthere at least you're only having to review one thing to see what is going on.20:03
hatchwell no, we need some way to signal to the dev that you shouldn't interact with the normal methods directly for this specific modellist20:04
jcsackettwhich we do. there's a big comment saying "don't do that".20:04
hatchonly if you're reading the model20:04
hatchin 5/6 modellists you interact with it one way, 1/6 you need to use special methods20:04
jcsackett...right, but if i don't read the model and see a note saying "hey, when you call `add` this other list will also update how am i going to know that happens?20:05
hatchthat's not intuitive, and will likely silently fail20:05
hatchthats' fine if you don't know it's updating something else20:05
jcsackett5/6 modellists don't keep two lists in sync, do they?20:05
hatchbecause that updating must happen20:05
jcsacketti don't know that i agree--i like knowing "call this, both things update" then wondering how on earth this other thing keeps changing.20:05
hatchyeah, but you know about this special unit update method20:06
hatchthink 6mo down the line with some other devs20:06
jcsacketthatch: ah, see, we may not be having the conversation we think we're having--i was perhaps unclear in my initial restatement of what you were suggesting.20:07
hatchhaha20:07
jcsacketthatch: you are *not* suggesting he get rid of {add,change,remove}Units20:07
jcsacketthatch: you are suggesting a different way for them to work?20:07
hatchwell, in that you don't call them directly, they are called by events on the master unit list20:08
hatchmaybe we should have a quick hangout :)20:08
jcsackettgive me 10 minutes to finish chasing something down in my code, then i'll ping you?20:08
hatchok sure20:09
hatchrick_h_ https://plus.google.com/111316263265570636863/posts/Ez97Lppto8v these guys made the skin I have on my phone, and now they are making them for the pebble :) thought you might be interested20:09
redirjcsackett: es-update works fine on trusty after insgesting. precise still ingesting.20:19
jcsackettredir: ok.20:19
jcsacketthatch: i can chat now, if you like.20:20
hatchcool one sec20:20
hatchjcsackett https://plus.google.com/hangouts/_/7acpi4pk3ossnove1b1upqgskk?hl=en20:20
redirbac juju local-provider apparently doesnt' work (out of the box) on lxc (nested lxc) so I am just doing it locally.20:26
redirjcsackett: bac http://pastebin.ubuntu.com/7418220/ works on lxc:precise  for me too20:48
jcsackettredir: ok, i don't have time to figure out why it's not working on mine--if you and bac can both get it charmworld working on precise with this branch, fair enough.20:50
jcsacketti'll approve the MP.20:50
bacftr, i have not tried precise.20:50
redirwould be nice to have someone else get it owrkking besides me20:51
redirnew guy20:51
jcsackettredir: agreed, we're just starved for time. :p20:52
jcsackettrick_h_: do you have time/capacity to QA redir's branch on precise?20:53
redirjcsackett: OK I'd ask rick_h_ how important landing it is then20:53
jcsackettredir: i think it can probably be blocked on QA for the time being, but yeah let's see if rick_h_ agrees or can unblock it.20:53
jcsackettor find someone else who can.20:53
redirack20:53
jcsackettof course, he's gone AFK20:55
jcsackett:p20:55
jcsackettredir: are you at EoD?20:55
redirjcsackett: close20:57
redirbut will be online for a while20:57
jcsackettredir: ok. if he doesn't get back to you this evening then at least it's not languishing for a big part of your day.20:59
jcsackettor at least not anymore than it already has. :p20:59
redirbuilding the local provider thing for bac & rick_h_ now21:00
hatchjujugui anyone available for a review for the machine view re-rendering bug fix https://github.com/juju/juju-gui/pull/28521:20
Makyohatch, on it21:20
hatchthanks sir21:20
hatchhey huwshimi 21:21
huwshimiMorning21:21
hatchyou're here early :)21:21
hatchI JUST proposed your branch21:21
hatchexcept it works now :PPPP21:21
hatchkehehe21:21
huwshimihatch: Thanks very much!21:22
hatchyou were very very close21:22
hatchgw21:22
hatchfeel free to take a look at the diff between our two branches if you'd like to see the changes I made21:23
huwshimihatch: It's also a pity that my branch on github doesn't have all the changes I made in it :(21:23
hatchuh oh....what do you mean? You forgot to push some stuff up? :)21:24
huwshimihatch: Maybe :)21:24
hatchhaha I hate you21:24
hatchcan you do it as a follow-up after this one lands?21:24
huwshimiYeah...21:25
hatchphew21:25
hatchgithub doesn't really do collaborative branches very well21:25
hatchhuwshimi https://github.com/hatched/juju-gui/commit/1ca283b93fa9e33cbe37d7906dd365bd9960166d here is my diff21:27
huwshimihatch: Actually, it looks like a rebase might have killed a bunch of my changes :(21:27
hatchaww boo21:27
hatchwhat were they?21:27
huwshimihatch: I think it was mostly to do with setting the header labels correctly. I'll have to fix that all up.21:30
huwshimihatch: It's also missing all my code comments and a bunch of other stuff.21:31
huwshimihatch: I'm surprised the code worked at all.21:33
hatchlol21:33
hatchit works well actually with only some small fixes21:33
huwshimihatch: I could have knocked off an hour or two earlier :(21:34
hatchhaha 21:34
hatchdarn21:34
hatchrick_h_ is there a next card you would prefer I hop on?21:37
huwshimirick_h_: ^ let me know if there's a particular card for me today too.21:38
hatchhe was stepping away a bit ago so he must not be back yet21:40
hatchhuwshimi if you could do a qa on your branch that would be awesome21:40
huwshimihatch: OK, will21:40
hatchthanks21:40
huwshimihatch: No way to undo that rebase is there?21:41
huwshimiI know that's probably a stupid question21:41
hatchyou can :) http://stackoverflow.com/questions/134882/undoing-a-git-rebase21:42
jcsacketthatch: where did you find icon data on the service?21:42
hatchjcsackett service.icon ;)21:43
hatchoh I mean service.get('icon')21:43
hatch:)21:43
rick_h_huwshimi: adding some uncommitted state would be cool if the machine view stuff is working. 21:44
hatchjcsackett https://github.com/juju/juju-gui/pull/277/files#diff-a52e5f6257113ed57354e9aaca710a65R6121:44
hatchrick_h_ oo do me next, do me next!!21:45
rick_h_hatch: where are we with frankban's branch? We need to get the unplaced tokens showing off that db info21:45
huwshimirick_h_: OK, I'll take a look21:45
rick_h_hatch: so any of them around the inspector not showing but getting unplaced unit tokens21:45
hatchhis branch isn't 'quite' done 21:45
hatchit's missing a change unit method and a safety net console.error on the native methods21:46
rick_h_hatch: what do we need to get it done. It's holding up all the tokesn which we need to make them actually deploy as a machine/container. 21:46
huwshimihatch: so I did 'git reflog' and now I have a list of actions. I see the line I want to get back to "a3e8f9b HEAD@{21}: commit: Set headers correctly." how do I reset back to that?21:46
huwshimioh, exit the reflog and then 'git reset --hard HEAD@{21}'?21:46
hatchyeah21:47
hatchthat21:47
jcsacketthuwshimi: awesome.21:47
huwshimiscary!21:47
hatch(i was typing that) haha21:47
jcsacketter, hatch: awesome.21:47
jcsacketthuwshimi: i'm sure you're awesome too.21:47
huwshimi:)21:47
hatchhuwshimi basically you never want to commit passwords into git because git remembers EVERYTHING lol21:47
huwshimi:)21:47
rick_h_hatch: so if you can get me unplaced unit tokens when you drag/drop a service that'd rock. 21:48
hatchyou 'can' delete commits but its lengthy21:48
rick_h_hatch: or the card where when you hit deploy you don't get an inspector popping upo21:48
jcsackettrick_h_: frankban's branch needs a changeUnits method and some protection around methods on the unitlist we should never ever use.21:48
hatch^ that21:48
rick_h_hatch: we need drag/drop of the unplaced token into the other parts21:48
rick_h_ok, well if it's something you can do/add then let's run with it21:48
rick_h_everything we need to do to make this happen centers around interacting with the unplaced unit tokens21:49
hatchI won't be able to finish what needs to be done in his branch in an hour21:49
rick_h_hatch: k21:49
rick_h_well then one of the others mentioned ^21:49
rick_h_just assigned one :P21:49
hatchok hit deploy, not opening the inspector21:50
hatchif we have an inspector open it needs to switch to a real inspector though, correct?21:50
hatchohh I see the card21:51
hatchrick_h_ so luca is stuck on this 'no-inspector' thing hey?21:51
rick_h_hatch: yep21:54
rick_h_well Mark S is21:54
hatchugh21:54
hatch*muted ugh*21:54
hatchlol21:54
rick_h_hatch: yea, it does need to switch, but if we don't have it open it sholdn't open on deploy 21:54
hatchyeah that's definitely a bug21:55
huwshimihatch: So this branch has the changes the rebase lost: https://github.com/huwshimi/juju-gui/tree/bad-rebase21:55
huwshimifor some reason I can't get a diff against my other branch that doesn't have all the changes.21:55
hatchhuwshimi ok once my PR lands then rebase this branch and PR with it21:56
hatchrebase this branch from develop that is21:56
hatchnow that you got this code back you love git don't you?21:56
hatch:)21:56
huwshimihatch: I think you know how much I love it.21:57
jcsacketti never thought i would say this, but i miss bzr.21:57
hatchrick_h_ ok so dragging a service to the canvas OR clicking the 'add to canvas' does NOT open an inspector......on deploy, don't open any inspectors unless one is already open....if it's open, switch to the service inspector21:57
hatchhuwshimi lol21:58
hatchjcsackett git has too much power for you? :P21:58
hatchyou can't handle it!21:58
rick_h_hatch: right21:59
hatchok on it22:00
redirrick_h_: jcsackett couldn't qa ngrams. I can't reproduce his problems, and bac was doing the local demo stuff. Not sure what to do the with the branch.22:01
rick_h_redir: we'll have to put it on ice until post-demo time monday22:02
redirack22:02
rick_h_redir: the other stuff is priority at the moment then I cna help QA or etc22:02
redirack22:02
huwshimihatch: I've added a couple of comments to the PR22:13
hatchthanks, looking22:14
hatchhuwshimi so after I make these changes it's good to land?22:19
huwshimihatch: Maybe, I wrote most of the code, so I don't think I can give it a proper review :)22:20
hatchhaha, well did ou QA it?22:20
huwshimihatch: Yeah, it seems to QA ok22:21
hatchsounds good, so I'll make these changes and then landed22:21
hatchland it22:21
huwshimihatch: But again, as the author of the code, I'm only testing what I know :)22:21
hatchhuwshimi so if there are no machines then the container column should be cleared as well22:23
huwshimihatch: Yes.22:23
huwshimihatch: The container column will show the containers inside the selected machine (if there is one). If there are no machines then there would be nothing to show.22:24
hatchsounds good22:25
huwshimirick_h_: What do we currently have in the machine view panel that can get into an uncommitted state?22:31
jcsacketti would just like to take this moment to point out we have both container-token.handlebars and token-container.handlebars22:33
huwshimijcsackett: That's because we have a token-container.js widget and a container-token.js widget :)22:34
jcsackettright. so two moments, then, so we can all savor that.22:35
hatchhuwshimi I'm landing the branch so you should be able to PR yours soon22:35
huwshimihatch: Thanks!22:35
hatchjcsackett lol22:36
hatchno confusing at all22:36
jcsackettand then we just throw in the notion of 'container' as an html node...22:44
* jcsackett segfaults22:44
hatchjcsackett I thought youw ere the one who made the token stuff22:46
hatchno?22:46
jcsacketthatch: i made the charm token.22:46
jcsackettwhich became the token.22:46
jcsackettand then was bisected, to become the bundle token.22:46
jcsackettand then...dear god.22:46
jcsackettbut all i did was make the charm token.22:47
huwshimihatch: I made container-token and macine-token22:47
hatchhaha "token all the things!"22:47
hatchis there an aus meeting today?22:53
huwshimihatch: Not sure...22:55
hatchrick_h_ ^22:55
huwshimihatch: Do you know if there is anything in the machine view that can be in an uncommitted state?22:56
hatchnew machines and containers22:57
hatchI also think that assigning a unit to a machine can also be uncommitted 22:57
huwshimihatch: But we don't have any of that functionality now though do we?22:58
hatchlemme take a look22:59
hatchno we only have deploy, set config, and add relation23:00
hatchso far23:00
rediramionline23:24
hatchyes u r23:25
redirrick_h_: bac fwiw, http://bit.ly/1g0VJrw worked for me. It isn't done ingesting but I did manage to turn off wifi and find some charms that were already ingested.23:26
redirthanks hatch 23:26
hatch:)23:26
huwshimihatch: Here is the final set of changes: https://github.com/juju/juju-gui/pull/28623:33
hatchcool I'll take a look in a few23:38
huwshiminp23:40
huwshimiNeed to fix tests anyway23:43
huwshimiFixed.23:57
jcsackettEveryone celebrate. I have service units showing in all tokens. 23:59

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