fluid-work IRC Logs-2013-09-09
[08:55:05 CDT(-0500)] <jhung1> michelled: I want your opinion on how best to record the issues with the discovery tool demo. Since there are many small styling issues, doesn't make sense to file jiras for them all. I propose perhaps one broad Jira for the small issues, and jiras for the more significant ones?
[08:55:45 CDT(-0500)] <michelled> sounds good jhung1
[08:55:57 CDT(-0500)] <jhung> thanks michelled
[09:19:50 CDT(-0500)] <Jess_> hi?
[09:20:46 CDT(-0500)] <jhung> Jess_: hi
[09:21:05 CDT(-0500)] <Jess_> jhung: i got an email from someone interested in a downloadable PDF version of the ILDH. colinclark reminded me we were slated to add ePub3 capabilities and should do PDF as well. more plugin work!
[09:21:30 CDT(-0500)] <Jess_> i'm using the web-based IRC from freenode and i think it might be flakey
[09:22:08 CDT(-0500)] <jhung> Jess_: cool.
[09:22:43 CDT(-0500)] <jhung> Jess_: are we going to try to meet this morning, or are we going to wait until you are on a more reliable connection ?
[09:23:23 CDT(-0500)] <Jess_> oh dear, i've done it again. yes, if folks have time let's meet
[09:23:39 CDT(-0500)] <Jess_> sorry, i doubted the sanity of my own self-populated calendar
[09:23:46 CDT(-0500)] * Jess_ sigh
[10:27:06 CDT(-0500)] <Justin_o> jhung: can you let me know when you've put all of vjoanna's suggestions form the discovery tool into jira. Then we can discuss when we'll be getting to them.
[14:43:23 CDT(-0500)] <cindyli> hi, Bosmon2 or Bosmon8
[15:00:20 CDT(-0500)] <Bosmon2> Hi there cindyli
[15:06:59 CDT(-0500)] <cindyli> Bosmon: not sure if you read about the problem that Chris have after having "distribute options" to pass down a type of empty component to a preview enactor. justin and I were tracing down the issue this morning and there's something weird that we don't figure out. so need your help.
[15:09:24 CDT(-0500)] <cindyli> the problem is that after panel refreshView, where preview components are refreshed as well, the model linkage between uiOptions and preview components are broken
[15:10:20 CDT(-0500)] <Bosmon> cindyli - I see
[15:10:31 CDT(-0500)] <Bosmon> Tne empty component type should certainly be send down a 2nd time ....
[15:10:38 CDT(-0500)] <cindyli> yes, it did
[15:10:43 CDT(-0500)] <cindyli> that's confirmed
[15:10:44 CDT(-0500)] <Bosmon> aha
[15:11:05 CDT(-0500)] <cindyli> the panel component that has a preview subcomponent: https://github.com/cindyli/prefsEditors/blob/GPII-188/src/shared/lib/cloud4all/CustomAdjusters.js#L24-L33
[15:11:50 CDT(-0500)] <Bosmon> btw this file contains quite a number of tabs ....
[15:13:43 CDT(-0500)] <cindyli> ok, will let Chris know to clean it up
[15:14:10 CDT(-0500)] <cindyli> after panel and preview are refreshed, this listener no longer works: https://github.com/cindyli/infusion/blob/master/src/components/uiOptions/js/UIOptions.js#L471
[15:14:45 CDT(-0500)] <cindyli> event though it's attached onto the preview component at the 2nd time
[15:15:17 CDT(-0500)] <Bosmon> cindyli - the listener is still attached?
[15:15:24 CDT(-0500)] <cindyli> yes
[15:15:25 CDT(-0500)] <Bosmon> So what part of it doesn't work?
[15:15:50 CDT(-0500)] <cindyli> it's no longer triggered at uiOptions modelChanged
[15:16:51 CDT(-0500)] <Bosmon> No longer triggered ...
[15:17:21 CDT(-0500)] <Bosmon> Did you try making a test case?
[15:19:03 CDT(-0500)] <cindyli> not yet, with all these rendering and model connections, what a headache when I think about it.
[15:19:39 CDT(-0500)] <Bosmon> ok, what can I do to reproduce the issue
[15:20:59 CDT(-0500)] <cindyli> pull down my branch, open up http://localhost/prefsEditors/demos/pmt/index.html
[15:21:11 CDT(-0500)] <cindyli> adjust localhost to your local url
[15:21:45 CDT(-0500)] <cindyli> 1. click "increase size" to open up the dropdown menu
[15:22:06 CDT(-0500)] <cindyli> 2. adjust the first panel "text size", the preview works fine
[15:22:15 CDT(-0500)] <cindyli> 3. click "save and apply"
[15:22:52 CDT(-0500)] <cindyli> 4. adjust the first panel "text size" again — the preview stops working
[15:25:42 CDT(-0500)] <cindyli> if you comment line 27417 @ src/shared/lib/infusion/MyInfusion.js, the preview at the 2nd time will be back working
[15:25:55 CDT(-0500)] <cindyli> that line is - that.events.onUIOptionsRefresh.fire();
[15:28:10 CDT(-0500)] <Bosmon> cindyli - ok, I can reproduce it
[15:28:12 CDT(-0500)] <cindyli> onUIOptionsRefresh event triggers all the panels to refresh - https://github.com/fluid-project/infusion/blob/master/src/components/uiOptions/js/StarterGrades.js#L219
[15:28:16 CDT(-0500)] <cindyli> cool
[15:30:14 CDT(-0500)] <cindyli> onUIOptionsRefresh also triggers the preview enhancer model be updated, which is missing and causing the problem - https://github.com/cindyli/infusion/blob/master/src/components/uiOptions/js/UIOptions.js#L471
[15:36:13 CDT(-0500)] <Bosmon> cindyli - why is the model missing?
[15:36:47 CDT(-0500)] <cindyli> ah ha. which model?
[15:36:55 CDT(-0500)] <cindyli> preview doesn't need a model
[15:37:19 CDT(-0500)] <cindyli> its listener connects uio model and preview enhancer model
[15:43:34 CDT(-0500)] <Bosmon> cindyli - I notice that the enactors are being destroyed on the refresh
[15:43:38 CDT(-0500)] <Bosmon> And in fact they are being destroyed twice
[15:44:00 CDT(-0500)] <cindyli> oh, how come
[15:44:18 CDT(-0500)] <Bosmon> And there is something special about the textSize panel
[15:44:41 CDT(-0500)] <Bosmon> Its enactor is only destroyed once
[15:45:24 CDT(-0500)] <cindyli> are all preview enactors destroyed or only textSize enactor?
[15:46:21 CDT(-0500)] <cindyli> this might be related: https://github.com/cindyli/prefsEditors/blob/GPII-188/src/shared/lib/cloud4all/CustomAdjusters.js#L217-L219
[15:46:23 CDT(-0500)] <Bosmon> It's a little hard to make out the sequence..... if only we had a VISUAL TOOL to help with these logs : P
[15:47:00 CDT(-0500)] <Bosmon> Oh, I see
[15:47:03 CDT(-0500)] <Bosmon> Why is that block there?
[15:47:44 CDT(-0500)] <cindyli> Chris doesn't want the textSize change being applied to magnifier preview window
[15:48:07 CDT(-0500)] <Bosmon> sgithens
[15:48:17 CDT(-0500)] <Bosmon> We were just mentioning our absence of VISUAL TOOLS : P
[15:49:34 CDT(-0500)] <Bosmon> cindyli - where are the enhancers attached to the preview actually defined?
[15:49:59 CDT(-0500)] <cindyli> here: https://github.com/cindyli/prefsEditors/blob/GPII-188/src/shared/lib/cloud4all/CustomAdjusters.js#L213-L215
[15:50:10 CDT(-0500)] <cindyli> same for textSize panel
[15:50:46 CDT(-0500)] <cindyli> whatever enactors used by the outer main page enhancer are passed down to preview enhancer
[15:51:49 CDT(-0500)] <Bosmon> ok, can you explain more about this comment? " onUIOptionsRefresh also triggers the preview enhancer model be updated, which is missing and causing the problem "
[15:52:12 CDT(-0500)] <Bosmon> Do you mean "the problem" or "a problem"?
[15:53:32 CDT(-0500)] <cindyli> i think "the problem", which is the problem that the preview textsize enactor stops working at the 2nd time
[15:53:41 CDT(-0500)] <Bosmon> Ok, how does it cause that problem?
[15:53:59 CDT(-0500)] <cindyli> https://github.com/fluid-project/infusion/blob/master/src/components/uiOptions/js/StarterGrades.js#L219
[15:54:29 CDT(-0500)] <cindyli> not this one, one sec
[15:54:54 CDT(-0500)] <cindyli> this line: https://github.com/fluid-project/infusion/blob/master/src/components/uiOptions/js/UIOptions.js#L471
[15:55:02 CDT(-0500)] <sgithens> Bosmon!
[15:55:23 CDT(-0500)] <Bosmon> SGITHUENS!
[15:55:26 CDT(-0500)] <Bosmon> We need some VIZZUAL TOOLS!
[15:55:29 CDT(-0500)] <sgithens> visual tools are important
[15:55:43 CDT(-0500)] <Bosmon> cindyli - can you explain your comment further?
[15:55:59 CDT(-0500)] <cindyli> the line above is the listener gets triggered to update preview enhancer model at uiOptions modelChanged
[15:56:04 CDT(-0500)] <Bosmon> What do you mean by the model being missing, and how does it relate to this line?
[15:56:06 CDT(-0500)] <cindyli> it's not fired at the 2nd time
[15:56:09 CDT(-0500)] <Bosmon> Yes
[15:56:25 CDT(-0500)] <cindyli> sorry, the model is not missing, the listener firing is missing
[15:56:29 CDT(-0500)] <Bosmon> ah ok
[15:56:32 CDT(-0500)] <Bosmon> Now I see
[15:57:01 CDT(-0500)] <cindyli> yay! i finally make myself clear.
[16:03:08 CDT(-0500)] <cindyli> Bosmon: i'm heading out. anything you need from me before i disappear?
[16:07:04 CDT(-0500)] <Bosmon> cindyli - it seeming that this is an issue caused by the bloody softNamespaces I invented
[16:07:19 CDT(-0500)] <Bosmon> As far as I can see, all of the preview listeners are added with the same namespace
[16:07:29 CDT(-0500)] <Bosmon> Which implies that only one of them ever can be active at the same time
[16:07:52 CDT(-0500)] <cindyli> ah ha
[16:07:53 CDT(-0500)] <Bosmon> They are all supplied the name "fluid.uiOptions.preview.updateModel" since they are all components of the same type
[16:08:24 CDT(-0500)] <cindyli> good to know
[16:08:36 CDT(-0500)] <Bosmon> I guess it's a simple accident of order of attachment which means that the first panel's listener is the active one the first time
[16:10:47 CDT(-0500)] <cindyli> will you create a jira for it, Bosmon
[16:11:22 CDT(-0500)] <Bosmon> Yes
[16:11:43 CDT(-0500)] <cindyli> thanks for helping out, Bosmon. see you tomorrow
[16:11:45 CDT(-0500)] <Bosmon> Well, now somehow I see that the listener is already gone by the time the 2nd listener comes to be registered
[16:11:50 CDT(-0500)] <Bosmon> So there may well be something else going on
[16:12:02 CDT(-0500)] <cindyli> umm..
[16:12:19 CDT(-0500)] <Bosmon> Although this may be something to do with the unnecessary extra destruction of the components
[16:12:29 CDT(-0500)] <Bosmon> I think the base issue is probably as thought
[16:13:02 CDT(-0500)] <cindyli> extra destruction? you mean enactors are destroyed twice?
[16:13:12 CDT(-0500)] <Bosmon> Yes, I seemed to see two rounds of destruction in the logs
[16:13:22 CDT(-0500)] <cindyli> i don't even know why they would be destroyed once
[16:13:34 CDT(-0500)] <Bosmon> They are destroyed once because they are re-rendered
[16:13:39 CDT(-0500)] <cindyli> ah ok
[16:13:42 CDT(-0500)] <Bosmon> And everything attached to the preview components will be destroyed
[16:13:51 CDT(-0500)] <cindyli> makes sense
[16:14:43 CDT(-0500)] <cindyli> again, maybe this block is causing the 2nd destroy - https://github.com/cindyli/prefsEditors/blob/GPII-188/src/shared/lib/cloud4all/CustomAdjusters.js#L217-L219
[16:15:03 CDT(-0500)] <Bosmon> That should simply cause them never to be created
[16:15:15 CDT(-0500)] <cindyli> that's right
[16:16:05 CDT(-0500)] <Bosmon> So what I observe so far is that for some reason there is only ONE modelChanged listener attached to the root component
[16:16:20 CDT(-0500)] <Bosmon> But there seem to be two separate causes for this ........
[16:16:34 CDT(-0500)] <Bosmon> ah
[16:16:44 CDT(-0500)] <Bosmon> I think both of them are sort of the same ... it is related to the namespaces
[16:18:50 CDT(-0500)] <cindyli> ok. at least we have somewhere to start. thanks, Bosmon
[16:20:38 CDT(-0500)] <Bosmon> o horrible
[16:20:40 CDT(-0500)] <Bosmon> I see it now, yes
[16:20:47 CDT(-0500)] <Bosmon> The components are destroyed in order
[16:20:57 CDT(-0500)] <Bosmon> And as each next one instantiates, it removes the listener supplied by the previous one