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

huwshimihatch: Any idea what is going on here? http://ci.jujugui.org:8080/job/juju-gui-merge/575/console00:00
hatchjust re-run it00:01
huwshimiok00:01
hatchassuming you have the conflicts fixed00:01
huwshimiyeah00:01
hatchhuwshimi looks like thse 2 landed well03:14
huwshimihatch: Yeah, I had to fix the tests and merge conflicts for both. I was prepared for that as all my branches are touching the same code03:18
hatchahh - well this mv is coming together quite nicely03:18
hatchI found a really simple way to do the new inspector tests heh03:19
hatchwell a simple way to conver it03:19
huwshimiAh nice!03:19
hatchyeah I'll put it up tomorrow03:20
huwshimiGreat03:20
hatchnow the card I've been working on is going to be quite interesting...03:20
hatchthe one where we delete the machine token before the delta comes in03:21
huwshimihatch: oh yeah, it'll be a nice change, but tricky to handle03:26
huwshimihatch: Any ideas how you'll do it?03:29
hatchheh still investigating....it's probably going to be a multi step process, the model will be updated with the appropriate data when juju sends it's ACK but then when the detla comes in, it swaps it then...03:31
hatchwell I'm out, have a good day03:36
=== uru_ is now known as urulama
rick_h__morning party people10:39
urulamarick_h__: morning10:42
frankbanrick_h__: morning10:55
* frankban lunches10:55
* urulama lunches11:46
bacahoy12:16
rick_h__welcome back bac12:18
bacyou too, though a day late12:19
rick_h__bac: spent 3hrs watching youtube videos on landscape photography for my yosemite trip12:23
rick_h__bac: watch out, here comes hdr I think, I don't have all the ND filter extra 10lbs of stuff on my lens gear :/12:24
bacfun12:24
bacwe took a day trip on friday and i took some crap fotos, but it was fun12:24
rick_h__party12:27
* urulama checks bac.photo ... no Yosemite :(12:29
bacjujugui: just had failures bootstrapping to ec2:us-west-2.  changed to us-east-1 and all was good.  ymmv.12:57
bacurulama: never been to yosemite.  :(12:58
=== lazyPower_ is now known as lazyPower
=== stokachu_ is now known as stokachu
=== mup_ is now known as mup
frankbanurulama, guihelp: I need two reviews for https://github.com/juju/charmstore/pull/75 (charmstore/golang). anyone available? thanks!14:20
urulamafrankban: be on it in 5min14:21
frankbanurulama: thanks14:21
hatchjujugui need one more review on huws branch https://github.com/juju/juju-gui/pull/50014:35
urulama_hatch: internal server error ...14:37
hatchhah hah haaaaaa14:37
rick_h__hatch: looking14:37
hatchthx14:42
hatchjujugui call in 1014:50
hatchjujugui call in 214:57
rick_h__jujugui call time antdillon urulama_ ^15:01
* bac trying...15:01
* bac reboots15:02
hatchMakyo:  https://github.com/juju/juju-gui/pull/50115:11
MakyoThanks15:11
hatchreally trivial, heh15:11
hatchjrwren: so they don't have overnight camp there? 15:14
hatchor do I have a different idea of camp :)15:15
jrwrenhatch: she is a little young for that. She would probably be fine.15:15
jrwrenhatch: no kids eh?15:15
jrwrenhatch: once kids get to elementary school, instead of going to day care all day in the summer, they go to day camps.15:15
jrwrenhatch: a lot of our kids friends are at day camp all day every day of all of summer vacation.15:15
rick_h__luca: ! the guys brought up something important15:16
jrwrenhatch: it makes for a very different childhood than I had. 15:16
rick_h__luca: how does one delete a unit on a machine/container?15:16
hatchjrwren:  nope no kids, one big d.i.n.k, here15:16
hatchahh yeah we don't have day camps, just day care for summer15:16
jrwrenhatch: stop, you'll make me jealous.15:16
hatchalthough I was different because I went to the lake for most of the summer15:16
hatchlol15:16
lucarick_h__: each unit has a destroy button found in a more menu15:17
rick_h__luca: ok, /me goes to look for that screenshot15:17
rick_h__luca: and anything on the inspector list for the units?15:17
hatchday camps actually sounds like a really great idea15:17
lucarick_h__: https://drive.google.com/file/d/0B7XG_QBXNwY1RXozODVyeU5QMUU/edit?usp=sharing15:17
lucarick_h__: thats right, at the moment scaling down can only be done manually15:18
rick_h__luca: that's destroy machine, but what about a single unit on that machine?15:19
lucarick_h__: it’s the same15:19
lucarick_h__: there should be a more menu associated with every unit available on hover15:20
lucarick_h__: inside that more menu you can find destrou15:20
lucarick_h__: destroy^15:20
rick_h__luca: oh? there's a more menu for every unit in a machine/container?15:20
* rick_h__ missed that15:20
lucarick_h__: I just check the states file and it’s missing from that…15:21
lucarick_h__: somewhere down the MV iterations Spencer and I have forgotten to include it in the states file15:21
rick_h__luca: ok, so we're not completely nuts to not have it 15:22
lucarick_h__: but we’ve had a destroy button on units since the button15:22
rick_h__luca: thanks 15:22
lucarick_h__: no worries15:22
lucarick_h__: I don’t have Spencer available to make a new mock-up though15:22
lucarick_h__: https://docs.google.com/a/canonical.com/file/d/0B7XG_QBXNwY1YjNQajhsMUNHOFE/edit15:22
rick_h__luca: all good15:22
rick_h__we can work it out15:22
lucarick_h__: ok, thanks15:23
rick_h__anything else in there besides the destroy?15:23
rick_h__luca: maybe we'd put the web view stuff in there if we get that feature in15:23
lucarick_h__: I was thinking of “View on the web”15:23
rick_h__right15:23
lucarick_h__: yeah15:23
rick_h__ok cool15:23
lucarick_h__: we’re in sync :P15:23
* rick_h__ is scared now15:23
lucarick_h__: lol15:23
kadams54jujugui: Sorry about missing standup. Lost my internet connection and then my phone tethering failed me, so ended up relocating.15:42
rick_h__kadams54: all good15:42
rick_h__kadams54: any notes on your current card?15:42
rick_h__kadams54: I wasn't sure what 'all classes' meant15:42
kadams54rick_h__: we need autodeploy functionality now in both the MachineViewPanelView and DeployerBar classes.15:43
rick_h__kadams54: right, and it's in the MV panel currently?15:43
rick_h__kadams54: at least the UX is there, /me hasn't tried it out15:43
kadams54rick_h__: Yup. Got that refactored into a class extension and all tests are passing, but there aren't any unit tests touching those methods specificially.15:44
hatchfrankban:  rick_h__ Makyo was there a reason why we originally went with removing ghost models of machines/containers/units instead of updating them on the delta to begin with? 15:44
kadams54rick_h__: So I'm writing up some new tests before landing it.15:44
rick_h__hatch: I can't recall any reason. Just easy? Maybe some connection point issue between the delta coming back?15:45
rick_h__kadams54: ok awesome thanks15:45
frankbanhatch: I don't remember: does the ghost model share the same id as the real one that will come?15:45
hatchfrankban:  no their id's will be different, but that doesn't necessarily mean we can't update it15:45
hatchI am just devising a plan and wasn't sure if there was some reason why we didn't do that originally 15:46
urulama_frankban: been on a call, continue your PR15:46
frankbanhatch: so are you planning to update the models in handlers.js?15:46
rick_h__hatch: I think the main thing is to make sure we don't couple too much stuff together doing that15:46
hatchso my plan (still to be determined if this will work) when juju responds with ACK we update the ghost model with the 'real' ids - then when the delta comes in, we search for the id supplied in the detla and update the model accordingly15:47
hatchright now the issue is that when juju sends the ACK we destroy the ghost model15:47
hatchso we don't have any UI until the delta comes in15:48
rick_h__right15:48
kadams54hatch: what card are you working on?15:48
rick_h__I think your plan seems sane 15:48
hatchkadams54:  in Project 115:49
kadams54hatch: yeah, this is the uncommitted state not being removed until we get the ACK, right?15:49
frankbanhatch: that would work fine, assuming we have the real id for each call at juju ACK time15:49
hatchfrankban:  right, do you know if that's the case? 15:49
hatchI am assuming so, but have no data to back that up yet15:49
frankbanhatch: no, we need to check, and it can be done easily by looking at go.js15:50
frankbanhatch: if that's the case, then +1 on your plan15:50
hatchgreat thanks all, I'll dig deeper15:50
kadams54hatch: just a heads up: this may impact the stuff I just landed in the onParentResults handler specified in lazyAddUnits.15:53
hatchkadams54: it shouldn't, this is all happening in the callback after the juju ACK so it's all one layer up from where that's happening15:55
hatchonParentResults is called well before this stuff15:55
kadams54hatch: cool15:55
* rick_h__ runs to get food stuffs15:55
hatchkadams54:  with that said, your changes makes this work properly though :)15:56
kadams54yay15:56
=== hatch__ is now known as hatch
hatchjujugui does anyone have any tricks to working on the gui in a real env? 16:06
frankbanhatch: you know mine, mostly for hacking. if you mean being able to have a branch in the lxc, then no, but I always wanted to investigate something like that16:07
frankbanhatch: anyway, mine is: juju set juju-gui juju-gui-debug=true juju-gui-console-enabled=true juju-gui-source="https://github.com/frankban/juju-gui.git BRANCHNAME"16:08
hatchfrankban:  well I want to work on the gui in the local env without having to push it up all the time16:08
hatchfrankban:  using juju-gui-debug=true does that allow me to modify the source in the charm and have it reflected in the real env?16:08
frankbanhatch: and then hack on /var/lib/juju-gui/juju-gui/build-debug (or something like that)16:09
hatchok I'll try that thanks16:09
hatchhuh it appears that local isnt' working for me, it's not spinning up an lxc instance16:16
hatch1.20.116:16
hatchhmmmmmmmmm16:17
rick_h__hatch: any luck?16:29
hatchrick_h__:  yeah got it deployed, changes in the dir frankban mentioned don't appear to show up though16:30
frankbanhatch: did config-changed complete its execution? are you in the build-debug directory? are you refreshing your browser hard?16:32
hatchfrankban:  yeah I'm on the develop branch, and modifying in the same dir you mentioned16:35
hatchno amount of refreshes seem to help16:35
frankbanhatch: what's the content of /etc/init/guiserver.conf?16:36
hatch--guiroot="/var/lib/juju-gui/juju-gui/build-debug" \16:37
hatchassuming that's the line you're interested16:37
hatchthat's where I'm modifying but nothings changing in the browser....16:37
frankbanhatch: yes, so those are the file served16:37
frankbanbeing served16:37
frankbanhatch: in var/log/upstart/guiserver.log you should see what files are served for each request16:39
hatchfrankban:  yeah so it turns out it was a really bad cache16:40
hatch:/ sorry16:41
frankbanhatch: np16:41
hatchthe good news is that the machine view actually creates machines16:41
hatch:)16:41
frankbanhatch: :-) I supposed that, shouldn't I ?16:42
hatchhaha - you never know :)16:42
hatchlooks like the callbacks are passed the new 'real' ids16:42
hatchso this will work16:42
hatchit's only passed the new id though16:43
hatchbut that's enough16:43
hatch*sigh* one of my thunderbolt ports is loose...apple quality....16:46
marcoceppiwho owns charmworld? is it you guys or is it still sinzui & co>17:52
rick_h__marcoceppi: it's us still17:53
rick_h__marcoceppi: what's up?17:53
marcoceppirick_h__: nm, just been building a new review queue, doesn't affect you guys much but I'll cc your list as a heads up17:53
rick_h__marcoceppi: cool thanks. 17:53
rick_h__marcoceppi: also, we'd love to chat. I'm not sure how much jcastro/arosales told you about our upcoming plans to deprecate charmworld17:54
marcoceppiI got the low down from you guys last sprint17:54
marcoceppiwhich is why I started the new review queue17:54
rick_h__marcoceppi: so would like to chat with you and tvansteenburgh around a migration path from charmworldlib in the nearish future17:54
rick_h__marcoceppi: cool17:54
marcoceppirick_h__: yeah, that too17:54
rick_h__marcoceppi: and curious how the review queue stuff is to work in a 'juju publish' world (sans LP)17:55
hatchoo new review queue nice17:55
marcoceppirick_h__: I'm building a login system using Ubuntu/Launchpad SSO, when taht happens you'll just submit a new request for review there and we'll build plugins to map wherethe soruce for that charm is held to monitor merge req17:56
marcoceppibut it's going to need some thinking/work17:56
marcoceppialready building in gh support to monitor the mirrors17:56
rick_h__marcoceppi: yea, that's what we need to sync up on. In a publish world there's no promise of vcs info there17:56
marcoceppiyeah, now that it's sinking in, I can already see a glaring hole-in-the-head for how we maintain promulgated charms :)17:57
rick_h__marcoceppi: yea, we want to sync up and solve those issues ahead of the game if possible17:58
* marcoceppi nods17:59
marcoceppiwant to do that sometime this week?17:59
rick_h__marcoceppi: sounds good, /me checks calendar17:59
rick_h__marcoceppi: pretty open Tues/Wed or Friday here17:59
marcoceppiTues work well for me17:59
rick_h__marcoceppi: k, added a meeting with you and tim18:00
hatchrick_h__:  I sent an email to luca and peeps, I forgot to add that I think it should be pre-MV 1.0, thoughts?18:19
rick_h__hatch: looking18:20
rick_h__hatch: yea, there's some thoughts on onboarding from back when MV was designed. 18:21
rick_h__hatch: and it's a known thing they're looking at as the notifications are too transient and we talked about them during the sprint18:21
rick_h__hatch: so I don't think your email is a surprise or anything. 18:22
hatchahh ok good - I was just sitting there, going "umm this change should be instant" heh18:22
rick_h__hatch: and it's something to get right before launch for sure18:22
hatchthen "oh duh"18:22
hatchTIL getById uses an internal id map which doesn't get updated in lazy model lists when you update the id in the model and there are no util methods to do so18:38
rick_h__heh, good lesson to know :)18:38
hatchlooks like I'll have to write a util method to fix that18:39
hatchtime to patch YUI18:39
hatchI was stepping through the delta stuff going ....umm why is this id not being picked up by getById.... heh18:40
hatchok taking lunch bbl18:40
urulamagood night, jujugui, have a great rest of the day19:08
=== urulama is now known as urulama-afk
bacsee ya urulama-afk19:08
kadams54guihelp: need a code review only (no QA) for: https://github.com/juju/juju-gui/pull/50319:30
MakyoOn it.19:32
kadams54Makyo: thanks!19:32
Makyokadams54, mind taking a look at PR 502 in exchange?  It's tiny.19:32
kadams54Makyo: yeah, will do.19:33
kadams54Makyo: comment added.19:41
rick_h__kadams54: looking19:41
Makyokadams54, thanks.  We don't have direction on what to do with the add container link, since that will be moving to the more menu soon; once there, we'll have direction on whether to remove or show as disabled.19:44
kadams54Makyo: yeah, in reviewing the bug, it seemed ambiguous. rick_h__: do you know if the "more" menu is pre- or post-1.0?19:44
Makyokadams54, yeah, sorry, forgot to link the bug.19:45
kadams54If it's post-1.0, it seems like we ought to get clarification.19:45
rick_h__kadams54: pre19:45
kadams54Ah good.19:45
rick_h__kadams54: it's what we got the delay points for19:45
rick_h__kadams54: the more menu and some other UX enhancements19:45
kadams54rick_h__: basically the revamped MV design they showed us in London, right?19:46
rick_h__kadams54: yep19:46
rick_h__we want to release with the cleaner better UX out of the gate vs waiting to update it19:46
kadams54Makyo: I'm fine with landing PR#502 then.19:46
kadams54I'll add a comment to that effect in the PR.19:47
kadams54Looks like huw's all over the more menus :-)19:48
rick_h__yea, need to check on their status tonight19:48
=== StoneTable is now known as aisrael
=== tvansteenburgh1 is now known as tvansteenburgh
hatchbac:  so I just chatted with the local apple store (not a real apple store) and he said after they run a diagnostic on it, about 2 days to order the new logic board then 2-3h install - so not horrible, maybe you should look into it as well if you're having the same problem20:08
hatchassuming of course you have a local apple repair shop heh20:08
bachatch: did they mention if there was a design change?20:09
hatchthere are reports of people with new machines with the same problem (he wasn't even surprised that this happened) so my guess is no20:09
hatchguess logic boards are cheap for apple lol20:10
bacseems like a pita if there is no reason to think it'll really fix the problem20:11
baci think your eraser solution is pretty elegant...20:11
hatchlol - my warranty is up in December so I want to make sure it's fixed before that :)20:12
bacyeah, mine is long gone20:13
hatchapplecare is really expensive, I wonder how much a logic board costs 20:13
hatch$379 for 3 years....maybe it's worth it if it costs a lot to fix heh20:16
hatchlogic board from ifixit is almost $1k lol ouch20:20
hatchI hope that's not the regular price haha20:20
hatchohh it's 3 years total, so only an additional 2 years for the extra $379.... almost $200/yr20:21
hatchjujugui when trying to update an id of a lazy model object and the id already exists, would you expect it to throw? return false? return the object at that id?20:47
hatchI'm thinking throw....but we don't really throw anywhere else...20:47
hatchI'm thinking return false or return the new id if it was successful20:47
rick_h__undefined vs false?20:48
hatchdoes undefined signify that it didn't work? I'm thinking no because js fn's return undefined by default20:49
rick_h__hatch: hmm, true20:50
rick_h__I guess I like throw then tbh. You asked for something it cannot/will not do20:50
rick_h__right?20:50
hatchright, but I don't think YUI throws anywhere20:50
hatchit just returns some value20:50
hatchso you don't have to try/catch everywhere 20:50
hatchI'd prefer throwing also :)20:51
hatchbut doesn't really follow a convention 20:51
rick_h__meh, it's clear as day, error in the console, I'm +1 on throw if it's for our use anyway20:51
hatchok throw it is20:51
rick_h__and if we want to upstream it I'd suggest we get feedback on upstream20:51
rick_h__ /on/from20:51
hatchnah - they will want tests and everything20:51
hatchtoo much work to upstream it lol20:51
* rick_h__ leaves for the day before he starts anything :P20:52
hatch(ok maybe that's just lazy) :P20:52
rick_h__have a good night all20:52
hatchhahaha20:52
hatchcya, enjoy your night20:52
hatchI'll ask huw about the widget20:52
rick_h__yea, I'll be online sometime tnoight to bug him on that and his expenses20:52
hatchoh ok cool20:52
rick_h__thanks for the help20:52
Makyojujugui can I get another quick review on https://github.com/juju/juju-gui/pull/502 ?21:00
hatchdone21:01
hatch^ Makyo21:01
MakyoThanks hatch 21:04
Makyohatch,  do you have Privacy Badger installed?21:04
MakyoIt's blocking some github avatar URLs for me.21:05
=== jcsackett_ is now known as jcsackett
bacMakyo: i use ghostery.  is the badger newer, shinier, better?21:22
hatchMakyo:  I don't 21:24
hatchoo boy do I hate errors from within YUI21:26
hatchwow....ok do not use Object.create(null) if you're going to ever use that object in YUI21:35
hatchheh21:35
Makyojujugui anyone have the latest MV design handy?  I lost my tab :(22:07
hatchsorry not here - I can't keep all their designs straight lol22:08
MakyoIt's a real problem22:11
MakyoI'll do a temporary version, then fix it up tomorrow.22:11
hatchI don't think the setCommitted and setUnCommitted methods are used in the tokens any longer22:42
rick_h__Makyo: it's in the "Juju Gui" folder I think. THey keep the latest designs in the drive folder22:45
rick_h__Makyo: https://drive.google.com/drive/u/1/#folders/0Bzj8yHKHrx6pNkVUTkNPd3RWNTQ/0BwDPGKe0SiMbU0RfOXZIXzJlODg/0B7XG_QBXNwY1V3B3dDNvYXJGRE0/0B7XG_QBXNwY1NEtGaHJYZGM4enM22:46
hatchawww yeah got this working23:03
hatchoh and look at that, just at EOD23:04
huwshimiMorning23:07
hatchohhh look who decided to show up!23:08
hatch:P morning23:08
huwshimi:)23:08
huwshimihatch: How's the delta stuff coming along?23:10
hatchgood I just finished it - functionally complete anyways23:10
hatchneeds cleanup and tests now23:10
hatchhow we set the committed and uncommitted stuff needs to change into the models....not sure why it's a token level property23:11
huwshimiNice!23:11
hatchyeah but now tokens stay uncommitted for a while while we wait for juju to ack the changeover haha23:14
hatchso will need another ui state23:14
=== perrito6` is now known as perrito666
huwshimihatch: I guess that might be helped somewhat if there is a progress bar at the bottom, so you know things are happening23:16
hatchyeah there are a few different approaches for sure23:17
hatchI sent off an email to peeps about it23:17
hatchwell I'm stepping away for a bit23:19
hatchhuwshimi:  rick_h__ wanted to talk to you about where you were at with the widget23:19
hatchjust a heads up he'll be popping back in sometime tonight23:19
hatchbbl23:20
huwshimihatch: I'm trying to figure out how to render the dummy element before it gets render for real23:20
hatchnot sure I understand?23:21
hatchwana have a quick call?23:21
huwshimihatch: Well, I have to display a button, that turns into the real menu on hover, so I have to have some dummy elements that exist outside the widget23:21
hatchthat's not what I was suggesting 23:22
hatchI was suggesting that each token had a ... which was visible when hovered23:22
hatchwhen the user clicked the ... it would render the widget for the menu23:22
huwshimihatch: I know but rick said to do the init first, so I'm trying to get it to replace the elements rather than appending a new bouding box container23:24
huwshimiAlso, the ... menu is visible before hover23:24
hatchohh noo the ... is just a dumb dom element23:25
hatchyou don't need to render the widget23:25
hatchyou can instantiate it without rendering it23:25
hatchthen when someone clicks the .. it renders the widge23:26
hatcht23:26
huwshimiI know, but, I have to then get the inited widget to listen for the clikc on the dummy elemnt, but I can't because it creates it's own bounding box23:26
huwshimiit's ok, I have it under control, it's just a pain :)23:26
huwshimiActually, you're correct, the more menu does appear on hover (despite what the mockups show)23:27
hatchnooooooooo you put a delegate handler on the machine view container which then calls the tokens 'rendermenuwidget' method23:27
hatchthen you only have one event handler for infinite tokens23:27
huwshimiAh sure, that's a good idea23:28
hatch:) 23:28
hatchok I'm really leaving for a bit now23:29
hatch:) be back in like 45mins23:29
huwshimibye23:30

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