Git schema refresh (very soon)

Conrad Slimmer · Friday Demos · October 4, 2024 · 7:10

An early look at a new always-git mode for schema refresh. Soon development team will have the option to also force schema refreshes through a pull request workflow.

Transcript

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

  1. I'll hop in with uh what I've been working on and I also uh have to preface that you know I well one I've been jumping around branches so there is a definite possibility that this will just fall on its face this morning but I hope not so copy out one uh number two I spoke with Stephen yesterday like oh maybe I should demo this it's really not ready it's it's at least a couple weeks away before we're um seeing this functionality in the product because it's really the foundation for some other work that we're doing to to make it so that customers so that our G integration never uh pushes to the main branch um but just playing with it yesterday I was like this

  2. is actually pretty cool uh and might even be cool outside of the context of uh git and so why not demo in its current state and uh think about um if we might want to you know build some UI around it even without the the git interface um just give me a moment I need to this my new computer first time I've ever shared and so it's wanting some system settings upgrades uh oh I'm going to have to quit and reopen one moment people all right and I'm back let me get over to full screen all right so here I am I'm in my ID I'm going to um I'm going to jump into a branch and now I'm in a branch and now I'm

  3. gonna come over here and I'm going to oh before I do that I've actually got to go make some uh changes in my target database so this is my customer database and I'm going to go ahead and create a new table in here this would also work if I we're just altering an existing table uh so you know now you can see that I've got this new table I've just created um not currently in you know either my it's not currently in my schema essentially uh so now I'm going to go ahead and refresh my schema I'm running that refresh schema right now and done with that and you can see here we have uh new to table got generated in my schema model um

  4. just to prove that it's only in my Branch schema model which is a Brand New Concept I'll just leave oh oh because I was in there that's fine that I can't find it because doesn't exist in the uh Beed model uh and I was on that so that was sort of expected and then if I jump back into my Branch you can see yep now I've got my uh my new model or My New View and just to show this all works I'm going to go ahead and promote uh that change and when I promote it into the shared model that will push this new Branch schema model into the main the non Branch schema model and uh here I am in shared and My

  5. New View exists there so quick demo this is uh this is the foundation of uh being able to have our git integration never push to G so excited to continue working on that and uh excited to share and and the idea here is this is probably just a def fault experience when you turn on git right or what's what's your thinking there I I think this is the this is definitely the default experience that I if you turn on I think it depends how rigorous you want your your development workflow to be right I mean right now we have the option to require pull requests well we're we're we're lying about requiring pull requests in today's world because if you hit refres schema that just

  6. changed your model we pushed to your get main branch because we need main to be in sync um but some people want to work in that way I I think this is actually pretty interesting even outside of the context of a g integration because you know uh I I used to make the argument that like hey you know refresh schema it's live I mean that's what's in your database why wouldn't you just want that live um because if there's stuff it's broken or not broken right but um I think you might actually want to refresh your schema do some modeling on on that before it goes live to your Omni model right and so you might actually have some new fields that are sensitive and

  7. you want to hide them or you just don't want to expose them to the model until You' you've gotten a chance to curate it and so I think that this is quite likely um useful outside the context of git and yeah whether we make it the default experience or not is is probably a question mark Mak sense Conrad what would happen if somebody has like schedule refresh uh like a scheduled schema refresh what do we do yeah so we that's part of the reason why it's like well do we make this only in git and blah blah blah but but most likely this will be a flag that you turn on that that requires pull requests for for schema refresh and in that case we'll

  8. default or we will'll likely disable um both API and scheduled schema refresh uh in theory we could we could have those so that they the schedule created the P the pr for you um but at least in the initial cut it will be that you cannot use schema refresh when you're when you're in that mode use them so don't use them together is the answer now and then maybe we can tie it so we just Auto open stuff okay exactly that makes sense