[jira] [Updated] (AMBARI-16003) JS error on hosts filtering when filter for same field is used twice

2016-04-21 Thread Richard Zang (JIRA)

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

Richard Zang updated AMBARI-16003:
--
Resolution: Fixed
Status: Resolved  (was: Patch Available)

Committed to trunk 04f7d5c3efe8af2c43824f32c1ce04d2ddc6cee2

> 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)


[jira] [Updated] (AMBARI-16003) JS error on hosts filtering when filter for same field is used twice

2016-04-20 Thread Richard Zang (JIRA)

 [ 
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)


[jira] [Updated] (AMBARI-16003) JS error on hosts filtering when filter for same field is used twice

2016-04-20 Thread Richard Zang (JIRA)

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

Richard Zang updated AMBARI-16003:
--
Attachment: AMBARI-16003.patch

> 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)