/srv/irclogs.ubuntu.com/2012/11/12/#juju-gui.txt

frankbanhi all, is the staging server broken?11:19
frankbanmorning bac12:06
bachi frankban12:06
bacgood weekend?12:06
frankbanbac: yes thanks12:06
frankbanbac: unfortunately the staging server seems broken12:07
bacoh, perhaps i can help!12:08
bacseems mighty dead12:08
bacfrankban: trunk has a file with conflict markers checked in.12:10
baci'll find and fix it12:10
frankbanbac: thanks12:10
bacfrankban: it was not a conflict in trunk as i suspected but just a conflict in the checked out copy on the server.12:17
bacit should be back in a second12:17
frankbanbac: cool12:18
bacstill dead12:19
frankbanbac: Uncaught ReferenceError: GlobalConfig is not defined 12:25
bacfrankban: any ideas what could be causing that?12:34
bacseparately, there is some problem with the rapi-rollup branch getting bad response from LP12:34
bacwhen the cronjob does a 'bzr pull'12:35
frankbanbac: it seems that assets (e.g. yui.js) cannot be found12:35
frankban(sometimes) :-/12:36
bacfrankban: modules.js:1ReferenceError: Strict mode forbids implicit creation of global property 'GlobalConfig'12:38
bacso where should it be coming from?12:38
frankbanbac: I guess GlobalConfig is created in yui.js12:39
bacmodules.js looks to have a new directive "ignoreRegistered = true"12:39
baci wonder if that is involved12:39
frankbanbac: locally it works12:40
bacyep12:41
bacfrankban: i adde a 'var' in front of GlobalConfig in modules.js and it works12:48
bacit looks like a 'use strict' may have been inserted somewhere that was preventing GC from implicitly being created12:49
baci made the change locally on the server, so it may fall over when the cronjob runs again12:49
jovan2hi guys - is there a mailing list for our juju-gui team? I've a couple of use cases I'd like to share.13:14
frankbanbac: back from lunch, I also see artifacts at the bottom of the page, it seems the slider isn't rendered correctly anymore, do you see the same?13:48
bacfrankban: yes, i see that13:50
frankbanbac: I think that also causes (in some way) the central part of the body to exceed the width13:51
frankbantveronezi: morning, I am having troubles with some kind of cache when I change templates. The browser does not show changes unless I run "make clean" and "make server" again. and "appcache-force" doesn't help. Any ideas?13:53
frankbanoh, today is really a monday...13:53
tveroneziHi frankban. I think you need to clean the browser cache. 13:54
tveroneziI have the same problem, but cleaning the cache (ctrl+shift+del) does the job. 13:55
frankbantveronezi: and then check "Empty the cache", right?13:57
frankbantveronezi: did that, without effect13:58
tveronezifrankban... oh... you need to run the "make debug" instead of make server also.13:58
frankbantveronezi: ah!13:58
tveroneziotherwise you will use the compressed version of our app.13:59
bacfrankban: i suspect the problems we're seeing on uistage are due to the minimization work that landed recently.14:11
frankbancool, and now yui.yahooapis.com does not work... 14:11
bactveronezi: can you look at the staging server14:11
frankbanbac: yes, locally with make debug it works well14:11
bacthere are weird layout artifacts.14:11
bactveronezi: there had been a conflict with config.js and i may have resolved it incorrectly14:12
bacfrankban: can you replicate staging locally by not using debug?14:12
bacby that i mean the problems we're currently seeing on staging14:12
frankbanbac: I can replicate the artifact at the bottom of the page, I cannot replicate the GlobalConfig error. and cannot double check now because yui.yahooapis.com is darn slow14:14
frankbanbac: ok, double checked: I confirm: artifacts using "make server", everything ok using "make debug"14:15
tveronezibac, frankban... I will check that... 14:15
bacjovan2: we have a launchpad team with a mailing list.  you can join the team at https://launchpad.net/~juju-gui-peeps and then subscribe to the mailing list.14:42
jovan2thanks bac14:43
jovan2bac: I think somebody needs to allow me to view that page, would that be Gary or Kapil?14:45
bacjovan2: yeah, i see it is a private team.  kapil is the owner14:46
jovan2hazmat: can you add me to https://launchpad.net/~juju-gui-peeps please?14:47
frankbanmattuk1972 or jovan2: do you have time for a quick UX review (just a screenshot) for my branch: replace bootstrap icons with our assets in the charm panel14:52
mattuk1972frankban: sure14:53
mattuk1972frankban: just email it along 14:54
jovan2frankban: yes please14:54
frankbanmattuk1972, jovan2: thanks, email sent14:58
mattuk1972cool14:58
mattuk1972frankban: gets a big thumbs up from me - nice one 15:00
jovan2frankban: looks good to me15:02
frankbanmattuk1972, jovan2: great, thanks15:03
frankbanbac: do you have time for a review?15:25
bacfrankban: sure, just a minute15:30
frankbanbac: thanks, for when you are ready: https://codereview.appspot.com/681913115:31
bacfrankban: looking at it now15:37
baceven tagged your card!15:37
teknicooh right, forgot to do that :-)15:40
frankbanbac: thanks15:43
bacfrankban: i cannot get your branch to run locally15:44
bacY.juju is undefined15:44
bacthis is with 'make debug'15:44
frankbanbac: :-/15:44
bactrying trunk now15:44
bactveronezi: did you get a chance to look at the possible minimization problems?  i cannot get trunk to load now.15:47
tveronezibac, frankban: I know what is going on... 15:47
tveronezibac, frankban: the system does not load the slider-base.css file. we need to add it manually. I am trying to figure out how to load it automatically.15:48
bactveronezi: there are other problems.  running server i get an error trying to define 'app'15:49
bacmean to say, there is an error in the line 'app = new Y.juju.App' as Y.juju is undefined15:49
frankbanbac: trunk runs well for me locally. could you please check if all the resources from the web are correctly loaded?15:51
tveronezibac, frankban: this last one I cannot reproduce... bac can we talk after the meeting?15:53
bacfrankban: using the 'network' tab i don't see any failures to load.  is there somewhere else i can look?15:55
frankbanbac: no AFAIK. my only remaining suggestion is to clean the browser cache, then run "make clean" and then "make debug".15:57
bacfrankban: i've done all of those.  :(15:58
bacmeeting16:00
frankbanbac: just did the same thing, and it works... weird16:00
bacteknico: hangout?16:01
bacjovan2: hangout16:02
jovan2on my way16:02
=== jovan2_ is now known as jovan2
tveronezibac... one sec.... 16:25
bacstaging should be working now and updates at :00,15,30,4516:30
bacfrankban: i still cannot get my local env to work.  so i can't do your review until after my lunch and your EOD16:31
jovan2bcsaller: hi, if cs is abbr for charm store, what is the abbr for Local charm?16:32
frankbanbac: no problem, I will land it tomorrow morning, or later if everything is fine16:33
bcsallerjovan2:  local:...16:33
bcsallerso local:series/name16:34
jovan2bcsaller: thanks. Another: if user loads a local config file, should they be able to then amend any settings as well?16:35
bcsallerjovan2: local: implies a local repository, an on disk collection of directories of charms16:35
bcsallerlocal: for a different user might be different, but the charm series/name-rev should still be unique in the environment16:36
jovan2bcsaller, I was thinking of the config settings for any charm, you have the option to load a config file.16:36
bcsallerthats different, those are settings applied to the charm, same as the web form now but stored in a file16:37
bcsallernot tied to the notion of local or not, a file of settings could work with any type of charm16:37
jovan2bcsaller, ok so that's different, understood. But should a user be able to amend settings *after* loading a config file?16:38
jovan2bcsaller, currently they load a config file but then don't see the individual fields any more.16:38
bcsallerjovan2: yes, config settings can be changed at any time as far as the system is concerned, for some charms it might not make sense but thats not something we know16:38
jovan2bcsaller, ok so when we allow a user to load a config settings file we should still display the fields with the values from the file, but still allow the use to edit individual fields?16:39
bcsalleryes16:40
jovan2bcsaller, thanks.16:40
* tveronezi lunch17:10
* tveronezi back17:28
jovan2bcsaller: when you said earlier that a user could ssh with a unit name, is the unit name the same as the unit ip address in this case?17:43
bacjovan2: no, you use 'juju ssh wordpress/1' to get to a unit17:45
bacjuju maps it to the ip address17:45
bacdoh17:45
* tveronezi brb...17:55
* tveronezi back18:08
MakyoCould use a few reviews, if folks have time/energy.  Charm panel border: https://codereview.appspot.com/6812107  Click subordinate relation indicator to toggle relation visibility (was remove sub rels): https://codereview.appspot.com/6782063/18:30
tveronezibcsaller: do you have a minute for a pre-impl call?18:39
bcsallertveronezi: sure do18:39
bcsalleron g+18:39
tveroneziok18:39
bcsaller1tveronezi: sorry about that, it froze up18:42
=== bcsaller1 is now known as bcsaller
bactveronezi: i suspect a new 'use strict' that you introduced is causing the definition of GlobalConfig to fail.  it looks like inserting a 'var' in both places it is defined is all that is required.18:49
tveronezibac: g+?18:53
bactveronezi: nah, i'm having a hard time reproducing it, even with a fresh checkout.  but, i have seen it locally and on staging, so let's keep it in mind.18:54
tveronezibac: I think you are right. I am just surprised I didnt see it locally. It should break in production mode because after merging the css files, the resulting file will have the "use strict". The point is that the "GlobalConfig" has no "var" declaration, so it should break the application for me too. We definitely have a problem... I will check it again...18:59
tveronezis/css/js18:59
bactveronezi: thanks19:00
tveronezibac: It seems we are loading GlobalConfig twice. Can you make this change https://pastebin.canonical.com/78235/ ?19:08
bactveronezi: i can but i can no longer reproduce the problem.19:10
tveronezibac: so strange... I see the issue there. I mean, I see the GlobalConfig being declared twice. Well... I think I will commit this change in my next branch. Unless we can reproduce it again.19:12
bactveronezi: and what about 'var GlobalConfig'?19:13
bactveronezi: also if you wanted to do a branch with just those fixes we could push it through under the 'testfix' rules, i think.19:14
tveroneziWhen we run the minimifier, it merges all the variables in a single declaration. So, the resulting var is something like... 19:15
tveronezivar juju_config={..., ,GlobalConfig={...,GlobalConfig={...19:15
tveronezibac: ok... I will create a branch for that.19:16
bactveronezi: i'd like to use a package from the gallery ('gallery-ellipsis').  i thought some of the tools would find it and suck it in if i just referenced it in a requires20:26
bac... in a requires section.  that doesn't seem to be true.  can you give me some advice.20:26
tveroneziWhere do you declare it? "modules.js"? 20:27
tveronezibac ^20:27
bactveronezi: nope.  i was looking at how gallery-markdown was used.  not declared in modules.js.20:29
bacmodules.js does not reference any third party or gallery stuff20:29
tveronezibac: hmmm... Let me check it. I had some problems with the  "gallery-markdown" too.20:30
bactveronezi: i saw you added it to 'reqs' in the merge-files script20:30
tveronezibac: probably "'gallery-ellipsis" has the same problem.20:30
baci tried that too and it didn't work20:30
tveronezibac: our yui assets dont include 'gallery-ellipsis'. At least I didn find it. Is it from yui?20:34
bactveronezi: it is in the yui gallery, like markdown20:34
bactveronezi: http://yuilibrary.com/gallery/show/ellipsis20:35
tveronezibac: Markdown is not there too. If you add 'gallery-ellipsis' to the "utils.js" file (for example), the system will call...20:42
tveronezibac: http://yui.yahooapis.com/combo?gallery-2012.10.31-20-00/build/gallery-markdown/gallery-markdown-min.js&gallery-2012.10.31-20-00/build/gallery-ellipsis/gallery-ellipsis-min.js20:42
tveronezibac: thanks for helping me to understand why 'gallery-markdown' is not working too. :)20:43
bactveronezi: i want to use it in charm-panel.js and have added it there.  i don't see it getting loaded from yahooapis20:46
tveronezibac: that is strange... again. I see it being loaded. I swear! :)20:57
bactveronezi: ok, i'll poke at it more tomorrow.  thanks.20:57
* Makyo dogwalk.21:50

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