
Bugfix for dash tiles moving on save
We finally got to the root of a frustrating bug that was moving visualizations on the dashboard after unrelated edits.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
do a quick one sorry Luke I'll be quick um I'm going to cheat on the uh showing what the old Behavior was because I don't want to uh change branches but we got a longstanding bug where uh dashboard tiles just magically rearrange and I was able to pin down the case is where that happens uh it's largely from editing labels it can be from other stuff in that popup too but as you can see this tile started over here it just switched over there uh the fix here was uh whoever built this and I actually didn't even look to see who it was uh smartly correctly tried to debounce the requests unfortunately debouncing in remix components is very finicky and the remix component was rein
instantiating the debounce every time which made it not debounce uh and in fact it probably made it worse because what would happen is you would type all of the uh requests would sort of queue up and then fire at the same time and cause this race condition um and so now we are properly debouncing and uh promise that I've been trying to get it to rearrange a lot and I have been unable to uh so let's see as you can see it did not snap back to the um so I'm going to do an audit on all of our debounce use cases to make sure that we're uh doing that uh correctly um I should also note I I this should mitigate the problem substantially
uh there is like a root cause fix here that will make this literally impossible um but that is a bigger lift so we're going to we're going to Prior I that alongside some other dashboard improvements we have coming up and additionally prior yeah no problem I'm gonna release this shortly uh if you see it if you continue to see it just shoot me a note um I've got a lot of context on it so I can immediately go in and figure out like oh you know is this happening somewhere else that I didn't catch or something like that