
Model automatic error fixing! (coming soon)
The most difficult part about maintaining a data environment is the constant cleanup required as business logic evolves and transforms. Inevitably, the outcome is errors in the data model.…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
uh I I can go first one is a small thing and maybe almost more embarrassing it wasn't like this to start with but just very simple if you've got a uh numeric time frame and you put a filter on it oops not that it now gives you numeric filters so can do first 10 days of the year here uh pretty basic should have done it that way in uh whatever April 2022 but uh didn't now it works like that hoay all right uh the other one so that that's that's released um this one's not released um so it touches on this thing we're talking about in product Forum last week so like I've just got this model locally where I've just gone through and broke
a bunch of stuff right and I have all these erors and it's a nightmare it's like what am I going to do I don't want to spend my time fixing all these errors especially like let's say my model's been working for me like you know my the four dashboards that I have in production are work clearly I don't care about these erors I just want them to go away I don't want to do any work uh so um that these little beautiful buttons that will need some Jared love or something but each of these errors now has this little autofix button and I think I went through and clicked on all these buttons and they work so it I think it would take too long
to go through each one and be like here's what they do so instead I'm just gonna start going through and just Mash Mash mash go away go away go away go away go away go away go go go go and then oh there's some long tail so there's a couple like this one well I'm just not it's good this is going to take too long to explain all them but I mashed the button all the ER went away except one which didn't have a button and there's like there's a reason to say like there are a couple erors which if I were just Mash this button without thinking about it and remove default topic required access grants I might like open up all my topics
to this way that I don't want so there's a couple that deliberately not done that for but basically the principle here is some of these fixes like if you're thinking about this is being software you wouldn't want to just go through and like do start carving stuff out of your software because you might create these like cascading failures but a data model isn't really software in the same way like it's all about just the thing that it exposes to the world and if something's broken and no one's using it you can just delete it um so that's the that's that's that and now if I guess I'll show this real quick it it actually won't really mean anything to anybody but this was actually the
hard interest part well the other part was a lot of tight things but um it also works in a branch which is the thing about a branch right is it's actually completely different like all of these fixes needs to be need to be little things that end up in the branch so like if you notice right the branch has nothing in it right now and so I'm just going to go through and start clicking buttons and you'll see things are showing up in the branch things are we're overriding topics we're deleting topics we're changing things we're removing things same deal it all worked now we have variety of things in our branch and I actually don't know if I tested this but let's just try
it hopefully when I merge this all the errors will be gone it's a good test of our full the real stress test of our extension utilities hey it worked it's just this one air uh yeah okay I don't want that I don't even have any topics anymore so there a lot there I didn't want to go through air Byer because that would take too long but um yeah it's certainly as soon as I wrote the feature and like started playing with it locally as soon as I had an error that I didn't opt into the feature it got it was really annoying I was like I just want to putli the button and make the error go away um so like it it made me
proa and some that I initially had made Auto fixes for I went back and did because it just it's it's nice like like a topic having a bad access Grant at first I was like oh that's not Auto fixable I'm like no the auto fixes delete the topic how's a bad access Grant it's totally broken if no one's noticed delete it so anyway that's the that's the principle um I think it's legit and pretty real I'm G to get it in next week it goes well so hopefully freaking cool there I love it when we do stuff that's like Why didn't it work this way it's to me that's like modeling from the front end really similar it's just like why would you why would
you drop into emo when you could just press enter and this is like why would I go find the fix when I could just press the button yeah yeah I mean I think while we're here if this is being recorded too and part of the demo best practice should be probably make a branch and start mashing these buttons but you know you know whatever do what you will we have a great internal model for this