Skip to content

Commit 0c19fdb

Browse files
bahrmichaelclaude
andcommitted
Remove dead links to deleted Sourcegraph dev docs
The testing principles, Go testing, telemetry, and CSRF security model pages no longer exist on sourcegraph.com/docs. Replace the links with plain text and inline the relevant context in the code comment. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent dfe9146 commit 0c19fdb

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ For quick end-to-end CLI sanity checks against a live Sourcegraph instance, run:
6262

6363
This script intentionally uses your currently exported `SRC_*` environment variables, is not hooked up to CI, and is meant for manual regression checks (for example, to catch issues like `src users list` failing unexpectedly).
6464

65-
We adhere to the [general Sourcegraph principles for testing](https://sourcegraph.com/docs/dev/background-information/testing_principles), as well as [the Go specific directions](https://sourcegraph.com/docs/dev/background-information/languages/testing_go_code), at least to the extent they apply to a standalone tool like `src`.
65+
We adhere to the general Sourcegraph principles for testing, as well as the Go specific directions used in the main Sourcegraph repository, at least to the extent they apply to a standalone tool like `src`.
6666

6767
## Releasing
6868

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ src-cli/3.21.10 linux amd64
211211

212212
To disable this and _only_ send the version, you can set `-user-agent-telemetry=false` for a single command, or set the `SRC_DISABLE_USER_AGENT_TELEMETRY` environment variable to any non-blank string.
213213

214-
As with [other Sourcegraph telemetry](https://sourcegraph.com/docs/dev/background-information/telemetry), any collected data is only sent to Sourcegraph.com in aggregate form.
214+
As with other Sourcegraph telemetry, any collected data is only sent to Sourcegraph.com in aggregate form.
215215

216216
## Development
217217

internal/users/admin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,9 @@ func (c *Client) GraphQL(token, query string, variables map[string]any, target a
261261
if token != "" {
262262
req.Header.Set("Authorization", fmt.Sprintf("token %s", token))
263263
} else {
264-
// NOTE: This header is required to authenticate our session with a session cookie, see:
265-
// https://sourcegraph.com/docs/dev/security/csrf_security_model#authentication-in-api-endpoints
264+
// NOTE: This header is required to authenticate our session with a session
265+
// cookie. Sourcegraph's CSRF protection rejects cookie-authenticated API
266+
// requests that do not carry this header.
266267
req.Header.Set("X-Requested-With", "Sourcegraph")
267268
req.AddCookie(c.sessionCookie)
268269

0 commit comments

Comments
 (0)