-
Notifications
You must be signed in to change notification settings - Fork 3
Block integrations page when using GitHub App #595
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
base: main
Are you sure you want to change the base?
Conversation
Why block all integrations from being created? I get GitHub is in conflict, and Bitbucket/GitLab aren't useful for GHA projects, but generic API integration would still be a valid integration. Feels like what we want here is instead:
|
Also, if there is a problem with the GHA integration where are we going to point users towards to debug? For example right now we can point them at this integration UI and tell them to look at the webhook request data for the integration. What will we do for GHA projects? |
What would be the use case for that? Triggering builds or changing the default branch should be managed by the GH app, we don't want two services doing the same/competing with each other. If users want to trigger builds automatically, they are better off using the API instead.
In theory, users will have a problem only if their repo isn't connected to a remote repository (bc the user manually unlinked the project, or revoked access to that repo for the GH app). |
I don't think we need a use case to leave this UI as is. This is more about making our UX conditional, we should avoid that unless there is a strong reason to block integrations from creation.
This is my main question. I was more looking for a use case for why we need to disable integrations for GHA projects. Is allowing creation causing any problems for projects? It doesn't sound like we have a blocking reason to make this UI conditional. I'm looking to avoid this as much as possible, especially if there is something more helpful to show the user.
This is the sort of information we could be showing the user for a GHA integration in the listing. We don't need to have an edit view for GHA integration, but it feels more confusing to remove this concept for GHA integrations. |
In general, I'm 👍🏼 on deprecating Generic API webhooks. These project should use the APIv3 as Santos mentioned. However, I think this work is not related to that in particular and it's removing the Generic API webhooks for GHA projects as side effect when it probably shouldn't. This side effect will make project with Generic API webhooks to be a in a weird state after they migrate to GHA since they won't be able to edit/modify/delete/create these integrations anymore. |
We don't want users creating incoming webhooks when there is no need for it, and also avoid having two competing webhooks, which could lead to duplicate builds.
No, my suggestion is avoiding the creation of new integrations. Editing and removing existing integrations is still allowed. |
But we already allow projects to create multiple integrations. I'm not seeing a true disadvantage to special casing GHA projects here. I'd prefer this UI/UX is consistent across providers instead. If that means projects can create redundant integrations, it feels fine to leave that up to maintainers. I don't think this is a strong enough problem to warrant making this UI complex and only for GHA projects. We can avoid redundant integrations by:
I still don't know about the UX around what we are doing for projects when the link between a GHA repository and our projects breaks. Users familiar with integrations might want to recreate something, and might even try recreating the GitHub integration. We'll have an opportunity to give the user a helpful message. Best case we can detect and show the state of the GHA "integration" in our listing though.
Same, though my point wasn't about generic API integrations. For my point you can use any of the other integrations. What I mean is that with any of these options we/users gain little from us dictating which integrations they can create. I say we allow creation so we aren't making a UI that is sometimes useful and sometimes useless. |
Needs readthedocs/readthedocs.org#12193
This only blocks the add integration option, so users can still delete existing integrations manually.
ref readthedocs/readthedocs.org#12130