Adding a repository with improper credentials does not properly warn the user.
Created by: rrhyne
- Sourcegraph version: 3.19
- Platform information: Mac / chrome
Steps to reproduce:
- Add a new GitHub code host and add sourcegraph-testing to the org. Do not provide an auth token. A green success banner should display stating:
Updating repositories. It may take a few moments to clone and index each repository. Repository statuses are displayed below.
-
Search repositories for ‘sourcegraph-testing’ no repositories will be listed.
-
Go to Manage repositories and update the code host you added. Leave the access specified as “token”: “” and click ‘Update repositories’ button.
The following warning will display:
[image:752FEE34-2ADD-4931-9AA1-DBB8CC4F3BED-362-0001045422E64E41/562CC69B-62E2-4117-8D94-4E8DA07C719F.png]
Expected behavior:
When submitting the invalid repository, the warning from the update request is displayed.