When we want to edit process configurations in Horizon. For example, we add a "Namenode" process in CDH plugin, we suppose we will only have "NAMENODE" tab shown in this page besides the "Create Node Group Template" tab. However, we will have two tabs shown instead one. They are "NAMENODE" and "SECONDARYNAMENODE". The reason is in nodegroup_templates.html, function get_service_tab is defined as:
function get_service_tab(service) {
return $("a").filter(function (idx, e) {
return $(e).attr("data-target") && $(e).attr("data-target").indexOf(service.toLowerCase()) != -1
}).closest("li");
}
by this way it will get all names including "NAMENODE" instead of precise matching. This behavior is confusing and not desired, and we need to replace it by precise matching.
Can you give steps to reproduce this issue more briefly??
Also please update the explanation of the bug.