
Model portability with Git (git follower)
With git follower mode, models can be deployed cross-environment for multi-instance deployment or dev-staging-prod workflows.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Um, thanks Loot. Let me see here. I need to share some screen. Which one is it? Oh, boy. I think it's this guy. Okay. So, I was just gonna preface. I I did talk to Chris a couple weeks ago and knew that he was like working on his um the API based model migrator um and and this is not an attempt to compete with that particular approach but uh was working with Russ earlier last week and and uh we were like oh we really need a way to kind of synchronize models across multiple regions and through dev stage workflows and stuff.
So um again not a not a competition but uh a another approach to that. So basically what we've got you can see I've got this one model. You can see it's following connection follower. This is the sorry this is not the right one. Let's go find the right one. And you'll note that um these are actually in the same instance but they can they can actually be in different orgs and even in different regions.
Uh I was going to demo this. This is live. I was going to demo it in um production. Uh but then I went to do set it up in playground and I was like oh playground is hijacked with somebody else's work that doesn't have this code deployed to it yet. So I am showing it in my local but uh this can absolutely be in in different deployment regions.
So you can see that this is despite having the same name uh for the model these are actually different models. Um and what I've done is I've gone in and I've created a new git mode called uh get follower. So this is the actual follower and it is running in this following mode. Uh this is the leader uh and it is not running in said follower mode but they're both uh both of these models are connected to the same git repository.
Uh, and now what we're going to do is we're going to go in and in the leader we'll make some change. Uh, let's see. We'll just add a description to one of the views. um create a branch with this new change in it. Uh you can see that I have the option to create a pull request. I'm going to go ahead and do that.
And yeah, I don't really need to add a description of the pull request. This is just a demo. So now I've got a pull request and um is there anything that we need to think about here? I mean you can see obviously go through your poll request review process and everybody's happy. Oh yeah, I like my change and then I'm going to merge this pull request.
And if everything works well, uh, we should be able to exit this branch. And you can see that the shared model, this is the leader, has received the pull request merge hook and has that content in it, the new changes. And if I re or actually I don't have to probably refresh anything. I can just come in here and sure enough this follower node has also picked up the model changes.
You could have as many follower nodes as you want. Uh and you could also do other things like in the setup that Russ and I were just uh got this working on this week, you could also have followers following a different um base branch in your git configuration. So for example, you could distribute your dev model across all of the your dev nodes and then when you're ready to promote that to stage, you could go in and from the dev branch or any commit uh that you want, you could create a pull request to say the staging branch and then when you merge that pull request, then it'll all be in all of your staging nodes across all of your regions and organizations.
Um what else should we show here? It's worth noting that um when you put a model into this follower mode, the shared and branch models within that um within the IDE are read only. So things like the um the file menu where you would do things like save and change file names and stuff is completely absent. Uh, I actually can't add new topics.
I can't, you know, change this model because this model is really just a mirror of whatever version of the model in git you've set it to. Um, it's very fresh, so there may be a couple holes, but and it's a very specific um, you know, kind of use case. Uh, so I wouldn't, you know, if you think you need this, let's chat and uh and and get it set up for folks.