瀏覽代碼

HPCC-15009 QuerySetQuery not displaying icon

Within the QueryDetails area when a query is suspended by cluster the icon appears correctly but not in the
query page. We check for a string in the Errors key but, sometimes there is no error string reported from
ClusterQueryState. Adding a check to verify both error and as long as query status is !Available
string inside of State.

Signed-off by: Miguel Vazquez <miguel.vazquez@lexisnexis.com>
Miguel Vazquez 9 年之前
父節點
當前提交
8d5e18cb4a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      esp/src/eclwatch/ESPQuery.js

+ 1 - 1
esp/src/eclwatch/ESPQuery.js

@@ -78,7 +78,7 @@ define([
             item[this.idProperty] = item.QuerySetId + ":" + item.Id;
             if (lang.exists("Clusters", item)) {
                 arrayUtil.some(item.Clusters.ClusterQueryState, function(cqs, idx){
-                    if (lang.exists("Errors", cqs) && cqs.Errors) {
+                    if (lang.exists("Errors", cqs) && cqs.Errors || cqs.State !== "Available") {
                         ErrorCount++;
                         StatusMessage = context.i18n.SuspendedByCluster;
                         return false;