
Git Integration V2
Progress on the V2 Git integration: removing automatic commit backs in favor of checks for invalid YAML, introducing a local-clone model with explicit push/pull buttons, handling merge…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Hello everyone. I want to show off a little bit of the progress we've made on V2 of our Git integration, which I talked a little about a few weeks ago. We try to respond to our customers' feedback and issues to make sure everything works as they expect: that their changes are not overwritten by our processes, and that when a pull request is merged, those changes are the ones that make it into Omni .
So, let me try to share my screen. Yes, there are difficulties with this . OK. Uh-huh . It seems I'm sharing all my Chrome tabs. So, to briefly recap what I did a few weeks ago: we're trying to build integration with Git in the same way that we developers typically interact with Git when building software. The first step to this was to remove these automatic commits .
Previously, if a user committed invalid YAML that didn't parse, or if their local Omni was ahead of GitHub and had changes that hadn't been pushed yet, we would automatically execute webhooks and commits that simply overwrote their changes. So in this example, the user committed invalid YAML, and we simply rolled it back. This is good because there are no errors, but it is annoying if you made a commit with dozens of lines of changes and the system rolls it back.
So we decided to get rid of these automatic commits first , and instead introduce checks. Here is an example. Now, instead of rolling back the commit, we leave it as it is when you push code with errors—no one changes anything in your branch, but we provide feedback on the state of that code. So, you will have some checks that you can configure to determine, for example, whether the YAML you have captured is readable and can be saved as a model, and then run validation.
We are working to figure out exactly what checks we want to offer and how we want to display them. We also want to add a more detailed comment that will give you additional information about what went wrong or what you need to do. So, that's kind of the first part. And this is aimed at ensuring that your interaction with GitHub reflects the way a developer typically works with GitHub .
And the second part is a kind of local component. That is, we treat your branch that you edit in Yummy as a local clone of your remote work. So to that end, we are making some changes to how this workflow will work. We talked earlier about how if you did something wrong, we would automatically commit the changes to your remote repository.
On the other hand, we also automatically added changes you made to the remote repository to Omni. So, if you made some local changes, the branch could have changed without your knowledge if someone else had already made and uploaded the changes. In the new structure of our V2 integration, we treat this more fully as a local clone of your remote repository.
This means that you need to pull the changes yourself . Just like how developers work —they have to receive changes, resolve conflicts, and commit their changes—it works the same way here. So we had to experiment a little. My apologies to the UX team for the top bar, because I had to add a few things and make a bunch of other changes while I was there pushing my own headline policy, but we'll talk about that in a minute.
Instead of one button for sending (push) and automatic reading, you now have "up" and "down" buttons. This means that there are two commits in the remote GitHub repository that you haven't downloaded yet. Clicking on this will download those commits. And this, you could say, you can't really tell the difference, compared to the inactive state, but it's active because you have local changes that haven't been applied yet.
Um, so we have these changes. Um, to actually make this work, we had to change how our... Well, there's a lot of internal changes that you don't see, but how we actually merge them together, because in the previous system, we just overwrote the data and always made sure everything was in sync, so we didn't have to worry about merge conflicts.
But in this system, it is necessary. Um, and a side effect of this is that you might have merge conflicts. Um, before there couldn't be any merger conflicts because we always just chose one side, um, for better or for worse. So, you did n't have to worry about it, but you also didn't have control over which side would be chosen in the event of a conflict.
Um, so for example, right now this is an example of a branch that has a merge conflict. Um, so now that means the remote and local versions don't match and you need to resolve that. Um, and the way we get around this now is that a pop-up appears that sends a side branch and just directs you to resolve this conflict on GitHub.
Um, which I won't worry about for now, but it is what it is. Um, and one other thing I wanted to show is a general, um, I don't know . This is just my...I deviated a bit from the plan here, and the UX team will need to do a good job to make it look nice, but these are the ideas I had about how it should behave relative to Git.
Um, I hope this is an example of, um, the previous, yes, the previous headline. So, in our current integration, we have this, well, here are your draft content. If there are any, it's a link to your pull requests, you have an update button, then the branch name, and it all looks like a menu where you can switch branches.
Um, so I'm just trying to rethink this workflow a little bit. Here are a few points: This is now a branch switch. Um, and it's just, yes, no...All of this could change, but you can switch your branch here. Here's your, let's say, branch, well, branch action menu . Um, like I said, up and down for sending and receiving.
Um, changes to your documents, for example, it shows the number of documents that have been changed, so you can see that there, instead of relying on dark or light gray. Um, and also added an external link icon to show that this leads externally, and also a breakdown of the specific merge request so you can see it, and it will link to the merge request, and so on.
Hmm, well, that's about where we're at now . We're still figuring out how everything should work and all the complexities involved, but this is the current state of affairs. And, um, yeah, let us know if you have any specific wishes about how this should or shouldn't work, or any thoughts at all. Okay, thank you.