Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Invalid Access Token UX is not clear #35027

@Kelvin-Lee

Description

@Kelvin-Lee
  • Sourcegraph version: 3.39
  • Platform information: AWS EC2, internal test instance (hosted at cse-aws-test.sgdev.org).Docker-compose deployment.

Steps to reproduce:

(Steps with screenshots shared in Slack, and re-described below.)

  1. Create a brand new code host configuration

Screen Shot 2022-05-05 at 12 57 49 PM

  1. Add a public repo. Do not alter the "token" field whatsoever.

Screen Shot 2022-05-05 at 12 57 44 PM

3/BUG. Sourcegraph accepts the configuration as valid.

SYMPTOMS:
(A) The repo that was ostensibly "added" is not discoverable in the "Repository Status" page. This would be confusing.

Screen Shot 2022-05-05 at 12 58 36 PM

(B) When adding a non-consequential edit to the faulty code-host configuration (e.g. adding whitespace), the page does respond that credentials were bad. This is good , but might be confusing to someone who, say, did not touch credentials during their edit.

Screen Shot 2022-05-05 at 12 59 01 PM

(C) When making no changes to the faulty code-host configuration page, the page does not respond that credentials were bad.

Expected behavior:

Between steps 2 and 3, I would expect some sort of validation to occur.

For symptom C, I would expect some sort of validation to occur (though, I guess, at this point, we might assume that the config had passed our initial validation).

Actual behavior:

The user is able to neglect adding an access token, and is not immediately warned.

If would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are not SLAs on issues like there are for support requests).

Metadata

Metadata

Labels

bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.site-adminSite admin experienceteam/sourceTickets under the purview of Source - the one Source to graph it all

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions