cloudant / sabisu

A sensu web UI powered by Cloudant
https://sabisuapp.org
Apache License 2.0
31 stars 6 forks source link

search race condition #16

Open cbarraford opened 10 years ago

cbarraford commented 10 years ago

There seems to be a race condition where if you hit "search" button while sabisu is updating the events list, you search results are display (sometimes not) then get immediately updated to the old search query results.

This is a bug due to the real-time feature of sabisu.

mattwhite commented 10 years ago

I wonder if there is a way to cancel updates that are in progress? Probably not, as that would leave the UI in an inconsistent state. What might be better is to make sure that updates are serialized. So don't process the results of a search operation until the previous UI updates are complete.