Synchronizing targets 0 ▲ Mark Smith 15 hours ago · Tech · hide I realised last week that although I had gotten seemless onboarding working a while back, I had forgotten an important part. You see connecting up a user‘s repo to your server app is only half the battle, though crucial obviously. The other part that's just as important is what happens when a user goes back to their app settings and adds or removes repos from your app. That of course needs to work too. I had completely forgotten about that and I had that sinking feeling when I clicked the buttons to add a repo, and saw that a bunch of errors appeared in my server logs. Luckily when I wrote the connect part I had envisioned I would need at some stage to do this and so, in the underbelly of the server business logic, I had implemented a syncTargets methodand and was using it for the initial connect. It creates all the necessary database records, all atomically, works a charm. The tricky part was to add a new handler for this type of webhook that is received from Github when these events… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town