X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fsenslabmap%2Fstatic%2Fjs%2Fsenslabmap.js;h=f98a128fa055de3672ed6429da45683bbda37334;hb=01df51847534dace0adeaac31377df81d8584aa0;hp=3303c3af06c56d76813d141ce93b62b93b4d18a6;hpb=c53dc9c19c4b4832d1258cb392774909b6d9a755;p=myslice.git diff --git a/plugins/senslabmap/static/js/senslabmap.js b/plugins/senslabmap/static/js/senslabmap.js index 3303c3af..f98a128f 100644 --- a/plugins/senslabmap/static/js/senslabmap.js +++ b/plugins/senslabmap/static/js/senslabmap.js @@ -4,8 +4,10 @@ this._super(options, element); this.elmt().on('show', this, this.on_show); - + + var query = manifold.query_store.find_analyzed_query(options.query_uuid); this.method = query.object; + this.key = manifold.metadata.get_key(this.method); /* Setup query and record handlers */ this.listen_query(options.query_uuid); @@ -29,8 +31,10 @@ } this.nodes[site].push(node); } else { - console.warn("node has no site:"); - console.warn(node); +// xxx would need a smarter way to report these only on nodes that deserve it +// these messages are all over the place in a PL setup and tend to hide helpful signal +// console.warn("node has no site:"); +// console.warn(node); } }, @@ -41,7 +45,7 @@ Senslab.notify = function(node) { manifold.raise_event(self.options.query_uuid, node.boot_state == "Alive" ? SET_REMOVED : SET_ADD, - node.component_id + node[self.key] ); } }