User specific model layer (for localization)

Conrad Slimmer · Friday Demos · May 2, 2025 · 4:41

More work on user-specific models, showing how this will work to localize data models. This will have many applications for more complex permissions and layering of models.

Try it yourselfThe full week on docsadministrationmodeling

Transcript

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

  1. Uh, I guess that's me. Um, let's see here. We'll share this guy, I believe. Yep, that'll do it. All right. Well, uh, so want to quickly do just a quick reminder of a demo I, uh, showed a couple weeks ago. it's a big project and just want to show the progress that we're making there. So a couple weeks ago I showed this new dynamic shared extension models and the way that I did that was I showed like an approach to localization.

  2. Uh so here I've got my user attributes French. Uh you can see that in the main shared model I've got my values for the model um for the shared extension model that should be up layered on top of the shared model uh dynamically based on that user attribute. And then I've got my um my actual the extension model and this is the French one.

  3. And I've also got a Spanish version and we could add however many different ones we want. Uh so that's just the reminder. What I've been working on is um making branches work in the context of shared extension models. So what we decided to do and we may actually have multiple approaches for branches. Maybe you want to run in different modes, but at least initially uh I go in create a branch in the shared model or if I'm in the shared extension model that will actually create a shared branch.

  4. Uh so, oh yeah, it automatically makes these get branch friendly. Uh so now I've got a I'm in a branch. I jump over into my uh extension model. If I refresh, it'll notice that now we're actually in a branch. We're in the same branch and this is grouped under the um the you know the shared branch. And so now if I want to come in here and you know, I don't know, I do not know French, so I'm not going to try and make a cuter label, but I can save this.

  5. And uh now if I jump into here, um this will notice that we're in a branch. And I so this is a workbook that's based on the localize me model the main shared model that is picking up my shared extension and you can see that now I can uh layer in just the branch enhancements. Uh if I exit the branch um you can see that the change there that I made I did not know French is no longer there.

  6. Um, and uh, you know, if I go back into the branch, it should come back. And you know what I really learned uh, in doing all of this is um, that caching is hard, but just to show you uh, this will invalidate the cache. Um, yeah. Still don't know French. Uh, I should be able to come into the main model.

  7. Um, oh, actually I think I this this one I would need to actually I can add a new dimension. Uh, so I can also modify. Oh, ah, the fun with live demos. I'll have to come back to this. Uh, but you get the point. We're um we're moving towards having like a cohesive branching strategy for shared extensions and um it's it's coming together nicely.

  8. Next will be all the promotion stuff. So grouping promotions together and then integrating all of this with git so that you have a full uh end to end life cycle for developing these shared extension models. Um, and and there's actually quite a bit of more work to do here, but we're