Fix issue with updates to server group names not triggering tree sort
Resolves issue #8015
What does this PR do?
This PR resolves issue in the object explorer window for server groups, where updating the names for existing server groups don't trigger a reordering of the tree structure.
I initially tried using the inotify method with WatchEvent.Moved and WatchEvent.Changed events, passing in parameters for the updated node path for the Moved event and the parent directory "/browser" for the Changed event but neither triggers the rerender - as a workaround removing and adding the node using the existing fileTreeHandle recreates the node and places it in the appropriate sort order
hi @akshay-joshi - could you please look into reapproving the workflows? rebased from upstream
With this patch, the browser window gets blank if I update the server group name. Please take a look at the console logs.
![]()
thanks for testing the PR @khushboovashi - which browser did you use to test the changes? While I have encountered other issues with these changes, I wasn't able to reproduce these errors with updating server groups
I've encountered a few other issues testing these changes - updating any child nodes (anything under server groups) results in the nodes being placed in the root directory node (the /browser) as opposed to being under the appropriate parent (for example, updating the server name results in the node being placed under the server group directory
With this patch, the browser window gets blank if I update the server group name. Please take a look at the console logs.
thanks for testing the PR @khushboovashi - which browser did you use to test the changes? While I have encountered other issues with these changes, I wasn't able to reproduce these errors with updating server groups
I am using Google Chrome v 134.0
I've encountered a few other issues testing these changes - updating any child nodes (anything under server groups) results in the nodes being placed in the root directory node (the
/browser) as opposed to being under the appropriate parent (for example, updating the server name results in the node being placed under the server group directory
I am not facing such issues. Which browser are you using? Have you tested the same thing on the released version?
With this patch, the browser window gets blank if I update the server group name. Please take a look at the console logs.
thanks for testing the PR @khushboovashi - which browser did you use to test the changes? While I have encountered other issues with these changes, I wasn't able to reproduce these errors with updating server groups
I am using Google Chrome v 134.0
Thanks for those details @khushboovashi - I managed to reproduce that same issue
I've encountered a few other issues testing these changes - updating any child nodes (anything under server groups) results in the nodes being placed in the root directory node (the
/browser) as opposed to being under the appropriate parent (for example, updating the server name results in the node being placed under the server group directoryI am not facing such issues. Which browser are you using? Have you tested the same thing on the released version?
yeap the release version is working as expected (although it looks like editing tables to be under different schemas is predictably keeping the table node under the previous schema, as the file tree is not being refreshed) - it was as a byproduct of the changes in this PR
Hi @KijongHan, are you planning to work on the reported issue, or should I close this PR?
Hi @KijongHan, are you planning to work on the reported issue, or should I close this PR?
hey @khushboovashi sorry just got back from my holiday. Ill try working through the reported issue and get back to you
hi @khushboovashi - many thanks for the patience on this one. I've changed my approach for the fix on this one. Instead of trying to make the reorder work with FileTreeX viewmodel I tried calling the necessary operations to force the reorder up the call stack under browser.js so that it checks if the updated node is a server group, and if it is then it calls the RECREATE operation. it calls remove, create, then update
There are also additional changes to readNode and updateNode methods under tree_nodes.ts so that on read nodes if the type is a File then it returns an empty node children (It seems this should be the intention but let me know if otherwise) and update node takes into account an undefined node item metadata
hi @akshay-joshi, do you think I could get some help with getting some eyes on these changes? thank you!
hi @akshay-joshi, do you think I could get some help with getting some eyes on these changes? thank you!
@KijongHan, I will review it.
Hi @KijongHan,
I tested only one scenario: update the server group, which blanks the entire screen. I've attached a screenshot for the same.
Hi @KijongHan, I am closing this PR as there has been no response from your side.