Dashboard filter improvements

Dashboards Filters · Friday Demos · August 2, 2024 · 2:45

A bit more work to improve performance when filters are left empty.

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. uh I can KCK this off a quick one I guess um I took a little SAR to the side and tried to see if I could make dashboard filter URL parameters or like what gets serialized in there smaller um so this left tab here is demo the only reason I'm on demo is just because it hasn't gotten the code update yet um and then here's playground which has it two orders overview dashboards I guess are a little bit different but we really only care about this state filter here so here's the old behavior um they kind of two things that were a little stinky the first one was I'm not even going to change anything um and you're going to see the URL change so

  2. like this is the exact same filter as the default filter but we changed the URL and we did another query run um and then just to show what it looks like if I were to like add a value here uh will take a sure update you'll see we've got a big string here um and then similarly if I go back to my default you'll we we still store it rather than clearing it out um here's the new code if I go to State and I put in Alabama I guess um we just get a stram that's this small uh and similarly if I were to strip it and do the default filter we just go back to no for at all does this make it

  3. any easier for um like embed customers who are programmatically trying to like encode filters um maybe well like they still have the overhead of like understanding that it's an encoded object there um but if all they're concerned with is changing values then in theory they would only need to like update one key in a smaller Co in a smaller component I mean it's not I don't think it helps them that much TBH but easier for them to look at it nice well sharing is sharing better then if you don't have the stuff in the URL um or should should still be so I think there's there's there were kind of two problems at play or or like thought spaces one is serializing big things and

  4. two is materializing in a way that is more human friendly so I think this was the F the former and I think there's still thought to be done on the latter