You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In topcat, I navigated to a dataset with a lot of files (this one has 1401). I selected all of them and, after a bit of a wait, I had 1401 files in the cart. If I changed my selection - for example, unchecking 2 boxes - it took a while to process and then the 2 boxes were unchecked. If I re-checked the boxes (quickly), it took a while again, then only re-checked one of the boxes - the other reverted back to being unchecked. I could then recheck the unchecked box again and, after a while, it was checked (and added back to the cart) or if I uncheck/recheck a different box, the 'pending' check is corrected.
I suspect this may only manifest when there are a lot of files selected and the time between 'checks' is shorter than it takes Topcat to update the cart.
The text was updated successfully, but these errors were encountered:
Topcat does a lot of processing when items are added to the cart. If I recall correctly, for each new item, it needs to check whether the item's parent entity is already in the cart (in which case it needn't be added), and whether or not the new item is a parent of any current cart members (in which case they can be removed). I doubt that the code is clever enough to detect that the large number of items being added in this case all have the same parent, so it probably takes a while. I wouldn't be surprised to discover that removing a single item from a large cart could also be slow (though this seems less likely). Since all these operations are asynchronous, it's also not surprising that some UI events get lost, though determining exactly how this can happen could be difficult.
A proper fix would probably require a serious overhaul of the selection and cart construction code; and that's unlikely to happen.
Steps to reproduce:
In topcat, I navigated to a dataset with a lot of files (this one has 1401). I selected all of them and, after a bit of a wait, I had 1401 files in the cart. If I changed my selection - for example, unchecking 2 boxes - it took a while to process and then the 2 boxes were unchecked. If I re-checked the boxes (quickly), it took a while again, then only re-checked one of the boxes - the other reverted back to being unchecked. I could then recheck the unchecked box again and, after a while, it was checked (and added back to the cart) or if I uncheck/recheck a different box, the 'pending' check is corrected.
I suspect this may only manifest when there are a lot of files selected and the time between 'checks' is shorter than it takes Topcat to update the cart.
The text was updated successfully, but these errors were encountered: