ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Zang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-16003) JS error on hosts filtering when filter for same field is used twice
Date Thu, 21 Apr 2016 01:14:25 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-16003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richard Zang updated AMBARI-16003:
----------------------------------
    Status: Patch Available  (was: Open)

> JS error on hosts filtering when filter for same field is used twice
> --------------------------------------------------------------------
>
>                 Key: AMBARI-16003
>                 URL: https://issues.apache.org/jira/browse/AMBARI-16003
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.4.0
>            Reporter: Richard Zang
>            Assignee: Richard Zang
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-16003.patch
>
>
> * Open hosts page
> * Do filtering "Cores: 3" and "Cores: 1" in the same time
> * JS-error appears: {{Uncaught TypeError: value.charAt is not a function}}
> {code}
> getComparisonType: function (value) {
>     var comparisonChar = value.charAt(0);
>     var result = 'EQUAL';
>     if (isNaN(comparisonChar)) {
>       switch (comparisonChar) {
>         case '>':
>           result = 'MORE';
>           break;
>         case '<':
>           result = 'LESS';
>           break;
>       }
>     }
>     return result;
>   },
> {code}
> UI expects that {{value}} is a string and not an array of strings.
> Same issue is when filtering is done by RAM-field



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message