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

=== gary_poster is now known as gary_poster|away
frankbanhazmat: did you have a chance to take a look at https://code.launchpad.net/~hazmat/juju-deployer/refactor-placement-and-validate-feedback/+merge/195903 ?12:06
rick_h__morning frankban 12:15
frankbanhi rick_h__ 12:15
rick_h__frankban: free for a hangout in a second? 12:19
frankbanrick_h__: sure12:19
rick_h__frankban: https://plus.google.com/hangouts/_/76cpi22pojjntaagcr9vbpnl0s?authuser=1&hl=en12:20
=== gary_poster|away is now known as gary_poster
gary_posterrick_h__, re: quickstart review and your comments, I think both you and frankban know that I generally offer my suggestions as only suggestions.  If that's only true in my imagination, please let me know. ;-)  Anyway, I do think that it's very much worth exploring significantly reducing OOP.  Go, Scala, Clojure, and even books like Functional JavaScript (http://shop.oreilly.com/product/0636920028857.do) all are goin13:17
gary_posterg in that direction to varying degrees.  All of those examples except Go are further advocating functional paradigms as a way to simplify reasoning about code.  I've been reading and playing with a functional style for years on my own time now, and I really think there's value to it.  In this particular example, re-introducing some OOP now that the basic pattern has been established won't kill kittens, as benji woul13:17
gary_posterd say.  If that's where the team wants to take stuff, cool.  I can be the crazy guy muttering in the corner. :-)13:17
* benji watches the world-wide kitten-count as it holds steady.13:18
gary_posterlol13:18
gary_posterIn other news YAY! jujucharms apparently is no longer borked!!13:21
rick_h__gary_poster: yea, I was just tossing my opinion reading through things. I talked to frankban about it. I had no background to it, but read the MP as "provide model layer" and it required tracking 3 different dicts of data. I was missing the abstraction/simplification. I tend to think of models as hiding some implmentation details and I had to know in my head the implementation more than I was expecting based on my reading of th13:22
gary_posterrick_h__, output was cut off after "I had to know in my head the implementation more than I was expecting based on my reading of th"13:23
rick_h__bah13:23
frankbangary_poster: we had a call this morning with rick_h__, we agreed on proceeding with the functional approach and see how it works. It should be easy to introduce some OOP/higher abstraction if we then find the view code to be too much ugly. As rick_h__ suggested, I'll change some name and above all I will try to get rid of the envs_meta datastructure, that can be retrieved directly by the functions that require it13:24
frankban (e.g. normalize/validate). 13:24
rick_h__gary_poster: https://pastebin.canonical.com/101724/plain/13:25
gary_posterproceeding for now: cool.  Agreed it will be easy to add higher abstraction if desired (I'd argue that the fact that we agree it will be easy is suggestive that the current approach does have at least some aspects of simplicity). global envs_meta: not my preference, but cool if that's where we want to go.13:27
rick_h__gary_poster: yes, it's simple once you read the large comment blocks to understand what data ends up where. I just found the 'api' created as a dev a little more manual than I was expecting. 13:28
rick_h__it's fine and I LGTM'd, just was curious to discuss it. I didn't know the backstory of your pre-imp when I did the review13:28
gary_posterTo be clear, hidden envs_meta is not my preference because (1) you have to know that there's a data structure guiding the behavior, while the current approach makes that quite explicit (maybe better names would help); and (2) testing the functions means you have to either stub the global data source or actually test the effect of the data source.13:31
frankbangary_poster: interesting. 1) makes sense, people reading the code immediately understand that envs_meta is something they have to deal with. and maybe some of the confusion is generated by the names, in which case... ideas for better names? :-)13:38
frankbangary_poster: envs_meta will include at least two pieces of information: the list of fields (welcome back OO) and a description for each provider type13:39
gary_posterrick_h__, I'm confident that someone with more functional experience would have some beautiful refactoring suggestions to offer.  Similarly, I think this point from your pastebin has merit: "Go has interfaces/types to help provide mental mapping of what to expect within the app and keeping track of 3 diff dicts didn't strike me as aiding in simplifying the model of what was going on."  Some Clojure programmers would13:40
gary_poster disagree with you, I think, but others have expressed something like "ok, we made everything data, and now it's super easy to see how everything flows through the system, but harder to see what's flowing."  IMHO (I usually don't add the H because I'm already acknowledging that it is an O, but in this case I'm aslo acknowledging that I don't have as much experience here as I would like, though I have a decent amount13:40
gary_poster of reading) that can very often be addressed by having good names and good keys in the data structure.  That's most of what an object provides here anyway--and in fact, in a dynamically-typed language like Python, arguably that's almost all of what it provides.13:40
gary_posterfrankban, yeah cool, lemme go look and see if I have any name ideas.13:40
frankbangary_poster: thanks13:41
rick_h__gary_poster: yea, that fits what my thought process was. It was 'easy' but not 'simple' since it moved some complexity to tracking more parts. 13:41
gary_posterrick_h__, have you ever seen http://www.infoq.com/presentations/Simple-Made-Easy ?13:43
rick_h__gary_poster: yes, I think I watched that a while ago. 13:44
gary_posterrick_h__, right.  by his definitions, I think maybe we've done a decent job with simple, but you're arguing that we haven't managed easy.  probably unimportant semantics.13:45
gary_posterI mean13:46
gary_posterunimportant whether we say simple or easy: I understand your objection, whichever the word we use13:46
rick_h__sorry, yea I think it's flipped here. I tend to think "It's easy to just expose your database as your api, it's hard to make the api simple for people to use to perform tasks"13:46
gary_posterfunctional programming precisely argues that you shoudl be manipulating your data13:47
gary_posterI think13:47
gary_posterso if I'm right13:47
gary_posterthis is just a mindset difference13:48
rick_h__yea13:48
frankbanrick_h__, gary_poster : IMHO there is only one more piece of information you have to deal with with this functional approach (envs_meta). env_data is an environment (i.e. the instance. __dict__ in a OO approach), envs_dict is the YAML, and in a way or the other you have to deal with it. I think the effort here was to give developers an unsurprising datastructure and not an OO API13:49
gary_poster(I agree, but that's not surprising :-)13:50
rick_h__frankban: yes, that's cool. I was just not going into the review thinking "Let's do this in a functional approach and take this different mindset"13:50
rick_h__I'm not completely against these things, just that my mindset during review was "Let's providel models (and maybe I think too SQL Models off the bat) for dealing with envs"13:51
rick_h__and that implies, in my mindset, an api, or set of abstractions on the idea of an env from juju13:51
frankbanrick_h__: yeah, sorry for the missing info in the MP description, and as I mentioned to you, the "alchemy" models pattern was my first approach as well13:53
rick_h__frankban: cool, yea carry on! :) Just leave the comments since they made it reasonable. 13:54
gary_posterfrankban, rushing to call (late) but shared ideas in rv14:02
gary_posteroh bah14:03
gary_posternevermind14:03
gary_postercall with mramm cancelled :-/14:03
frankbangary_poster: cool thanks, so in your suggestion env_type_db is envs_meta and you introduced a new get_env_metadata function to get the metadata for that env type, right?14:07
gary_posterfrankban, exactly.14:07
gary_posterif you were doing this a lot, you could easily compose this with a partial.14:08
gary_posterimport functools14:08
gary_posterget_environment = functools.partial(get_env_data, env_db)14:08
gary_posterget_metadata = functools.partial(get_env_metadata, env_type_db)14:08
frankbangary_poster: sounds good14:11
gary_postercool14:11
gary_posterhatch, did you take a look at "Chosen Implementation" in https://docs.google.com/a/canonical.com/document/d/1TxnOCLPDqG6y3kCzmUGIkDr0tywXk1XQnHx7G6gO5tI/edit?disco=AAAAAHiLwwE# ?  It looks good to me, but I'd appreciate your review14:15
hatchgary_poster yeah he told me about it last night, just reading through the doc now14:16
gary_postercool14:16
gary_posterabentley's reply to the charm download metric thread falls under the "bummer" category :-)14:25
abentleygary_poster: Sorry :-(14:26
gary_posterabentley, never apologize for the truth, or something, yeah? :-)14:27
gary_posterIOW, not your fault, but it is a bummer14:27
abentleygary_poster: Sorry for inflating the numbers in the first place.14:27
benjiwe have a mechanism to not count certain charmstore downloads, we should probably make use of it for CI downloads14:27
gary_posteryeah14:27
gary_posterwe have enough of that going on from different quarters that it would be probably wise to build generically14:28
gary_posterbenji, what is that mechanism?  is it in the charm store or in charmworld?  IIUC charm store is the sorce of truth here14:28
benjiI'm pretty sure the store has a "don't count this download" option.14:29
gary_posterbenji, cool.  we ought to use that for our own tests as well14:30
gary_posterthough that may equally be a bummer :-P14:30
hatchyay odd hanging bug when loading the GUI is fixed14:38
hatchhow weird was that one :/14:38
gary_posteryeah14:39
gary_postermakes sense in retrospect14:39
gary_posteras is often the case14:39
hatchwell a 1s timeout is crazy long though heh14:40
frankbangary_poster: https://codereview.appspot.com/39380043/diff2/20001:40001/quickstart/models/envs.py14:40
gary_posterhatch, you tackling huw's sticky header branch per the call last night, or should we make a call for help?14:40
gary_posterlooking14:40
hatchgary_poster well is his last few commits in the PR where he is leaving off? 14:41
hatchI can get to it after my current branch of rewriting fullscreen > sidebar 14:41
hatchjust doing the tests now14:41
gary_posterhatch, not exactly super clear, but that was my assumption, since that's what we agreed yesterday on the call14:41
gary_posterfrankban, looks pretty to me. you like it?14:43
rick_h__gary_poster: if you get a sec can you peek at https://github.com/juju/juju-gui/pull/10 and see if that helps with the process/notes.14:45
gary_posteron it14:45
frankbangary_poster: yes I do, because the resulting functions should be very short and simple, but this assumption can be confirmed only by my next branch14:46
gary_posterfrankban, cool. good luck.:-)14:46
hatchrick_h__ so I've been using a slightly different flow that you have outlined there14:47
rick_h__hatch: that's cool. Using your tool?14:48
hatchafter I've added the upstream I go into develop  then `git fetch upstream`14:48
hatchthen branch from develop on my machine14:48
frankban:-) next branch with tail-recursion generated metaclasses, so that everyone is (un)happy 14:48
rick_h__hatch: upstream is your remote for the 'juju' repo?14:48
hatchoh you put the wrong repo in the docs heh14:49
hatchgit remote add juju git@github.com:juju/jenkins-github-lander.git14:49
rick_h__hatch: bah, thanks for the catch14:49
hatchso I add the juju repo there, then add it as the upstream for my local develop14:49
hatchthen in my local forked develop branch I `fetch upstream` which pulls in the updates14:49
hatchthen I branch from my local develop14:49
hatchthe outcome is the same just a different sequence I suppose14:50
rick_h__hatch: right, but that's the example same steps from what I can tell. Just /juju/upstream 14:50
hatchoh I thought you had it merging upstream into the new branch not the local develop14:50
hatchmaybe I misread14:51
rick_h__hatch: no, it pulls upstream into develop and then forks from develop to a feature branch14:51
rick_h__at least that's what it's supposed to say, /me re-reads14:51
hatchrick_h__ oh the docs are missing the fetch I think14:52
rick_h__hatch: ah, well I have pull vs fetch14:53
rick_h__http://stackoverflow.com/questions/292357/whats-the-difference-between-git-pull-and-git-fetch14:53
hatchOHHHH now I see why I was so confused....you called `upstream` `juju`14:54
rick_h__hatch: right14:54
hatchclearly I need to have my morning coffee haha14:54
rick_h__hatch: I went with teh clarity that this was the "juju repo"14:54
rick_h__if upstream is more clean then I can change it. 14:55
rick_h__but juju was "definitely not mine" where upstream could be read as "you mean my branch up on github right?"14:55
rick_h__which is a fork of juju14:55
hatchpersonally I think of 'upstream' because it's a direct upstream from our fork not a secondary repo - but I could see the confusion14:55
hatchbecause you -can- add other unrelated remotes 14:56
rick_h__k, yea I mean you can call it 'borky' or whatever you want :)14:56
hatchright lol14:56
rick_h__hatch: right, but there's only one 'juju' remote. The github/juju/ fork14:56
hatchyeah14:56
rick_h__anyway, tomato...tomato...crap that doesn't work so well in typing :)14:56
hatchhaha14:56
hatchtomaeto tomaato14:57
rick_h__man, I have to say, I'm loving having my tab complete in zsh all worky worky again. 14:58
rick_h__completing my aliases, branch names, remotes, wheeee14:58
rick_h__gary_poster: updated if you want to look again. 15:01
gary_posterrick_h__, cool.  still commenting on old one :-P  will refresh in a sec15:03
rick_h__gary_poster: oh sorry. 15:03
gary_posternp!15:03
hatchrick_h__ git rebase; git push -f :P15:05
* gary_poster proposes github :+1: == LGTM15:14
gary_posterBecause the thumb is so cute.15:14
hatchlol15:14
rick_h__hah15:15
hatchonly if we can use the pile of poo one for -1 15:15
gary_posterheh, they don't have an auto-image for that do they?15:16
hatch💩15:16
hatchin my font, it has eyes and a mouth15:16
hatchlol15:16
gary_posterah yes, that is :poop:15:17
hatchuse :poop:15:17
hatchright haha15:17
gary_posterwe can also use :water_buffalo:15:17
hatchhaha15:17
gary_posterhttp://www.emoji-cheat-sheet.com/15:17
gary_posterlol15:18
gary_posterCampfire also supports a few sounds15:18
gary_poster /play trombone15:18
* gary_poster assumes this is sad trombone15:18
hatch:shipit:15:18
hatchwe must use that, its like a hamster with a hat15:18
gary_posterlol15:19
gary_posterI could get behind that15:19
hatchhaha 15:20
hatch:shipit:15:20
gary_posteralthough I also like including things that make no sense and seem to require deep interpretation15:21
gary_poster:moyai:15:21
gary_postereaster island statue!  has t mean something important, right?15:21
hatchlol15:21
hatchok and if it's so bad that there is no saving it :ambulance: 15:22
gary_posterThat implies that paramedics might do something.  I was also thinking :recycle: could be the last word.15:22
hatchok and for "your code is slowly killing me" :smoking:15:23
gary_posterlol15:23
gary_poster:no_good: goes back into cute territory, as does :person_with_pouting_face:15:23
hatchhaha15:24
* gary_poster departs land of emoji with :nail_care:15:24
gary_posterrick_h__, oops, you kept my suggested comment explaining qa-pr's usage but dropped the example that it explained15:26
rick_h__gary_poster: hmm, looking15:27
rick_h__oh doh15:27
gary_posterLooks good rick_h__ .  Thank you very much!15:28
rick_h__thanks for the proofing and providing the 'average team expectation' 15:28
gary_posterperhaps below average for the git stuff :-P but happy to help :-)15:29
rick_h__well the "not in rick's automatic assuming head" space15:29
gary_posterheh15:30
rick_h__bah, quit sending your cold air down here hatch. It's too early for -19C wind chills. That's late Jan stuff. 15:32
hatchheh it's -22C here right now w/o a wind chill so it must be warming up on the way down lol15:33
* rick_h__ holds back comments about the hot air as it passes hatch's house :)15:33
rick_h__yea, only -12 here sans-wind chill15:34
gary_posterlol15:34
hatchhaha15:34
hatch-12 is still pretty cold if you aren't acclimatized for it15:35
bac+1 on your s/LGTM/+1 gary_poster15:41
* bac dude applying sealant on roof is messing with my internet15:41
gary_posterjujugui call in 1015:50
benjijujugui: I have a branch up for review at https://codereview.appspot.com/40190043/15:50
benjiit has nice pre-review comments and everything.15:51
gary_postereverything?  dancing reindeer?15:51
rick_h__benji: but how for do we mrege this then? 15:51
rick_h__merge that is15:51
benjirick_h__: you tell me15:51
gary_posterheh15:51
gary_posteruh oh15:51
benjiI don't know nuthing 'bout merging no github.15:51
bacrick_h__: ESL much?15:51
gary_posterlol15:52
rick_h__benji: by making a branch from your github fork and following the HACKING/process docs15:52
rick_h__bac: :)15:52
benjiI must have missed the memo on the new process.15:52
bacrick_h__: was there a git for bzr-tards doc?  i vaguely recall mention of one15:52
gary_posterrick_h__, how would he do the bzr conversion?  export the diff from bzr and repply?15:52
rick_h__benji: I'd be happy to walk you through the process15:52
gary_posterreapply?15:52
rick_h__gary_poster: yes, maybe generate a patch and then apply it to a feature branch from the git repo15:53
benjirick_h__: I'll give it a shot and see if I have any questions.15:53
rick_h__benji: rgr15:53
gary_posterbac, HACKING doc is now pretty close to that because of my requests and rick's help15:53
hatchjujugui lf a review/qa https://github.com/juju/juju-gui/pull/1115:53
bacgary_poster: ok, great15:53
hatchgary_poster I'll work on huw's branch right now 15:54
gary_posterthanks hatch15:54
rick_h__hatch: looking15:54
hatchthanks15:54
hatchhttp://www.git-tower.com/blog/git-cheat-sheet-detail/15:54
hatchjujugui ^ 15:55
frankbanhatch: cool thanks15:55
gary_posterI liked this one a lot15:56
gary_posterhttp://ndpsoftware.com/git-cheatsheet.html15:56
gary_posterkeeps the info down15:56
gary_posterand organizes it in a way that was helpful to me, at least15:57
hatchthat's pretty cool15:57
hatchshows the flow15:57
gary_posterright15:57
rick_h__that's interesting15:57
Makyojujugui call in 215:58
gary_posterty15:58
jcastrohey rick_h__16:09
rick_h__jcastro: yep16:09
jcastroare you still "in charge" of the rating page on manage.?16:09
rick_h__jcastro: not really, it's not on the immediate map atm so not sure who's 'in charge' of it16:10
jcastrook16:10
=== luca__ is now known as luca
jcastrogary_poster, https://bugs.launchpad.net/juju-gui/+bug/125787816:13
_mup_Bug #1257878: Revise charm feature bullets <juju-gui:New> <https://launchpad.net/bugs/1257878>16:13
jcastrocan we put that on some map somewhere?16:13
gary_posterjcastro, will look soon still on call16:19
jcastroyeah no rush.16:19
jcastroI will keep track of the ratings for each charm in the audit by hand for now, it's not a rush thing16:19
jcastroso like, doesn't need to be this year, but april would suck. :p16:19
gary_posterheh ack16:20
gary_posterbtw jcastro we are trying to treat your cloudfoundry issue--not coming up in searches on mjc--as urgent.  Is that correct from your perspective?  That is, it is very important that it be fixed within the next few days?16:31
gary_posterwe think it is probably urgent anyway because it makes us nervous :-P but just wanted to check in with you16:31
jcastrowell, considering we're in beta16:31
jcastroit's not that bad16:32
gary_posterok16:32
jcastroreally we're the only ones using bundles16:32
gary_posterok cool16:32
gary_posterwe'll hopefully get it fixed in a few days anyway16:32
gary_posterbenji, is this a trivial change? https://bugs.launchpad.net/juju-gui/+bug/1257878 .  AIUI we can simply trash the existing data on charm features, and then reset the schema to the given one16:33
_mup_Bug #1257878: Revise charm feature bullets <juju-gui:New> <https://launchpad.net/bugs/1257878>16:33
* benji looks16:33
gary_posterIIUC this is entirely in charmworld16:34
rick_h__gary_poster: benji we have to watch the form generation stuff. It expects a specific format and then a migratino to clear/reset the data in the charms themselves. 16:34
gary_postervague ack :-P16:35
benjigary_poster: it will at least be non-hurculean, it will likely be not too bad16:36
gary_posterbenji, heh ok.  I'll add that to the "high" list, jcastro.  Hopefully done before winter break16:36
hatchrick, does dolla-dolla-merge need to be the only thing in the message? 16:46
hatchrick_h__ ^16:46
hatchvery cool WestJet video https://www.youtube.com/watch?v=zIEIvi2MuEk16:56
gary_posterhatch, no it does not16:59
hatchjujugui 792 views so far of my chat with the YUI guys16:59
gary_postercool!16:59
hatchapparently that's double the most viewed other round table so far16:59
hatchand it's not even a week old haha17:00
bachatch: i was out last week when you did it.  url?17:00
rick_h__hatch: no, just in the message17:00
benjiooh, git status --porcelain where have you been all my last-20-minutes17:00
hatchbac http://www.youtube.com/watch?v=lJPdH8xmOWg17:01
jcastrohatch, hey this video is cool17:01
jcastroI am going to share it17:01
jcastrohatch, also. Pocket Trains. 17:02
hatchjcastro :) thanks!17:02
hatchlol!17:02
hatchstill playing that hey?17:02
hatchjcastro you must have all of the continents now?17:07
jcastrono, still in europe17:07
hatchwhaaa? How is that possible lol17:07
jcastroI am not travelling enough to be on my phone that often17:07
hatchohh haha17:07
hatchsomeone wake huw up17:53
rick_h__hatch: lol17:54
rick_h__call his butler for an early morning wake-up all?17:54
rick_h__"you need to get the president up, it's important"17:54
hatchyeah!17:54
hatchthere is some uncommented funkyness in the code which when I 'fix' it it breaks17:55
hatchso /me is confused17:56
MakyoOh man, this unit list thing is so broken :/19:12
dimiternhatch, fyi here's the CL with charm upload support https://codereview.appspot.com/40290044/19:13
hatchdimitern cool I'll take a peek19:13
hatchthanks19:13
hatchMakyo uh oh....details?19:13
dimiternhatch, i'll land it tomorrow though, i'm already +18h in today19:14
dimitern:)19:14
hatchhaha you go!, what time is it there?19:14
dimiternit's 8.14 pm and i started like 4.30 am19:15
hatchoh so that's why you were up when I was just going to bed :D19:15
Makyohatch, when we build up the categories of units, we're passing references to units into the lists; we then add category information to each unit.  When a unit is in multiple categories (as with landscape + running/etc), the category information is overwritten when it's added, since the unit is a reference, not a value.19:15
MakyoGoing to see about storing the unit as a member of an object along with the category information, rather than injecting it in like that.19:16
hatch*facepalm*19:16
rick_h__lol19:16
dimiternhatch, yep19:17
hatchI have to admit, huw's technique is pretty darn smart19:29
hatchnow if I could just figure out why it won't work on the search results19:29
* hatch shakes fist at rick_h__ for making them different views19:29
rick_h__hatch: huh? they share a common base. 19:30
rick_h__only difference is one has two containers and interesting has 319:30
rick_h__hatch: let me know if you need some eyeballs19:31
hatchright - they are separate views instead of the same view with different content19:31
hatchit's actually the 'home' button causing the issues19:32
hatchbut it's easier to blame the whole stack :P19:32
rick_h__ah, well yea the home button is a tacked on thing due to keeping state in order19:32
rick_h__hatch: branch up to peek at?19:33
hatchahh it's just fixing css stuff19:34
rick_h__selectors just a hair off?19:34
benjijujugui: after a little work and a break for lunch I have my branch up for review on github: https://github.com/juju/juju-gui/pull/1219:34
rick_h__benji: looking19:35
benjithanks19:35
hatchrick_h__ the odd positioning in the sidebar to make the scrollbars work is causing the calculations in the sticky headers to be way off when there is the home button19:35
rick_h__hatch: oh, yea, gotcha19:35
rick_h__hatch: so nothing to do with different views at all, it's with UX changes that are legit :P19:36
hatchrick_h__ except if they were a single view, it would be done already lol19:36
rick_h__carry on blaming something else19:36
hatchhaha19:36
rick_h__hatch: except that then it wouldn't work because it'd have this conditional home button thing to deal with19:36
hatchthat's fine - huw would have figured that out first :P19:36
rick_h__hah19:37
rick_h__benji: does the repeated setting of PYTHONPATH actually append? 19:37
rick_h__benji: I see it was that way before I guess, but I'd have assumed each would overwrite the others19:38
rick_h__bah, it's making a call on each one, ignore me19:38
benji:)19:39
rick_h__benji: LGTM with a note on the firefox dep. Ideally it could use phantom for that maybe?19:52
benjirick_h__: I replied about the firefox dependency.  Do those go to email?19:53
rick_h__benji: yes, and I replied again19:54
rick_h__:)19:54
benjiah, cool19:54
rick_h__hah, thanks benji, /me goes to re-uninstall firefox20:02
benji:)20:02
rick_h__I missed the updated commit coming in as I was looking at it20:03
hatchannnd fixed20:10
hatchI'm still going to wait to commit it until I can document some of these weird sections from huw20:11
MakyoAlright.  Down to 1.5s to open inspector with 2000 units, no delays in update..20:14
benjirick_h__: do I literally write "$$merge$$" as a comment on the pull request?20:15
rick_h__benji: yes20:15
rick_h__benji: anywhere in the comment will do20:15
* benji prepairs a wall of text with "$$merge$$" hidden in the middle.20:16
rick_h__:)20:16
hatchMakyo right on! 20:16
rick_h__if settings.get('jenkins.merge.trigger') in message: 20:16
hatchI'm very intersted to see the code now20:16
hatchoh Firefox you irritate me20:18
MakyoIt's the same filter, but on object attributes instead of DOM nodes, which I gather is the preferred way to filter; however, pushIntoUnitList now uses the unit as an attribute, rather than as the base object.  20:18
hatchahh20:29
hatchso was there something wrong with what I did? or was it just the way we were passing the data in did not allow it to work?20:29
MakyoYour solution was okay given the way the data was being passed in, but I think that structure was wrong for d3, and also wrong because of pass-by-reference.  Better to let the framework do what it's good at then try and force it to do something it's not.20:31
hatchtrue good point, thanks for making it work :)20:32
gary_posterMakyo, "no delays in update" is huge.  cool.21:03
MakyoYeah.  Now just to make tests work :T21:03
hatchcrap forgot to rebase before pushing21:08
hatchoh well, next time21:08
hatchjujugui lf review/qa on the refactor of huws sticky header branch https://github.com/juju/juju-gui/pull/13 21:10
hatchya know what....I'm going to try and rebase this...21:11
hatchyeah rebase isn't gona happen21:15
hatchto many intermixed commits :/21:15
gary_posterhatch, looking21:19
hatchthanks21:19
jcastrohey gary_poster21:46
jcastroso don't hate me, but I upgraded to trusty today21:46
gary_posterhey on call21:46
jcastroand all the good stuff in the PPA is missing on trusty, just FYI21:46
jcastrono worries, I like just typing in the channel, that way I can assume you are agreeing21:47
gary_posterlol21:47
gary_posterack21:47
hatchhaha21:47
gary_posterwill investigate21:47
jcastromarco just updated the charm tools PPA21:47
jcastroI figure, we'll have to do it anyway21:47
jcastroand also, FYI, we kicked off the charm audit today though it won't affect you21:47
jcastrobut you should start seeing updates to charms, READMEs, and a bunch of little things21:48
MakyoDogwalk, then pull request adventures.22:02
huwshimiMorning22:06
arosalesgary_poster, et all should I see a relation line between wordpress and nagios for a "juju-info" relation?22:08
gary_posterarosales, that's typically a subordinate22:08
arosalesI see a relation line for mysql and nagios for a "monitors" relation22:08
gary_posteryou see those by hovering over the wiggle thingon the subordinate22:09
gary_posteror by clicking on it22:09
arosalesgary_poster, it doesn't looks like its being deployed by the gui as a sub22:09
gary_posterarosales, I thought nrpe was the subordinate for that case?22:09
arosalesgary_poster, nrpe can be a sub to a service22:10
arosalesthat nagios can connect to, I think22:10
arosalesbut I don't see a clear way to make nagios a sub of wordpress, at least from the gui22:10
gary_posterarosales, I don't think you are supposed to.  I think you are supposed to make nrpe a sub of worspress and then connect nrpe to nagios22:11
gary_posterarosales, I have to go.  if you can confirm, then please file a bug and we will investigate.  AFAIK we are doing the right thing here, so please give me details if we are not22:12
gary_posterhatch, I ended up with calls :-(22:12
gary_posterand I have to go now22:12
hatchok no problem22:12
arosalesgary_poster, ok thanks22:12
arosalesI see nagios looks to be a sub of mysql, but it isn't displayed in the canvas . . .22:14
gary_posterhatch I was going to look at consider whether we should do any of the operations on headings in aggregate before doing the calculations.  a probably wrong hunch, but that's been necessary for correct calculations in the past.  Otherwise I like how you structured the code.  Please consider you and Huw as reviewers: if Huw approves what you've done and can qa and branch is < 400 then :+1: :-)22:14
hatchthanks, I'll take a look at your notes22:15
hatchhuwshimi here is the refactored branch https://github.com/juju/juju-gui/pull/1322:15
gary_posterarosales, nagios has a "monitors" relationship with mysql, not a subordinate22:16
hatchit's been cleaned up a bit but you'll notice that the functionality is still identical22:16
huwshimihatch: Thanks so much for taking that on!22:16
arosalesgary_poster, ack with mysql, but sub with wordpress22:16
arosaleswhich isn't shown in the canvas22:16
arosalesgary_poster, I'll let you go22:16
gary_posterok ttyl22:16
arosalesperhaps I can bother hatch or someone else willing to confirm.22:17
hatcharosales sorry I haven't been following....one sec22:17
arosaleshatch basically22:17
arosalesfrom the canvas22:17
arosalesjujucharms.com22:17
arosalesdrag in wordpress22:17
arosalesdrag in nagios22:17
arosalesrelate the two22:18
hatchok22:18
arosales~should~ I see a subordinate relationship between the two?22:18
arosalesright now I see nothing in chrome and firefox22:18
arosaleswondering what is the expected behavior22:18
hatchhmm that's a good questioin22:18
hatchgive me a minute here to take a look22:19
arosaleshatch, I would have expected to see the "squiggle-line" subordinate relation22:19
arosalesif in fact the relation between wordpress and nagios is a sub22:19
arosaleshatch, thanks22:19
hatchI'm going to agree with you that there should be 'some' type of relation line there22:21
hatchas far as the GUI can see it's related as a subordinate on juju-info22:21
hatchhowever I'm not sure if this is how nagios is supposed to work22:22
hatchbut I suppose that's beside this issue22:23
hatchthere 'should' be some indication that there is a relation there22:23
arosalesI am indeed may be using it incorrectly, but as you said from juju there is a valid relation between the two which I am not seeing22:23
arosaleshatch, are you saying I probably should not be able to build that relation?22:23
hatcharosales if you deploy nrpe-external-master and relate it to wordpress you will see the line when you hover over the little squiggle thing22:24
hatchwell you should be able to, but I'm not sure if it will actually work22:25
hatchI'm just looking at the charms metadata right now22:25
arosaleshatch, ok different scenerio22:26
arosaleshatch, https://jujucharms.com/sidebar/search/precise/nagios-4/?text=nagios#bws-readme22:26
hatchahh ok I see the issue22:26
arosalesin this case you can add a relation between an microblog (statusnet) and nagios22:26
arosalesper the readme22:26
arosales*but* the relation is not shown on the canvas22:26
hatchthe nagios charm doesn't specify the `scope` as `container` so we have no idea that it's a subordinate relation 22:27
arosalesI can inspect the service and se there is a relation, but that is the only way22:27
hatchso this is definitely a bug in the GUI22:27
hatchone which I'm not sure we have a UX story for however :)22:27
arosaleswhen I click on wordpress22:27
arosalesand I look at the relation to nagios22:27
hatchthe relation between wordpress and nagios is 'valid' but it's on juju-info which we don't show22:27
arosalesi see the scope as "container"22:27
arosalesinterface "juju-info"22:28
hatchit's not showing as a subordinate because nagios doesn't say its a subordinate22:28
hatchright....so actually....there are a few issues here22:28
hatch1) no relation line is showed because we don't show juju-info relations22:28
hatch2) nagios is connecting to wordpress using juju-info which is specified as a container scope....but this is not a subordinate relation22:29
hatchs/few/couple :)22:30
arosalesper 1) the relation line would be shown _if_ it were a sub correct?22:30
hatchright 22:30
arosaleshatch, note the statusnet and nagios have the same relationtype22:30
arosalesper the readme22:30
hatchso should we be showing juju-info relations?22:30
arosalesI guess that is the fundamental question22:31
arosalesthere is a relationship22:31
arosalesand it has to be made22:31
hatchI THINK the issue is with the nagios charm in this case22:31
hatchit's specifying a juju-info relationship for other nagios clients22:32
hatchand we are connecting wordpress to it22:32
arosalesI would think if someone linked up the service and it is shown in the inspector it should be represented somehow on the canvas22:32
hatchat least as far as I understand how this is supposed to operate22:32
arosaleshatch,  check the statusnet readme22:32
hatchchecking22:32
hatchstatusnet charms don't have a readme22:33
arosaleshatch, sorry the nagios readme references statusnet22:33
arosaleshttps://jujucharms.com/sidebar/search/precise/nagios-4/?text=nagios#bws-readme22:33
hatchok checking22:34
arosalesto connect it up to via a juju-info relation22:34
hatchit can only have a single juju-info relation22:35
hatchfunny those two lines lined up exactly....22:35
hatchheh anyways!22:35
arosalesok22:35
arosalesbut still not shown on the canvas 22:36
hatchif we are allowing the relation to be made we should be showing it22:36
hatchI'm not sure 'how' we want to show it though....22:36
hatchit IS a real relation I suppose22:36
hatchso that would be my guess22:36
arosalesif I just deploy statusnet22:37
arosalesand nagios22:37
arosalesand relate them22:37
hatchyou should see a line22:37
arosalesI see now indication on the canvas they are related22:37
hatchoh I don't22:37
hatchhaha22:37
arosalesonly via the inspector do I see an indication of a relation22:37
hatchoh s/now/no22:37
hatchright22:37
hatchwe should show a line22:38
arosalesor something to signal a relationship has been made22:38
hatchI THINK it's supposed to be nagios > nrpe > wordpress22:38
hatchbut that's not up to us as the tool22:38
hatchwe should just show what's happening and leave it up to the user to know not to relate things incorrectly22:39
hatchso to answer your question....yes this is a bug :)22:39
arosalesok22:39
hatchare you going to create the ticket or would you like me to?22:39
arosalesI can create it later tonight22:40
arosalesI was actually preping for a demo tonight on showing the bundle to our user group22:40
hatchohh, sorry :)22:40
arosalesover 100 folks planning on being there and I was wondering why I didn't see these relations.22:40
arosalesno worries I am probabaly just not connecting them up right ;-)22:41
arosalesall the other bits are there22:41
arosaleshatch, ping me if get the ticket created. If not  I will create one.22:41
hatchok sounds good - you probably want to deploy nrpe, relate it to wordpress (the squiggly thing will show the relation lines) and then relate nrpe to nagios22:42
hatchbut what do I know lol22:42
arosaleswe should update the nagios readme if that relation build between nagios and blog is indeed incorrect, or better recommend via nrpe22:44
arosaleshatch, thanks for the help.22:45
hatchno problem, anytime22:45
hatcharosales here is the bug https://bugs.launchpad.net/juju-gui/+bug/1259720 feel free to expand with any thoughts or feelings on the matter cc gary_poster 22:47
_mup_Bug #1259720: Services related on juju-info don't show relation lines <juju-gui:New> <https://launchpad.net/bugs/1259720>22:47
arosaleshatch, thanks22:49
hatchhuwshimi do you have IE on your new machine yet? for qaing the sticky header branch?22:52
huwshimihatch: Yep, just moved my vm over22:52
hatchcool, gota love that :)22:52
huwshimihatch: Is that ready for me to review now?22:58
hatchyep ready to go22:58
huwshimihatch: How do I get the branch for QA?22:59
hatchin your current repo type23:00
hatchgit checkout -b hatched-sticky-header-redux develop23:00
hatchthen23:00
hatchgit pull https://github.com/hatched/juju-gui.git sticky-header-redux23:00
hatchthen you are gtg23:00
hatchI gota take off for a bit23:01
hatchI'll check back in later23:01
huwshimithanks23:02
hatchback huwshimi were you able to get it pulled down?23:37
huwshimihatch: Yep, thanks!23:41

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