
Selective workbook promotion (model cherry picking)
Selective promotion in the workbook. Now portions of the workbook can be promoted to the main model directly from the front-end - no more model plumbing to cherry-pick.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I can do a quick one um this is a continuation from what we I showed a little bit last week on incremental promotion from a workbook uh so I'm just in a fresh uh workbook I'll just build a quick couple changes so we'll add the sum and the average and thanks to to Jared we now have a pretty uh layout for what what these incremental changes are to with with um now correct metadata about whether or not these things are additions or updates to existing model objects uh or removal of of model objects as well you can remove uh some of the changes we've decided to require a branch change because the incremental update is a bit is a bit weird in our uh in
our model it can potentially depend on fields that aren't going to be uh coming with you know with with the change so like in this case this is a simple example these are all kind of atomic Atomic changes but uh if you create a view or if you create a field that's derived from another field for example too the way that our promotion workflow works it would go and grab all the downstream dependencies and then pull them back in but when you're doing incremental changes it could potentially be really weird for for a user to have you know say you know I've unselected a few fields and suddenly they're getting pulled in because they're Downstream dependencies we're sort of treating this incremental changes as if
it's a uh advanced mode and the way we want to protect protect the user is basically require a branch so um the promotion won't we're still working on the workflow but um the promotion will require a a branch to be able to to actually do it so I'll just create a simple Branch to show everyone uh here's a here's a branch and now I can actually you know update update this this will basically stage the changes to the branch in theory were you to eventually promote something that uh doesn't require or doesn't have all of the dependencies you can sort of manage it in in the that b Branch process before you merg it in but this this is now Jamie just to ask that
so that means if you just want to promote one field you have to go through the branch to do it yes which we I think we can make are we committed to that so it's a I mean I'm I'm open to it too it's just awkward otherwise we should I like we want to make it I just I almost feel like we're optimizing for the wrong side of the complexity in that I feel like the canonical thing is actually wanting to promote one thing that maybe doesn't interact with anything and now you have to go through like a really complex workf flow to go do that potentially it's it's hard though I don't you know we sort of have to Sol for for both use
cases you know simultaneously I think the simple way to do it basically be create a branch in effect from this this change to be able to have some encapsulation or staged process but I'm I'm open I I don't really feel terribly strongly about it I think it's it's something where we want to make sure or it's easy for the the default use cases and like you know I would almost say like block incremental promotion if there's dependencies and literally don't even let people do it but optimize for letting two Fields come through out of five that is not easy to do or not okay like we don't we just don't know the dependencies exist we'd have to build more things to go and check that
to to be able to go do it do we I think kind of do them right now if you right click promote a field is that not correct yeah that that will pull in dependencies explicitly so that that will go through and pull it we we don't expose though if there's dependencies or not directly in in any in any way on on either the objects or in an API so like there's it is possible to do we certainly do know that we do know what it is it's just not trivial to expose what's the concern about exposing it like you just want to show it to people no no no no you you you could I mean we just it's we basically this this literally
this button doesn't know whether or not these are these things have dependencies we just have to build that in we have to wire that in in which is possible it's just not done now I see so if you hit this button and it has a dependency it won't work right it doesn't work the same way as like promoting the field out of the field picker yeah it is a completely separate workflow because we don't the way when we promote a field from the the the field picker we do in fact actually go and travel all the downstream depend or if we promote a view uh also we it's a it is truly a new promotion construct that we it's a simpler promotion construct it really
is just taking the individual object and then um adding it to to the I'm could we is it crazy to allow you to promote a single thing in the left and actually do the same promote work well no no I it's not crazy at all it's something actually like I I originally thought about building just like a little but like because we we do have this you know this this because I feel like it's almost this being buried that is the hard part actually I I think that there's there is like I it it depends actually even go to actually our omnis instance you actually go and look at most of the workbooks powering dashboard to we've got a crazy amount of changes in in
most workbooks because people you know don't don't don't promote at all so like I I think that there's two there's two valuable workflows there's potentially the promote individual thing but then also promote a section of things that are are valuable for but not not actually and so like we you know it may be that uh what we want to do is actually just have like a promotion and I defer to Jared for sure on the the ux but maybe we want to have an individual promotion like thing here in addition to the sort of incremental things that are yeah just like a little arrow button that just shoots it down sort of yeah and that that would be to that exist all today I think
that I think that would solve a lot of my concerns at least because I I see what you mean like if you're trying to promote half of a workbook yeah it's sort of I feel like it is complex I just feel like a lot of the use cases are like I want to put these three measures down out of a big complex thing totally and shooting that into a branch is gonna feel terrible we could I like that too we could do that as the default Jamie of like the individual just like the button and then if you happen to be in a branch mode maybe then we open up this type of functionality if we wanted to I think that'll make it so that
no one sees it though which is sort of the same problem we have already today so like the I I think we should we should add I like I like the idea a lot of having the but the button in as like kind of my first pass of this uh so like I think that that is reasonable but we probably want to show somehow that that you can also do the sort of more complex piece to I even think you could leave all the arrows and stuff like this yeah it's more just like a little shortcut somewhere I don't I don't know to uh just to clarify on this one uh this top checkbox is the same as this check boox it just would collect
things under it although like the you could potentially have metadata on the uh the view too that could be so like you could have Chang why is the color different on it this one's an updating so basically you're updating the this view object which exists in the shared model already this one is a net New Field um and I see yeah and if if you remember today the way the model changes work it it's not to we have like badges for new objects and stuff too but the logic basically was inconsistent we didn't actually know whether or not this was a an an addition or an updating of of a field we looked at pieces of of metadata content to try and infer it now
we actually have sort of full full context there so this will be I think this is a a step forward but it's still like it's hard because you really want the full like in some cases like you may need the full metadata or like the full yaml uh you know we've talked about this before like you want to swap it to be able to go show it yeah got a demo let's see try and find the right right thing to share