/srv/irclogs.ubuntu.com/2014/11/04/#juju-gui.txt

rick_h_jujugui new release is out03:01
rick_h_http://jujugui.wordpress.com/2014/11/04/juju-gui-1-2-3-released/03:01
rick_h_urulama: you really here?03:01
=== kadams54 is now known as kadams54-away
huwshimirick_h_: Nice!03:21
rick_h_hazmat: bug fix release out, hopefully helps. ^03:23
huwshimirick_h_: Is there a flag to view the added services panel?03:25
rick_h_huwshimi: /:flags:/as03:25
rick_h_huwshimi: it's still a couple of cards from landing, hopefully done later this week03:25
huwshimirick_h_: Oh, I should have looked at the full changelog :)03:25
rick_h_:)03:25
huwshimirick_h_: And how do you actually show the add services panel? :)03:27
rick_h_huwshimi: deploy something so you have added services? 03:31
rick_h_huwshimi: and then under the search bar is a button that opens it03:31
rick_h_huwshimi: find it?03:33
huwshimirick_h_: Oh, I was trying on jujucharms.com03:33
rick_h_huwshimi: oh yea, comingsoon03:34
rick_h_huwshimi: since we're trying to bring up the new site didn't bother updating that url yet03:34
huwshimiyeah :)03:34
huwshimiI'm not a person03:34
rick_h_not a person?03:35
huwshimirick_h_: I have no brain? I am not functioning :)03:36
huwshimiwait, that wasn't a question03:36
huwshimior was it?03:36
rick_h_it was, I didn't follow the 'I'm not a person' line03:38
rick_h_but gotcha now, some funky saying :P03:38
=== kadams54 is now known as kadams54-away
hazmatrick_h_, sweet08:26
hazmatso another gui bug, resolve/retry doesn't go through commit08:48
=== rogpeppe1 is now known as rogpeppe
rick_h_hazmat: hmm, yea that was intentional. The thought was that doing a resolve/retry isn't really a part of a 'changeset' you'd be trying to put together14:48
rick_h_hazmat: more of a debugging command that you want to happen14:48
hatchMakyo: u in yet?15:06
hatchkadams54: so could you do the added services ui buttons respecting the service visibility state?15:10
kadams54hatch: yeah.15:11
hatchI don't think that will conflict with my stuff15:11
hatchright now I'm trying to figure out why ghost services get selected differently by d315:11
hatch:/15:11
kadams54hatch: I don't see a card for that?15:12
hatchhmm I was wrong they are getting selected the same...15:12
hatchoh I don't know if there is one15:12
hatchlookin15:12
kadams54If not, I can create one15:13
hatchnow there is15:13
kadams54guihelp: anyone know what the diff is between the agent_state_info and agent_state_data fields on a unit?15:14
hatchahh now I see the issue - css properties override the dom attributes with svg's15:15
hatchkadams54: it might be left overs from the pyjuju > juju-core conversion15:15
hatchwhy u ask?15:15
kadams54I'd grabbed a card from the maintenance bugs. The GUI is falling over (uncaught exception) when dealing with endpoint errors.15:16
hatchoh - no reproduction steps15:17
hatchhah15:17
kadams54The code currently checks unit.agent_state_data when, at least in this situation, that field is not set. From reading code comments, it seems like it should actually check unit.agent_state_info.15:17
hatchI don't think that's the case15:18
hatchwithout repro steps how are we to know if the bug is fixed?15:18
hatchI'd reply asking for steps on repro15:18
rick_h_hatch: it's not that simple15:19
kadams54That's fine, but there's enough info that I can write a test to reproduce the error condition.15:19
rick_h_hatch: that bug was from a running env without real steps. There was something when a unit was removed was the comment15:19
rick_h_It'll be a 'try to catch this known error by being more defensive'15:19
hatchwell it appears that there was a failure with a unit being removed causing it's agent data to be cleared out15:19
hatchthat shouldn't happen - so the issue is somewhere up the stack15:19
rick_h_hatch: right, and that broke the gui15:19
kadams54agent_state_info was still set15:20
rick_h_hatch: sure, juju probably did something bad15:20
kadams54We could have looked in there to see that there was an error in the relation15:20
rick_h_but we need to try not to break if we can help it.15:20
kadams54Which is what this code is trying to do15:20
hatchwhat I'm concerned about is just covering over the issue instead of resolving the root cause15:21
rick_h_hatch: understood, but it's not a simple reprdocing issue and there was no work around to help debug further15:21
kadams54*Our* issue is bad error handling.15:21
kadams54We can address that, which may help in uncovering/addressing the root cause.15:22
rick_h_+115:22
hatchsure - but lets step back through the sequence of events which would have caused agent_state_data to be undefined 15:22
kadams54So I'm reasonably confident that 1) I can write a unit test that reproduces the error condition and will allow us to say that the bug is fixed and 2) that we ought to be checking both agent_state_data AND agent_state_info fields for the name of the relation.15:22
rick_h_hatch: sure, walk the code and see what could have emptied it15:23
hatchwhat I'd first like to do is figure out the difference between info and data15:23
hatchI am pretty sure that data is the new field added in juju-core15:23
hatchfor things like relation issues and the like15:23
kadams54Except in this case data isn't there. And info is. And info has the relation issue reported in it.15:24
hatchright15:25
hatchbut they were different formats15:25
hatchdata was added (I believe) to give us more detailed easier to parse information about the units15:25
kadams54Which is great, if it's there.15:25
kadams54What I'm saying is that our error handling code ought to check data, and if it's not there, fall back to info.15:26
kadams54Instead of just making assumptions that data will always be there.15:26
hatchthat's fine to do, but before you do that first understand what info and data are and why data was removed when info wasn't15:26
kadams54I don't think that's necessary to write good error handling code.15:26
kadams54I think it would be good as a follow-up task.15:27
hatchso you know that info contains the exact same information as data is checking for?15:28
kadams54But good error handling code ought not make any assumptions. Check data first, then info, and if neither is there, do the best you can… but don't trigger a null error.15:28
kadams54unit.agent_state_data.hook.indexOf(endpoint[1].name + '-' + 'relation') === 0;15:28
kadams54It's checking to see if the relation name is in the hook15:28
kadams54We already know agent_state is "error"15:28
kadams54We also know, from juju status, that this is what was in info: 'hook failed: "homer-relation-joined"'15:29
kadams54So if that bit of code had just checked for the relation name in both fields (in a manner that didn't assume either field existed), it would've worked fine.15:29
hatchright - but there was a reason why we didn't use that and instead added the data attribute15:33
hatchI'm just saying - do all the error checking you want, but make sure you understand why data was no longer available 15:33
* hatch pinging Makyo hatch to Makyo, calling all Makyo's15:34
kadams54hatch: as best I can tell, we don't directly set or clear data in our code, which means that it was likely cleared/not set in juju-core.15:35
hatchok if that's the case then we need to file a bug with juju-core15:35
hatchit's removing the data prematurely 15:36
kadams54I agree, but we also need to not fall down when juju-core does something wrong.15:36
hatchwe just need to pop this image up http://i0.kym-cdn.com/photos/images/newsfeed/000/774/489/829.jpg15:38
kadams54:-)15:40
hatchok I'm going to ignore the not fading ghost services thing and get what I have ready to land - getting ghost services to fade/hide requires changing the d3 fade bits to use css instead15:43
hatch^ rick_h_15:43
hatchI fixed it so that it no longer throws an error, but it still doesn't fade/hide (ghosts)15:43
rick_h_hatch: rgr15:44
hatchfollow-up can do that stuff - but got to get this thing landed so it can be qa'd really hard by peeps :)15:44
rick_h_:)15:45
rick_h_jujugui call in 10 kanban please15:51
rick_h_Makyo: call16:00
rick_h_jcsackett: call16:01
kadams54rogpeppe, fabrice: that's interesting about the lack of options. I'm always hearing about how Europeans have more options because they don't have the duopoly we have here. In the US, for the most part, you can get your internet from the phone company or the cable company (if you can get it at all). There's very little competition.16:18
fabricesame here except in big towns16:18
rogpeppekadams54: i have provider options but the only connectivity is copper around here16:19
rogpeppekadams54: http://www.speedtest.net/my-result/388335513616:19
fabricekadams54: I have a few provider but they all go to the same physical lines16:19
rogpeppehttp://www.speedtest.net/result/3883355136.png16:19
fabricekadams54: tehy don't bring a lot of different cable to individual house in France16:19
kadams54rogpeppe: Yeah, copper is also the only option for a lot of places in the US. Not sure if fiber would be an option where I live, but it's moot because I already know it's out of my price range.16:20
rogpeppethat is quite a bit crapper than usual16:20
* rogpeppe goes to complain to the ISP16:20
fabricekadams54: but if I was on fiber it will be the same price 30 euros16:20
hatchkadams54: did I mention fiber is cheaper than copper here? ;)16:21
hatch(because it damn well should be)16:21
kadams54hatch: yeah, I kinda hate you.16:21
kadams54Every time you complain about the fiber being put in.16:21
hatchwell it's slow as crap right now 16:21
hatch600kbps16:21
hatch:P16:21
hatchthey say they are fixing it, but I'm just glad they aren't digging in my yard anymore16:22
hatchI am actualy surprised that more places don't have crown owned telco's16:22
hatchcrown being govt (not sure if that terminology crosses borders) :)16:23
kadams54Why's that?16:23
kadams54As an American, the only thing worse (to me) than the current duopoly would be a government-owned monopoly.16:24
hatchbecause a crown corp can run at a low margin because it's goal is to provide a quality service, not fatten the wallets of some billionares 16:24
hatchso (in theory) you would get better service for less $16:24
kadams54You have a high opinion of the ethics of bureaucrats and politicians.16:25
kadams54;-)16:25
hatchour telco is run as it's own company (owned by the govt)16:25
hatchand it's hugely profitable16:25
hatchand we have 2 other competitors here16:25
hatchwhich basically means the 'big corps' are screwing everyone16:25
hatchbecause this is proof that you can provide a quality service with low population over large distances16:26
hatchI think we barely have 1M people 16:26
* kadams54 scratches his head.16:28
kadams54I like how you say everyone's being screwed but then turn around and say "quality service" in the next statement :-)16:28
Makyohatch, standup?16:28
hatchright - I am not on a big corp telco16:29
hatchMakyo: sure joining16:29
rogpeppeinteresting, it might bit my wi-fi playing up. i tried plugging in directly and got a much better result http://www.speedtest.net/result/3883389667.png16:32
kadams54wow, indeed16:32
kadams54Though that up is still painful16:32
rogpeppeit's supposed to be 802.11n too.16:32
kadams54You know what that means…16:33
kadams54Time to go get an 802.11ac access point :-)16:33
rogpeppethere's definitely something playing up in one of my ether switches recently - one my two wi-fi networks refuses to a NAS box in the attic that's attached to the other16:33
hatchMakyo: so that got it to work, unfortunately it exposed another bug :/ lol16:46
Makyohatch, sigh, programming 9.916:46
hatchMakyo: I don't understand your new-age-emoji16:48
hatchwhat ever happened to the classics???????16:49
MakyoIt's eye-rolling.  Come on :P16:49
hatchreally??16:49
hatchI thought it was crying16:49
MakyoYeah, like the . is the nose and the 9s are the eyes16:49
hatchman I would suck as a teen now16:49
Makyo9.616:49
MakyoHahaha16:49
hatchstoned16:49
hatchthat one is stoned right?16:49
MakyoHaha, sure :)16:49
hatchhenceforth be known as The Denver16:50
MakyoWhich makes a "Denver omelet" kind of spectacular16:50
hatchhaha16:51
hatchkadams54: after merging in develop again I'm having issues with the unhighlight event order of events for making sureonly one thing can be highlighted at a time17:23
hatchI think it will need to be changed to work as a method instead of an event - or the event will need to carry with it the token that it's supposed to skip17:24
hatchI swear this code never ends17:24
hatchit appears to only be out of sync with ghost services?!? 17:25
hatchyeah - looks like the time it takes to parse the service list is enough to cause the events to get out of order17:26
kadams54hatch: I'd like to try a patch17:35
kadams54hatch: http://pastie.org/private/spwbpol1p5aqbjovclha17:36
kadams54That will eliminate all of the unecessary events.17:36
hatchkadams54: cool Ill give it a go18:01
hatchthx18:01
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
kadams54hatch: did that patch help?18:35
hatchnot sure - had started lunch, broke for a qa, now lunching again :)18:35
Makyojujugui tiny branch for review/qa https://github.com/juju/juju-gui/pull/63918:50
kadams54Makyo: looking18:50
kadams54Makyo: looks good18:56
hatchkadams54: unfortunately that patch didn't work - the service highlights but the token unhighlights leaving the service highlighted19:23
hatchvery odd19:23
kadams54OK… give me a few minutes and then maybe we can pair?19:23
hatchI was just going to leave it until I can get this branch landed19:25
hatchneed to get this branch in then we can follow it up with fixes 19:26
hatchget people using it and such19:26
kadams54Yeah, that works too19:27
kadams54Can you be sure to include that patch in your branch?19:27
kadams54Even if it doesn't address this issue, it still needs to be in there.19:27
* Makyo zoom to appointment, back in a bit19:30
hatchyep can do19:30
kadams54jujugui: looking for reviews on https://github.com/juju/juju-gui/pull/640 - not sure how possible QA is.19:36
kadams54hatch: thanks19:36
hatchwell THAT was a violent crash19:51
kadams54Eh?19:53
hatchvm took down the whole computer19:54
=== kadams54 is now known as kadams54-away
hatchhttp://www.codingame.com/home/platinum-rift coding challenge battle heh20:50
hatchmhall119: hey can employees of Canonical participate in the scopes callenge? 20:58
mhall119hatch: not this time, no21:02
hatchmhall119: booo21:03
mhall119hatch: but don't let that stop you from writing a scope :)21:03
hatchhaha21:03
hatchI just wish it opened faster21:03
hatchMakyo: I'm investigating the outline issue you noticed. turns out something was changed in this branch that's causing this line to not work21:15
hatchcurr_node.attr({'xlink:href': new_href});21:15
hatchnew_href is the proper path but the icon isn't being updated21:15
hatchoh I think I found it21:18
hatchMakyo:  d3 question https://github.com/hatched/juju-gui/blob/canvas-fade/app/views/topology/service.js#L149421:28
hatchI need to determine while looping through these selections what to set the icon to21:29
hatchso I was thinking selection.each(function(d) ... ) buuut it doesn't look like I can get from the object 'd' to the element to set it 21:31
hatchI'm sure I'm missing something obvious though21:31
hatchohhh `this` is the element21:32
hatchI knew it was something obvious :)21:32
hatchselection.each(function(d) { d3.select(this).select('.service-block-image'); });21:34
huwshimiMorning22:02
hatchmornin!22:02
huwshimihatch: Hey :)22:03
=== kadams54-away is now known as kadams54
hatchjeesh playing wakamole with these tests22:15
hatchI've literally had 5 failing tets for 4 hours and been fixing them constantly 22:16
=== kadams54 is now known as kadams54-away
* Makyo returns. 22:20
MakyoProblem solved, hatch ?22:20
hatchyeah that one was 2 problems ago22:21
hatch:/22:21
hatchthese d3 tests use so many kludges that it's trying to figure out wth is going on first22:21
MakyoYeah :/22:21
hatchcan a subordinate relation not go bad?22:23
hatchright now I'm working on https://github.com/juju/juju-gui/blob/develop/test/test_environment_view.js#L116522:24
hatchthis is failing because iRemainUnchanged isn't in the path22:24
hatchbut the path is correct without that22:25
hatchso I think that this test is just wrong22:25
hatchbut I am not sure what it's actually testing :/22:25
hatchMakyo: maybe you can shed some light on this one ^22:25
hatchMakyo: it was actually you who added it in response to some review comments c858ac0222:31
hatchhttps://github.com/juju/juju-gui/commit/c858ac0222:32
hatchnot entirely sure why that change was made22:33
hatchhttps://github.com/juju/juju-gui/commit/f37d4787a1675d13e9dc4cc4cd42e206b04a9c6b22:33
hatchnot sure how to get to the PR from there (unless this was a reitveld one) ?22:34
hatchafter a bunch of testing it doesn't appear to be necessary any longer22:39
hatchremoving22:39
hatchholy I'm now down to 4 tests failing lol22:45
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
=== kadams54 is now known as kadams54-away
=== kadams54-away is now known as kadams54
kadams54jujugui: still looking for reviews on https://github.com/juju/juju-gui/pull/64022:57
MakyoWooo~22:58

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