YARN-3846. RM Web UI queue filter is not working for sub queue. Contributed by Mohammad Shahid Khan

This commit is contained in:
Jian He 2015-07-27 16:57:11 -07:00
parent 3e6fce91a4
commit 3572ebd738
2 changed files with 7 additions and 1 deletions

View File

@ -695,6 +695,9 @@ Release 2.8.0 - UNRELEASED
YARN-3958. TestYarnConfigurationFields should be moved to hadoop-yarn-api YARN-3958. TestYarnConfigurationFields should be moved to hadoop-yarn-api
module. (Varun Saxena via aajisaka) module. (Varun Saxena via aajisaka)
YARN-3846. RM Web UI queue filter is not working for sub queue.
(Mohammad Shahid Khan via jianhe)
Release 2.7.2 - UNRELEASED Release 2.7.2 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -516,7 +516,10 @@ class CapacitySchedulerPage extends RmView {
" $('#cs').bind('select_node.jstree', function(e, data) {", " $('#cs').bind('select_node.jstree', function(e, data) {",
" var q = $('.q', data.rslt.obj).first().text();", " var q = $('.q', data.rslt.obj).first().text();",
" if (q == 'Queue: root') q = '';", " if (q == 'Queue: root') q = '';",
" else q = '^' + q.substr(q.lastIndexOf(':') + 2) + '$';", " else {",
" q = q.substr(q.lastIndexOf(':') + 2);",
" q = '^' + q.substr(q.lastIndexOf('.') + 1) + '$';",
" }",
" $('#apps').dataTable().fnFilter(q, 4, true);", " $('#apps').dataTable().fnFilter(q, 4, true);",
" });", " });",
" $('#cs').show();", " $('#cs').show();",