From ea8949c90812b40d699e9395ac0319ac8732b379 Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Sat, 20 Oct 2018 08:56:31 +0200 Subject: monitoring: Fix naming of apis The introduction of API v3 changed the API of monitoring/tracing. This introduced a regression of the monitoring: it wass not more possible to filter api by name. This fix that issue. Bug-AGL: SPEC-1828 Change-Id: Ic7f614f6c696119c7fd313e3cd252095f578c64c Signed-off-by: Jose Bollo --- test/monitoring/monitor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/monitoring/monitor.js') diff --git a/test/monitoring/monitor.js b/test/monitoring/monitor.js index 1bdfcb43..589541dd 100644 --- a/test/monitoring/monitor.js +++ b/test/monitoring/monitor.js @@ -291,7 +291,7 @@ function on_got_apis(obj) { name: api_name }; api.node.API = api; - api.node.dataset.api = api_name; + api.node.dataset.apiname = api_name; api.vnode = get(".verbs", api.node); get(".name", api.node).textContent = api_name; var s = get(".verbosity select", api.node); @@ -355,9 +355,9 @@ function update_trace_box(node) { function set_trace_box(node, clear) { var api = node; - while (api && !api.dataset.api) + while (api && !api.dataset.apiname) api = api.parentElement; - var tag = api.dataset.api + "/" + node.dataset.trace; + var tag = api.dataset.apiname + "/" + node.dataset.trace; var value = false; for_all_nodes(node, "input", function(n){ if (n.checked) value = n.value; }); if (clear) @@ -365,8 +365,8 @@ function set_trace_box(node, clear) { if (value != "no") { var spec = {tag: tag, name: "trace"}; spec[node.dataset.trace] = value; - if (api.dataset.api != "*") - spec.api = api.dataset.api; + if (api.dataset.apiname != "*") + spec.apiname = api.dataset.apiname; do_call("monitor/trace", {add: spec}); } } -- cgit 1.2.3-korg