Shorter YAML Dashboard Filter URLs

Nate Agrin · Friday Demos · November 6, 2026 · 3:48

Demonstrates replacing verbose JSON-encoded dashboard filters with a more compact YAML-style syntax. Shows conversion of existing links, date filters, model-defined links, and current…

Transcript

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

  1. Point number two. Um, okay, so you know, you've probably seen some of these filters on dashboards. Um, I'll show you now , sorry, I should have prepared this in advance. But if I quickly find a dashboard with a filter, you'll see that when creating filters on dashboards, the URL gets a little long. Um, so for example, if I do this, you'll see what happens here—it's actually a JSON-encoded string.

  2. Um, I was researching ways to shorten it, and actually I had this idea two or three years ago, I worked on it for a bit, but ultimately didn't pursue it. However, if you look at our modeling syntax, we have a great filtering syntax that we call YAML filters internally. It's really concise, much more expressive, and I've been learning what it takes to implement it into dashboards and replace all of our URL filter syntax with this YAML style.

  3. So what you see here is a basic representation of a filter: the existing filter syntax and what it translates to in YAML. And so, for example, the various basic operators "equals" or "is" look like this when we encode them in JSON, and this is how we encode them in YAML. I would say that this format is not only shorter in terms of URL compactness , but also much easier for humans to read and probably much easier for large language models ( LLMs) to process.

  4. Um, here's how it works. If I select Alabama and Alaska, you'll see the new encoding format at the top instead of the old one. We can also update and convert legacy links. So if I copy some JSON, you'll see that it's immediately converted to YAML format. Continuing the demo, we can specify years, for example. You see, we got time for duration.

  5. Of course, we still need to deal with URL encoding. There's no other way, but it's much less than, well, something like that. Um, okay, what else? Obviously, we can use this directly in links. Here is an example of what a YAML-encoded link would look like in our model, where we simply have users.state. And to prove that everything works, I'll click on that, and it should open the user's state of New York and apply the user creation date filter.

  6. So, there are certain limitations to this . Um, it doesn't work with dynamic filters right now . Apparently this doesn't work with cross- filtering, nor does it work in apps today. The main reason for this is that for all this we need to know more about the field we are filtering on, and we are also missing a bit of additional metadata.