
Model extension and branches
We're going deep on building out the modeling experience for model extensions (think personal, departmental mini data models) and branches.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Hey everyone. Let's see. Where do what do we want to see? This one. This one. Oh, hid my chrome. Where'd you go? All right. No, this isn't what you want to see either. This is what you want to see. Okay. So finally getting back to some work around shared extensions and um wanted to did a little bit of work on branching with respect to shared extensions this week.
And so before I show that, I want to show kind of the current behavior which is if I um here I'm in an extension model here. I'll open a tab to the parent currently. If I create a branch uh or enter a branch in my extension model, um it it groups the branch all the branches together with the shared model branch and the and any extensions to that shared model.
They'll all enter into that same branch. And if make changes whether to the extension branch or to the shared branch when it gets merged they all get merged or promoted together. Uh and so you see I I went into a branch here and this branch is um need to refresh it for it to pick up that now we're in a branch but shared models also in this same combined branch.
Um if I you know make a change within the the branch um you know just show that uh that's there. So come back over here. I'll need to refresh it for it to actually pick up that. it. Um, you can see that this extension model is within the same branch. So now we've got actually I'll show the the change.
You can now decide if you want to be using this combined or grouped branches mode or you want to be in an isolated branches mode. Uh, so now there's this new branch settings. I'm actually going to probably combine this with the source settings so that there's not like uh bloat in the menu item, but I can choose to use isolated branches for this extension model.
And you'll see that now it's like I'm not in that branch anymore. It's not in any way associated with the um with the shared model branch. Uh and you can see like it's no longer in that branch. it's not picking up the changes in the shared uh in the shared branch. Uh if I come in here, I also don't have access to the branches that are associated with the shared model.
So I can create a new uh a new branch here. And this branch is, you know, independent of PG demo. So you can see I'm demo isolated. If I go to the the shared model, it's still in its demo combined mode or branch. Um, and if I, you know, exit the branch demo combined, it's independent of, you know, that didn't make me exit my branch that I'm in in the extension model.
And if I, you know, change stuff in here, merge it, it only relates to, um, to this extension model. It's not all grouped together. So, said a lot of words to show maybe not all that much, pretty complicated under the hood. Uh, and this is sort of the foundation for the next step, which will be getting extension models into uh, our git integration.
And this will sort of in some ways define how the the whether an extension model should be in the same git repository as the um as the shared model and other extension models within that grouping etc. Um speaking of git just one like PSA announcement we had like a bug. It was on kind of a memorable day for Omni.
Uh but unrelated to the outage on that day, which was probably the worst outage that Omni ever had. Um but we had an issue where if you configured multiple Omni models to point to the same git repository, then you would be configuring multiple web hooks. And so the web hooks would fire when anything happened and it could lead to some race conditions.
uh and clobber the git changes. And so what we did in response to that was disallow mono repos for like multiple omnimods and models in the same git repository. Last week, I removed that restriction by making it so that uh when you link to an ex an omni model to an a git repository that's already in the system, it just uses the same web hook and deploy keys etc.
So that the there's not more than one web hook coming in and all the actions in response to the web hook are serialized. So there's no racing. So just a heads up that now it is okay to have more than one omni model in the same git repository. Just a super quick question about that. Is that going to impact get follower as we know it today?
No, everything should just continue to work exactly as it has. And if a model set up as a Git follower in the same repository and happens to be have the same base branch, it should do what it's supposed to do as a follower model when a PR gets merged uh to that base branch. So should not in any way negatively impact or really change the behavior of follower models.
Awesome. Thank you.