More better content validation in branches

Mariel Freyre · Friday Demos · June 27, 2025 · 4:06

More work to streamline content and model edits in branches for non-downtime dashboarding as models evolve.

Try it yourselfThe full week on docsadministrationmodeling

Transcript

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

  1. Cool. That makes me next. Uh I'm Marf. I've been working on the content validator code. Last week I demoed something that I'm going to actually need to set up again for this demo. But basically the concept of like the project the project I've been working on broadly is making sure that the content validator is safe to use with branches and branch branch attached drafts.

  2. Um I said I had a hard time working on this codebase. It's mainly I think because of my poor pronunciation and eleution. So hopefully I can hopefully yall understand me. Let me know. Um but the main thing here is we can create a branch now. Test demo June 27th. And now we're seeing the same documents here but we are currently on we're looking at our um branch.

  3. We're gonna be on our branch model here. So let's say I'll return to this content. So for instance these queries like just maybe trust me this order status uh is referring to the order items underlying in the model table. So um because it's relying on the status and or counts. I think I can mess with this by changing the model.

  4. And we're going to make sure that the content validator catches that change branch. Go back to the validator personal content and you'll see yes, this is changing. So now the like the additional work on top of this from last week is that here we have a situation where your model changes on your branch have interfered with the like rendering of a published document.

  5. So when you merge your model in you'll have an you'll cause an issue and cause this to brand to break if you don't make a change here. But also we have the problem of if you replace this document in the publish document it's going to update that value for all of the like for the document on main.

  6. So everybody using or relying on that query is going to experience like a breakage and there's like we want things to be things are not in sync with your with your branch. So now what we're doing is we're going to create a branch. We're going to create a draft from this publish document. Um when we replace things we're going to say order items counts order item count replace.

  7. And now so no such field actually typo here and then well but okay so essentially the well okay this is breaking but now this is a this is a draft this is the good thing um but I can demonstrate this broadly too with for instance if I want to replace a view say order the users and events we can create.

  8. We can now this users document that was a published draft is uh using it's now an event and it's broken now because I did create that was like kind of an absurd change but I can hopefully change this back here and it says fix this this document. Um, this I think is probably a bug in my field in my field replacement.

  9. So, I'll have to sort that out before I ship this. But the main like point of this is that the content validator is like and the changes brought through the content validator are not going to impact um the main like the main branch. So, when I exit this branch, we see all the documents like for the main branch on the content validator are unaffected.

  10. they're still published and nobody is going to be affected by any of the updates to your documents that you make on your branch. Okay, that's all from me.