-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
No way back after deleting the webhook integration #3932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ultimately, the number of folks hitting this is probably very low, so this will be low priority. Also, if the user intervened to disconnect the webhook, they can be responsible for manually fixing this as well -- and we have some directions here at least for now. Having a resync function on the webhook also addresses this issue, as that is the actual functionality you're going for. |
A couple of additional things for folks being affected by this bug:
@agjohnson @humitos happy to file separate bugs for these issues if it helps. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This occurs in more cases though. With the droppping of the old github system I got 7 emails about projects that were going to stop working even though I've got the github auth set up a long time ago. Perhaps the repos are older than the github integration though, that's a possibility. In the past all of the repositories were listed duplicate for some reason and there was no way to filter/search projects. Not sure about the current state of the system since I'm seeing no repositories there and pressing the refresh button results in waiting for at least two minutes (not sure if it will ever finish, but I've been staring at the loading icon for 3 minutes while typing this reply). |
Yesterday, I was bitten by this again. This time in a different case.
At this point, I request admin permissions to the organization the project is under, and I was granted. Now, I don't have a way (without deleting and recreating the project) to make RTD to re-create the webhook on GH automatically. |
Can we not just call
|
I have looked into this issue a bit. There are some things we need to figure out about this issue before we can proceed. We can use
Or, Another approach can be having the re-synch button on the integration list page with a message like this:
|
That makes sense.
Not sure I follow here. I guess we should think through if we should even allow multiple of the same integration on the same project -- I don't see a great reason for it.
Won't the sync button be on the integration detail page? So, we'd just sync that one.
We should likely only try to automatically sync if we have a social account attached to that service for the user -- these others cases all just seem like places where we can ignore auto-syncing and just create the integration normally. |
I think this is a good idea. Now we are allowing the creation of multiple integrations for the same service, which I think has no use case.
If we give the ability to sync multiple webhook for the same provider. then the repo will have multiple webhooks attached to it and send the same event multiple times to our API from different hooks and we will build the same thing multiple times.
Yeah! I agree. but even if the user has a social account but wants to create a webhook for a different provider we should ignore that also. :) |
I'm 👍 in the listed use cases and comments from @ericholscher. I see this as "two different type of webhooks"
I'm interested in auto-resync 1) because we have everything to do it and fix it. The other ones, 2), there is not too much we can do there because we don't create those webhooks in the service platform. |
@humitos So, We should only have the re-sync functionality for the webhook that is created by RTD on project setup? If the initial webhook setup is valid we already provide a re-sync functionality on those cases. so we only need to have the re-sync functionality when the initial webhook attachment fails. |
I think you are right. I'd say that we also need to be able "re-create" the webhook if it was removed (for some reason). |
Yeah I agree. But the issue is what should be the UX for normal webhook creation and RTD Project webhook creation and how should we distinguish between them for the users. |
We should be able to re-sync any webhook we are able to re-sync. It doesn't matter when it's created. That's all we need to do.
|
Makes sense.
But can I create another github webhook? if yes then i'll have access to create and auto sync as many webhooks as i want for a single repository the we don't want. @ericholscher My concern is that if the user already has multiple webhooks created for same provider then what should we do? we certainly should not let him sync all of them and attact multiple webhooks to the same repo. |
For now people can create and resync as many as they want, I don't see a problem with this, really. |
@ericholscher sure! But we will receive multiple webhook requests for the same event and build the same thing multiple times. |
Sure, but that isn't the problem we're trying to solve here. |
This issue is related to this other one as well: #5062 |
Steps to reproduce it:
Now, at this point, you have a repository completely disconnected from GitHub: none of them knows the other part.
At this point,
This integration lives under RTD but GitHub knows nothing about it yet. To make it work, you have to go to GitHub settings and add it manually.
I'd expect this to be done automatically by RTD if I'm adding a known integration (not a Generic one).
The text was updated successfully, but these errors were encountered: