
User attribute debugger UI
Validating a complex system of per-user variables can be challenging, so we're building a front end experience to control user attributes for quick debugging and faster modeling even in the…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Okay. Um, let's see. We'll record. I wanted to jump in early so I can try and set up the second one if I'm able to. Okay. I need to preface this by saying that um this is a feature request that we've seen that's kind of like near and dear to my heart. Uh, but has not um, you know, it's not like a top priority on our our roadmap.
So I've sort of been working on it in my spare time and as such it's still like really rough. Uh it's to a proof of concept stage where we can start to think about like what do we actually want to do with this technology and how do we want to present it to the user and then there's still quite a bit of work to get it to production ready.
So, um, there are going to be a couple customers out there who are really excited about this and I just want to like temper the excitement for them by saying like, yes, we're going to do something that will support this. It's going in this direction, but you're not going to have it next week. So, with that, um, okay, just to kind of give the background here, I have a, um, I have a dynamic connection set up.
So I've got this local connection. PG local is the name of my connection. And in that connection, I've like added this additional table and but I've got it set up with connection environments. So this is like a different connection I have that doesn't have the the this table that I've added to it. Uh and then here in user attributes, this is the um the attribute that actually switches that connection.
Um, and you can see I've added this new uh toggle here to the attribute setup page called user setable overridable. We'll figure out the the names. And when I do that, then I get this dropdown uh that allows me to select what is the source user attribute for the attribute overrides that a given user is allowed to apply within uh certain context.
So in this case, I've got um I'm talking about my dynamic connection. This is like the base attribute. And then I'll be able to the user the end user will be able to set override that attribute uh based on the values that they are allowed for this allowed dynamic connection overrides attribute that I've created. Um if we jump into my user currently let's see uh oh look I I am allowing overrides.
um just to kind of like well we we'll show that at the end. So then if I show you I've got this um this query tab open and on this query tab I'm currently using the default connection which does have this table users copy in it. I've got a query up, but I've got this new widget over here in my bar.
And basically, this uh widget's going to be populated with all of the attributes that I am that my user has values that they can apply as overrides. And so if I switch this attribute to the docker value, um then and it that actually doesn't trigger a full page refresh. Like I said, this is super uh super rough at this point, but you can see that that that table doesn't exist.
So I just switched my dynamic connection by overwriting my user attribute in the context of this workbook. Uh it's it's totally ephemeral. It just lives in the um in the URL bar and uh you can see that like that makes it so that the the views that I'm also using schema switching in this case so that user's copy is no longer in this thing.
I can turn it off and uh go back to the default and you'll see that now users copy is indeed in the thing again. It doesn't trigger the refresh uh the reload of the the query but now that query will run. Uh just to kind of show a little bit more on this. If I were to go in and make it so that my user is is not allowed uh doesn't have any allowed values for that this source attribute uh and I come back in and reload over here, you'll see that I can no longer change the attribute for um that particular dynamic connection or override provide the value for the dynamic connection attribute.
So, this is all configurable on a per user basis. It supports the defaults and all that kind of stuff. Um, time zones always overridable. So, that's like a nice little enhancement. Uh, this is just like one use case for this. So, the the original request was to to make it so that we when we have dynamic connections, some users are allowed to switch them.
Um, but what I thought would be cooler was to to build something that's totally general. So, you can imagine other use cases for this would be like I've got I'm a developer and I've got I'm developing access grants and I want to see what it would be like to switch my user attribute values and see if the access grants are doing what I expect them to.
Um, I mean, basically anywhere that you can see user attributes, it's like a mechanism to be able to to test out and and switch contexts. So, I think there's tons of application for this. I'm really excited to to push it forward and I'm excited to share it so that we can start to get feedback and think about, you know, what what this uh really should look like in the future.
Uh, Conrad, this is Becca. I had a quick question. I was curious, do you see this mostly as like useful for like uh doing QA as folks are building or I'm just curious like at the uh like what you're building toward? I mean, I think that's a a a prime use case, but I actually think that it's got tons of applicability.
So like we have a customer for example who has a connection in the um in the US and a connection in the EU and some of their customers are allowed to use both of those connections and they would like to build content on top of those connections but then be able to to like switch which region they're looking at depending on their, you know, without having to go in and I mean, not all users are able to switch their user attributes.
And so that particular customer, the the way that we've solved that is actually to have two separate connections, not be using connection environments and dynamic connections, but instead actually clone the model to their, you know, basically have a git follower setup where they're doing, you know, one of the models is is is on in follower mode and then they have to, you know, copy their content to both both of these models and stuff.
Whereas doing it this way would allow for basically having a nice clean way to just maintain the the content and the model in one place. And then users who are allowed to see it for different source models can do that wi without having to like right now you could go into a branch and turn on you know branch connection switching but that actually doesn't have the same security profile that this has where you can specify which users are allowed to switch to which connection environments and stuff like that.
So I I think that um I think it's got potential to be a huge unlock and yeah definitely for for user acceptance testing and debugging and things like that totally useful for that but I but I think there's actually production use cases as well that that we'll start to discover what they look like. Awesome. Thank you so much.