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

rick_h__huwshimi: howdy01:22
rick_h__jrwren: bac please make sure to use the approp channel for conversations around projects01:24
huwshimirick_h__: Hello!01:26
rick_h__huwshimi: how goes? 01:26
huwshimirick_h__: Good thanks. Trip went well?01:26
rick_h__yea, little hiccup on the way home, but all ends well01:27
rick_h__now just very very tired01:27
rick_h__in the TZ I started the day it's now 3:30am :)01:27
huwshimihaha, oh dear01:27
rick_h__anyway, back in town. Will probably stick my nose where it doesn't belong tomorrow. 01:28
rick_h__but will not be on the AU call/etc01:28
rick_h__huwshimi: but if you want/need to chat let me know and I'll try to make sure to sync up tomorrow night01:28
huwshimirick_h__: No problems. Everything is good at the moment. Plenty to do.01:28
rick_h__huwshimi: cool, did you get a chance to poke at the 'more menu' at all?01:29
rick_h__I didn't see anything that looked like it, wanted to check if we've broken ground on that?01:29
huwshimirick_h__: I haven't got that yet. I can tackle that next.01:29
rick_h__huwshimi: ok cool 01:29
huwshimirick_h__: Happy for it to be a widget, correct?01:29
rick_h__huwshimi: yea, I think so01:30
rick_h__huwshimi: we'll leave it for hatch to find a hole in the logic :P01:30
huwshimirick_h__: hehe, no problems.01:30
hatchblarg01:30
huwshimihehe01:31
hatchI'd vote to remove everything widget :)01:37
rick_h__hatch: and when I'm less tired we can chat on the 'why'. Banning X just on principal seems a bit weak and doing a tooltip as a View seems :/01:38
hatchyeah get some sleep :)01:39
rick_h__:) zzzzz01:48
hatchhuwshimi http://codepen.io/ziga-miklic/blog/pure-css-tic-tac-toe/02:39
huwshiminice02:46
urulamarogpeppe1: morning. fyi: i'm driving the kids to their grandma, they had some stomach issues during the night ... be back in 1h max.06:55
rogpeppe1urulama: ok, thanks06:55
rogpeppe1urulama: morning too, BTW06:55
frankbanrogpeppe1: morning, I reviewed your branch08:34
rogpeppe1frankban: ta!08:34
rogpeppe1frankban: oh twats, it looks like i mixed up two branches08:41
frankbanrogpeppe1: yeah I had that impression08:41
rogpeppe1frankban: this one should be better: https://github.com/juju/charmstore/pull/7309:02
frankbanrogpeppe1: done09:06
rogpeppe1urulama: do you want to have a look before I merge?09:07
urulamarogpeppe1: that's the one from yesterday evening?09:08
rogpeppe1urulama: yup09:08
rogpeppe1urulama: although it's got a different PR number now09:08
urulamarogpeppe1: it was fine yesterday :)09:09
rogpeppe1urulama: ok, cool. you didn't comment on it yesterday, so i thought you hadn't looked through it.09:10
rogpeppe1urulama: (actually, it wasn't fine yesterday, as frankban cannily pointed out - i'd mixed in another branch)09:10
urulamarogpeppe1: i didn't review it, just skip through it as a first glance09:16
rogpeppe1urulama: np09:16
rogpeppe1urulama, frankban: i'd appreciate a review of https://github.com/juju/charmstore/pull/72 please09:19
rogpeppe1(it's pretty trivial)09:19
frankbanrogpeppe1: so also charms and utils are updated to newer versions on that branch, correct?09:20
rogpeppe1frankban: yes, because they have also been updated to use gopkg.in/yaml.v109:21
frankbanrogpeppe1: cool, LGTM09:21
rogpeppe1frankban: thanks09:21
urulamarogpeppe1: done09:21
rogpeppe1urulama: ta!09:21
urulamarogpeppe1: who changed charms.v3 to yaml?09:21
rogpeppe1urulama: kat09:22
rogpeppe1urulama: ha, which reminds me, we should remove that UNSTABLE DEVELOPMENT VERSION notice09:22
urulamarogpeppe1: should we? :)09:22
rogpeppe1urulama: https://github.com/juju/charm/pull/3909:23
rogpeppe1urulama: yes, we must09:23
rogpeppe1urulama: because it's now used by juju-core09:23
rogpeppe1urulama, frankban: https://github.com/juju/charm/pull/4009:26
urulamarogpeppe1: so if a need to verify bundle on read arises (this is not the case now, we rely on a client, iirc), would that be v4 then?09:33
rogpeppe1urulama: i don't think i understand the question09:34
urulamarogpeppe1: would such change (adding bundle verification on read) bump the charm version to charm.v4? i guess not, as the api does not change, just asking09:35
rogpeppe1urulama: yeah, i don't think that would need a version change09:36
=== rogpeppe1 is now known as rogpeppe
rogpeppeurulama: so are you ok with the PR https://github.com/juju/charm/pull/40 ?09:53
urulamarogpeppe: i guess we don't have a choice on that, do we :)09:53
rogpeppeurulama: i don't think so09:53
urulamarogpeppe: but i also do not see any breaking changes in the near future at this moment 09:54
rogpeppeurulama: neither me09:54
rogpeppeurulama: and even if there were, we would need to make a new version09:54
urulamarogpeppe: that you also don't see it makes me a little more at ease saying it's "stable"09:55
=== alexpilotti_ is now known as alexpilotti
rogpeppeurulama: good. (i think - i'm having difficulty parsing that sentence :-])09:55
urulamarogpeppe: ah, yes, thoughts in slavic directly transformed to english, sorry :)09:56
rogpeppeurulama: :-)09:57
frankbanurulama: FWIW your sentence works in Italian too ;-)10:07
urulamafrankban: :)10:08
rogpeppei'm still trying to work out what "that you also don't see" means :-)10:11
urulamarogpeppe: something like this: the fact, that you also don't see breaking changes to the charm.v3 in the near future, ... 10:16
urulama:)10:16
rogpeppeurulama: ah, got it, thanks10:16
urulamarogpeppe: do we have a doc with possible keys for id/stats/counter/ ?11:02
rogpeppeurulama: it's mentioned in the charm API doc AFAIR11:02
urulamarogpeppe: indeed, down in the text. tnx11:03
rogpeppeurulama: we can easily add to that BTW11:03
urulamarogpeppe, frankban: good news, i'm QA-ing the charmstore charm with a related mongodb charm ... and seems like i can put stuff in and retrieve the info11:04
rogpeppeurulama: cool11:04
urulamarogpeppe: wasn't id/expand-id API already implemented? was it lost? (it's probably just me with false recollections of expandId activity)11:10
rogpeppeurulama: no, i don't think so11:10
urulamarogpeppe: tnx11:10
* urulama adds a card11:10
urulamarogpeppe: seems like stats are not working11:21
rogpeppeurulama: we currently don't update any stats11:22
rogpeppeurulama: the machinery is in place, but we don't actually use it yet11:22
urulamarogpeppe: understood.11:22
urulamarogpeppe: btw, now that stats was moved to v4 api, do we still need _old directory or can it be removed?11:23
rogpeppeurulama: i think we should probably remove it11:24
rogpeppeurulama: it was when i started removing it that i added stats11:24
rogpeppeurulama: but never got around to removing it...11:24
urulamarogpeppe: np, it's not important, just aesthetics ...11:27
urulamarogpeppe: and i'm glad we can get rid of old code :)11:27
rogpeppeurulama: well, there's still some code in there that we might want11:28
rogpeppeurulama: but it's easy enough to find it agin11:28
rogpeppeagain11:28
rick_h__morning party people11:30
urulamamorning there, rick_h__11:33
urulamarick_h__: hope the weather up there is better then here on the south11:33
rick_h__urulama: the weather here in Michigan is pretty nice11:34
rick_h__though we had flooding earlier in the week that shut down a section of the highway I take home11:34
urulamarick_h__: oooh, home already. 11:34
rick_h__so after the flight had to detour for a long while :/11:34
rick_h__yea, today is recovery day 11:34
urulamarick_h__: hehe, enjoy11:34
rick_h__but I will be in/out (loading pictures wheee) if anyone needs anything11:35
urulamarick_h__: some good news, QA[pchamrstore charm accepts 11:39
urulamaah11:39
urulamarogpeppe: did we miss the /meta/any int he api?11:48
urulamarogpeppe: or did just i miss the handler call for it?11:48
rogpeppeurulama: i think it's implemented, isn't it?11:48
rogpeppeurulama: it's implemented by the router11:48
jrwrenbac: It turns out that juju get formatting bug was a duplicate which I couldn't find: https://bugs.launchpad.net/juju-core/+bug/129211613:05
mupBug #1292116: juju get output is ugly (broken line wrapping and escape characters) <canonical-is> <config> <papercut> <juju-core:Triaged> <https://launchpad.net/bugs/1292116>13:05
kadams54guihelp: how do I make a stub (created via makeStubMethod) return a certain value?14:33
hatchpass it in 14:34
frankbankadams54: IIRC you just pass the value as the third argument14:34
hatchvar stub = utils.makeStubFunction('returnVal')14:34
hatchor14:34
hatchvar stub = utils.makeStubMethod(obj, method, returnVal)14:34
* frankban bbiab14:35
hatchthe return val param is actually n...14:35
hatchso if you specify 3 additional arguments then each time it's called it'll pass the next one14:35
kadams54Thanks14:35
hatchkadams54 I recommend checking out the source for those methods, it's pretty cool how it works14:36
kadams54hatch: I've looked at them before, I was just feeling lazy this morning :-)14:37
hatchI wrote a 'continue with "this" when "that" is done' addition to it but never landed it because we found a workaround to the problem14:39
hatchjujugui call in 10 kanban now14:49
hatchjujugui call in 214:58
bachatch: mojo stuff is proceeding.  good talk with liam today, confirmed what i suspected: the spec as written will not work locally.  it expects you are operating in an openstack environment -- which is where IS developed it.  will talk to michael nelson when he is available tonight.15:04
hatchbac thanks15:08
bachatch: couldn't get hangouts to recognize my headset or headphones... grrr15:09
hatchblarg15:09
hatchi've had that happen before15:09
hatchusually a browser restart is all that's necessary15:09
Makyojujugui sorry I missed the call, lost track of time walking the dogs.15:14
kadams54hatch: So… buildHierarchy now filters out unplaced units, but that causes a problem on down the road. Once the service is deployed (but not the unit), its ID changes, which breaks the relationship between the two.15:19
kadams54That causes an error to be thrown later, once the unit is placed.15:20
hatchright, you'll have to use `prepare` handler15:20
kadams54hatch: Potential solution would be to setup an event handler in the service model on ID changes that also updates related IDs in the units collection.15:21
hatchsee lazyAddMachines 15:21
hatchkadams54 before it had the 'onParentResults' handler called which would update the appropriate fields15:21
hatchnow we need to add the 'prepare' handler in the event that that handler isn't called15:22
hatchkadams54 the prepare handler is called before the command is run to make any changes to the record15:23
kadams54hatch: yeah, I see that, just trying to figure out where this would fit in…15:24
hatchwhat do you mean? 15:24
hatchoh there might be an issue here....15:25
kadams54If I understand correctly, you want a prepare handler on the deploy service commands, which would update the unit model to the new service ID?15:25
hatchno on the add unit commands15:25
hatchwhich actually won't work 15:25
hatchbecuase I don't think we will know that the ghost service id matches the service id15:25
kadams54Yeah15:25
kadams54We need it before then15:26
kadams54When doing operations with the undeployed unit15:26
kadams54For example: looking up the service icon for an unplaced unit15:26
hatchcan you gist the data that is in the service db for the deployed service and the add unit command? 15:28
hatchthere may be something we can key off of15:28
hatchif not I'll have to take another look into the execution order of this after I finish these reviews15:29
kadams54hatch: https://gist.github.com/kadams54/74a0c7c0a7e2c0b18b8b15:39
kadams54hatch: looks like we could match on unplacedUnit.charmUrl == service.charm15:40
hatchyeah that won't work though - you can deploy the same charm twice under two different services15:40
hatchcrud15:40
kadams54But that would mean changing a lot of places (like icon logic) that currently use unplacedUnit.service15:40
hatchkadams54 ok looking15:46
hatchhmmmmmmmmm15:48
hatchkadams54 can I see what you have so far?15:55
kadams54Sure15:56
kadams54https://github.com/juju/juju-gui/pull/49615:56
rogpeppejrwren: what series is the charmstore charm designed to run on?15:56
jrwrenrogpeppe: trusy only. rick_h__ said it was OK to not support precise.15:57
hatchthx looking15:58
hatchkadams54 this was not designed for this....16:10
hatchlol16:10
kadams54:-)16:14
kadams54What would be the harm in having an event handler update the unit's service field when a service ID changes?16:15
kadams54hatch: ^16:15
hatchscalability 16:16
hatchand we actually destroy/re-create the models16:16
hatchso that won't work :)16:16
hatchso kadams54  what needs to be done is the _updateChangesetFromResults call needs to be done changeset wide16:17
kadams54Not just at specific levels?16:19
hatchwell think about this on the big picture16:19
hatchno wait16:20
hatchWAIIIIT16:20
hatchit's coming to me16:20
hatchoh yeah this is good16:20
hatch:)16:20
hatchactually this was an idea already on the place16:20
hatchplate16:20
kadams54hatch: I have a bad feeling about this…16:20
kadams54;-)16:20
hatchlol16:21
hatchthe units need access to the service model itself16:21
hatchnot just the id16:21
hatchproblem is that we destroy the model16:21
hatchand create a new one with a new id16:21
hatchthis is actually the problem with one of our other bugs/cards16:21
hatchkadams54 that's going to be quite the undertaking16:24
hatchso I have an idea which you may be able to investigate16:24
hatchyou generate a list of unplaced units and their id's16:24
jcsacketthuh...CI lint caught an error that local lint did not...16:24
hatchoh wait that's not gona work.....16:24
* hatch grabs the white erase marker and starts over16:25
kadams54lol16:25
hatchjcsackett don't like ;) 16:25
jcsacketthatch: i was so excited--i remembered to run it this time, and still no love. :p16:25
hatchlol!16:26
jcsackettjujugui: can i get two reviews on https://github.com/juju/juju-gui/pull/497 ?16:27
jcsackettMakyo: do you need a second on your PR, or are you still addressing hatch's notes?16:27
kadams54jcsackett: I'll take a look.16:28
Makyojcsackett, still addressing notes, though feel free to take a look16:28
hatchkadams54 none of my ideas work thanks to Makyo 16:29
hatchblame him16:29
hatch:P16:29
jcsackettMakyo: cool, i'll look now.16:37
hatchkadams54 quick call?16:43
kadams54hatch: sure, standup?16:43
hatchyup16:43
kadams54And now I think I'm going to go for a run.16:52
kadams54;-)16:52
hatch:D16:53
hatchthanks for the chat16:53
hatchI should start running16:53
hatchkadams54 do you use any apps or anything16:53
kadams54Nike for run tracking/logging and couch-to-5K for interval training.16:54
kadams54Or couch-to-10K, depending on whether I have a 10K race coming up.16:54
hatchjeebz16:56
hatchI doubt I could do 1k16:56
hatch:D16:56
hatchI wonder if there is a couch-to-fridge app16:57
hatch:D16:57
hatchjcsackett your branch.....does it work?17:02
hatch:)17:02
rick_h__lol17:02
hatchlove the simplicity 17:02
rick_h__good question17:02
hatchwb rick_h__ 17:02
rick_h__sleep is good17:02
hatchhaha it is!17:02
hatchI'm spinning up an instance for qa atm17:03
hatchhas anyone ever seen this failure when trying to change the juju-gui-source? 17:18
hatch2014-08-14 17:13:44 INFO juju-log fatal: git fetch-pack: expected shallow list17:18
jcsacketthatch: it does.17:19
jcsacketthatch: i don't like it, but it works.17:20
hatchjcsackett I can't qa it....for some reason I can't change the repo....17:23
hatchit doesn't like your branch or something...17:23
rick_h__hatch: precise or trusty?17:24
hatchprecise17:24
rick_h__hatch: the git checkout source stuff only works on trusty due to git changes from precise to trusty17:24
hatchohhh17:24
hatchwell NOW you tell me :)17:24
rick_h__been that way since the trusty charm :P17:24
hatchfor reals? 17:24
rick_h__yep17:24
hatchinteresting17:24
rick_h__the git stuff broke and I had to fix it for trusty, but then it broke precise since we were trying to do lightweight checkouts for speed/etc17:25
hatchahh gotcha17:26
* rogpeppe is done for the day17:38
rogpeppeg'night all17:38
hatchnight rogpeppe 17:39
=== lazyPower_ is now known as lazyPower
jcsacketthatch, rick_h__: you can get around it on trusty by using a sha instead of a branch name.18:31
jcsacketter, on precise.18:31
hatchahh18:32
rick_h__jcsackett: ah cool18:32
jcsackettrick_h__: you're not actually here, right?18:40
jcsackettrick_h__: as in, we're not supposed to be doing a call?18:40
rick_h__jcsackett: right, I'm doing bills atm and watching pics upload :)18:41
rick_h__recovering18:41
jcsackettcool.18:41
rick_h__jcsackett: unless you want to chat then I can do that too :)18:42
hatchI definitely want to see these pics rick_h__  :) be sure to share 18:46
jcsackettrick_h__: naw, i'm good. just making sure i wasn't leaving you hanging. :)18:46
hatchkadams54 hey things going well with that update?19:01
kadams54hatch: trying to figure out why this method was setup like this…19:01
hatchwell originally we only ever had to do things top-down19:01
kadams54Why only walk the hierarchy? Why not just walk through the entire changeset?19:01
kadams54Trying to make sure I understand what the ramifications of changing that approach will be19:02
hatchthe hierarchy WAS a formatted changeset up until today19:02
hatch:)19:02
hatchlunching19:16
kadams54hatch: let me know when you're back. I think I fully understand what needs to happen here :-)19:24
hatchkadams54 still here, wassup19:25
hatchcall? 19:25
kadams54hatch: one moment. Working up a gist.19:27
kadams54hatch: go get lunch :-)19:28
kadams54hatch: I figured I'd have at least a few minutes to get a psuedo spec worked up :-)19:28
hatchhaha ok19:29
hatchbbl19:29
kadams54hatch: ping me once you've refueled and we'll hop on a call. Gist is here: https://gist.github.com/kadams54/d04ca02e2ccf4005a03a19:32
hatchkadams54 gist looks good19:57
kadams54Great19:57
kadams54Working on the tests right now19:57
kadams54hatch: FYI, pushed the new updateChangesetFromResults out to the PR. Going to add an onParentResult to unit records now.20:36
huwshimiMorning22:26
hatchmorning huwshimi 22:37
hatchhuwshimi https://github.com/juju/juju-gui/pull/486/files#diff-f05fb78d550f50174f5355a05130fa02R183 I'm now working on making this test work with the new inspector rendering but the uncommitted element is empty22:44
hatchany idea what I need to add to the unit list to make an uncommitted unit?22:44
huwshimihmmm...22:45
hatchtbh I'm not sure how it worked before haha22:45
hatchprobably because it just glazed over it22:46
huwshimihatch: The unit you've added there should be uncommitted. It has no agent_state22:46
hatchok I'll step through22:46
huwshimihatch: https://github.com/juju/juju-gui/blob/develop/app/views/viewlets/service-overview.js#L89522:48
hatchhmm I only have the three with agent_states22:48
hatchodd22:48
hatchhuwshimi doh I fixed it22:49
huwshimihatch: Oh, what was it?22:49
hatchI was adding the unit after it was rendered22:50
hatchso the databinding probably didn't kick in before it did it's assertion22:50
huwshimiOH22:51
hatchI have 1/3 of the inspector overview tests passing22:51
hatchthis conversion is gona be h e double hockeysticks22:51
huwshimi:)22:52

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