Bug Report: disable access to certain code host requires users to reinstall browser extension
Created by: abeatrix
- Sourcegraph version: 3.29.0
- Platform information: Any
Steps to reproduce:
- Add repo from Phabricator to Sourcegraph
- Remove repo from Phabricator to Sourcegraph and add the same repo from GitHub
- The
View on Phabricator
icon remains even though the repo has been removed. This should be replaced byView on GitHub
instead. - A user reported that reinstalling the extension and disable access to Phabricator would stop the
View on GitHub
button from changing toView on Phabricator
.
Expected behavior:
-
View on Phabricator
should be removed and replaced byView on GitHub
if Phabricator is no longer listed as the code host. - Users should be able to disable access to Phabricator on the Sourcegraph extension setting page, under Site access.