Web IDE on MRs with deleted source branch show empty
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
When trying to open the web IDE out of an MR that has had its source branch deleted the web IDE shows up empty without an warning, which leads to a bad UX.
Steps to reproduce
Go to this MR !178296 (diffs) and try to open the web IDE
Example Project
What is the current bug behavior?
The web IDE opens in an empty state
What is the expected correct behavior?
Perhaps we should show a warning to the user, or disable the button with a tooltip that states that the web ide is no longer available due to the lack of a source branch
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)