
Embedded Demo
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
we got a couple let's see if this works this one kind of flew under the radar but a couple weeks ago I made it so that um embedded if frames can communicate out their sizing uh and the first place it's implemented is in this analytics tab uh basic basically when we first built this internal analytics thing it it is an if frame pointing to a different Omni instance and the height was just statically set to like 3,000 so if you clicked on this thing you had to scroll way down the page to see this login um button much to my surprise no one complained about it but in the course of fixing it uh I reintroduced this like it's not really a bug it's just
the iframe would render and not resize itself so it had scrolling inside of it and uh Ariel really does not like that so somehow that was discovered very quickly but like the login screen being off the screen no customer complained about so uh in any case now login screen is here and so when you click this and log in in theory there's no inner iframe scroll bar because the iframe is communicated out to the parent what the height is and that's the only way to resize if frames dynamically um so there's that the other thing is uh we've built this little demo embed website that I think most folks have seen uh the main thing is it's live it's hanging off a subdomain off our
Omni uhco top level domain login is highly secure admin admin maybe scrub that from the from the recording but once you're in here you can switch between these uh these embedded dashboards it's pretty nice pretty quick you can switch to dark mode pretty fun um and then I dropped in a new feature the other day which is now you can log out and then the last one I'll demo real quick is um been working on building out this this like idea of uh an integration test suite for visualizations and I really just wanted to make it as easy as possible to to build a large uh surface area over the tests so um this is the main test I think I I can't remember if
in in earlier demo I walked through this but the basic idea is like we need four things really to cover a large swath of the viz pipeline we need the data from a query result we need the list of fields uh and this is not just the string names but actually the the fully formed like fields that the viz cares about the query object and then this quite large object that is like the internal configuration for the viz and then from here what happens under the hood is the viz pipeline takes all of these four things and uh converts them into effectively a Vega config and sends that to the viz um so I'm not going to go super deep into this pipeline how this
all works but uh what it basically does is it it takes all of those properties uh sends them to Vega gets an SVG and then we uplevel the SVG into a bit map um to to be able to do basically like U visualization or Vis visz diff testing and the idea here is like you change something in the render pipeline that suddenly dramatically changes the way like a column chart is rendered um this image snapshot testing should catch that um okay so getting all this stuff is super laborious and really really painful um and so what what I've been working on is making it super easy to just have a single place where we can drop in these test cases and enumerate them and uh
in addition to this I've also built in this little helper in the UI that um makes it so wherever you are uh you know like basically on any instance once this is deployed you should be able to come in here and click this copy button and drop it in here then you have to give it a name because the tests need a name but you say like demotion test um and then if the gods are with me this is my Snapshot test you can now see I have this new one it ran um and if I go back to my folder I can pull up the new test right so you'll notice that this line chart doesn't look anything like this line chart and there's
a good reason for that um the way that we transmit our data is in Arrow and arrow has some pecul peculiarities around how it encodes a lot of its data and you can actually just uh jsonify an arrow payload um for a couple reasons but not the least of which is that it really likes to encode its numerics as big ins in JavaScript and for reasons that are Beyond me uh when when big in was uh introduced uh it was not introduced with a mechanism to to jsonify it and so um because of that and also because you know a lot of times the data payloads can be very large uh this is actually taking a random sampling of the data set for dumping it
into uh Json um so this down sampling is intentional and uh the other thing the sampler does is it um it basically converts everything so it can be jsonify in a somewhat reasonable way um so yeah there's still some things that we need to improve here like you know it'd be nice to not cut off the Y AIS uh but as a start I'm pretty satisfied with this and it should at least give us some some surface area coverage that's what I've been doing in the salt mines