Community
Participate
Working Groups
1. Submit a cmdbf query to the example MDR 2. Select the query node. 3. Select the exampe MDR. 4. Reselect the query node. An exception occurs when trying to recreate the graph response viewer. The ids are already registered. The reason is the graph response viewer is not properly destroyed.
Created attachment 90279 [details] Patch that has the fix
In my i8 environment where I tested this, I was not seeing this problem for some reason. I applied this patch to that environment and it does not behave as I expect. The second time that you click on the CMDBfquery leaf you get a 'null has no properties' in firebug, but if you now click on it, you get the widget created. I can only imagine that in your environment that you have the query builder in between, and therefore something different is happening, so that you do not see this. What if someone does want to include the GraphResponseViewer, and they do not have the query builder in between? I suspect it will show what I get. I am unclear if this fix fixes all situations or not.
(In reply to comment #2) I'm not sure why you would get 'null has no properties'. It might be related to another problem. I'm just destroying the child widgets in the destroy method. It shouldn't matter if the query builder exists or not as long as the destroy method is called it should clean up the child widgets.
(In reply to comment #2) I went over this issue with Martin and we resolved the issue. However there may be an issue with the development environment. This is a separate issue and Martin will open another bug.
Applied patch and fixed bug.
Verified bug in build COSMOS-1.0.0-200802261616
verified, closing bug.