You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/02/06 10:37:59 UTC

[GitHub] [cloudstack-primate] vladimirpetrov opened a new issue #150: JS errors when trying to sort a column in a grid with missing data

vladimirpetrov opened a new issue #150: JS errors when trying to sort a column in a grid with missing data
URL: https://github.com/apache/cloudstack-primate/issues/150
 
 
   **Describe the bug**
   If you try to sort by column and there is a missing element (IP or CPU usage, if the VM is stopped) in the grid, the following JS exception is thrown:
   
   vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'localeCompare' of undefined"
   
   vue.runtime.esm.js?2b0e:1888 TypeError: Cannot read property 'localeCompare' of undefined
       at stringComparator (sort.js?dbd1:26)
       at genericCompare (sort.js?dbd1:101)
       at Object.sorter (AutogenView.vue?feaa:402)
       at eval (Table.js?372e:346)
       at Array.sort (<anonymous>)
       at VueComponent.recursiveSort (Table.js?372e:1011)
       at VueComponent.getLocalData (Table.js?372e:1029)
       at VueComponent.prepareParamsArguments (Table.js?372e:958)
       at VueComponent.toggleSortOrder (Table.js?372e:390)
       at colProps.on.click (Table.js?372e:855)
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Go to a grid with missing data in some rows - for example Compute > Instances. If needed - stop some of the VMs.
   2. Sort by a column with some missing data - IP or CPU usage, if the VM is stopped.
   3. Look at the JS console
   
   **Expected behavior**
   This event (missing grid data) must be handled properly and not throw exceptions.
   
   **Screenshots**
   Not needed.
   
   **Desktop (please complete the following information):**
    - OS: Windows 10 Pro x64 (doesn't matter)
    - Browser: Chrome 
    - Version 79.0.3945.130 (Official Build) (64-bit)
   
   **Additional context**
   Sometimes it leads to some strange UI behavior as well.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack-primate] rhtyd closed issue #150: JS errors when trying to sort a column in a grid with missing data

Posted by GitBox <gi...@apache.org>.
rhtyd closed issue #150: JS errors when trying to sort a column in a grid with missing data
URL: https://github.com/apache/cloudstack-primate/issues/150
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services