aws-amplify / aws-amplify/amplify-hosting

Ask users if it's ok to stop the service when disconnecting branch

Open
#1,178 1 comment 11 reactions 0 assignees View on GitHub
feature-request
Dominant language
Dockerfile
Stars
481
Forks
123
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Disconnecting branches stopped a service I'm working on which was not expected. I was expecting the service will be kept hosting as is. I also forgot that a custom domain had been connected to the branch.

**Describe the solution you'd like**
When users do disconnect a branch, it should make a prompt to ask if it's ok to stop the service + putting a branch name to do double-check carefully. If the branch was connected to any custom domains, the prompt should also show it.
Currently, it just says "You've chosen to disconnect the branch "", are you sure?", but it does not clearly explain what is going to happen right after.

Refs - How GitHub handles a similar thing well

https://docs.github.com/en/enterprise-server@2.22/github/administering-a-repository/deleting-a-repository

**Additional context**
I was expecting to keep hosting a service having a connected branch even I disconnect but disconnecting the branch immediately stop hosting the site which impacted the service.

Contributor guide

Open the contributing guide

Research direction

Review the current disconnect-branch confirmation flow and the GitHub repository-deletion prompt linked in the issue. Verify how disconnecting affects service hosting and connected custom domains; done means the prompt names the branch, explains the service impact, and lists connected custom domains before confirmation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, git
Domain
cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.