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

Conversation

@burmudar
Copy link
Contributor

The updater route was missing some "glue". This fixes it by:

  • adding it to anon api routes
  • naming the route

Test plan

tested locally

No update

curl -o /dev/null -s -w "%{http_code}\n" "https://sourcegraph.test:3443/.api/app/check/update?target=aarch64&current_version=2023.8.1&arch=darwin"
204

Update!

curl -s "https://sourcegraph.test:3443/.api/app/check/update?target=aarch64&current_version=2023.2.1&arch=darwin" | jq
{
  "version": "2023.5.8+dev.123.shamd245",
  "notes": "Test version",
  "pub_date": "2023-05-07T12:25:57Z",
  "signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVTWVByYmswNFZITlB3UDZaQUE1WnlrZEYxMzBZd1hNYVY5U2U0dGJmZzZNUm1aTDdoMzF3TFNoYlo5VFRiblI5NTQzV2NsS1J0TWZUSmFJQXVmejV1U1p2WXo5ZWhDMGc4PQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNjgzNTQzMzgyCWZpbGU6U291cmNlZ3JhcGguQXBwXzEuMC4wLWRldl94NjQuZG1nCmdGM1NDODlWNmJFdEpyUGZNd3orYzdYT1pjOXFjMFJQZXBqNG00ZC9zTC9vajBrakVzSkV5OGRIUE4zak1aSlNVZDN5eXc2YVNRNWs3elovZ3Z1bkJnPT0K",
  "url": "https://github.com/sourcegraph/sourcegraph/releases/download/untagged-03042cee5585262192cf/Sourcegraph.App_1.0.0-dev_x64.dmg"
}

@burmudar burmudar requested a review from a team May 23, 2023 22:15
@burmudar burmudar self-assigned this May 23, 2023
@cla-bot cla-bot bot added the cla-signed label May 23, 2023
@burmudar burmudar enabled auto-merge (squash) May 23, 2023 22:19
@burmudar burmudar merged commit bad2254 into main May 23, 2023
@burmudar burmudar deleted the wb/app/fix-endpoint branch May 23, 2023 22:25
ErikaRS pushed a commit that referenced this pull request Jun 22, 2023
)

The updater route was missing some "glue". This fixes it by:
- adding it to anon api routes
- naming the route
## Test plan
tested locally

#### No update
```
curl -o /dev/null -s -w "%{http_code}\n" "https://sourcegraph.test:3443/.api/app/check/update?target=aarch64&current_version=2023.8.1&arch=darwin"
204
```

#### Update!
```
curl -s "https://sourcegraph.test:3443/.api/app/check/update?target=aarch64&current_version=2023.2.1&arch=darwin" | jq
{
  "version": "2023.5.8+dev.123.shamd245",
  "notes": "Test version",
  "pub_date": "2023-05-07T12:25:57Z",
  "signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVTWVByYmswNFZITlB3UDZaQUE1WnlrZEYxMzBZd1hNYVY5U2U0dGJmZzZNUm1aTDdoMzF3TFNoYlo5VFRiblI5NTQzV2NsS1J0TWZUSmFJQXVmejV1U1p2WXo5ZWhDMGc4PQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNjgzNTQzMzgyCWZpbGU6U291cmNlZ3JhcGguQXBwXzEuMC4wLWRldl94NjQuZG1nCmdGM1NDODlWNmJFdEpyUGZNd3orYzdYT1pjOXFjMFJQZXBqNG00ZC9zTC9vajBrakVzSkV5OGRIUE4zak1aSlNVZDN5eXc2YVNRNWs3elovZ3Z1bkJnPT0K",
  "url": "https://github.com/sourcegraph/sourcegraph/releases/download/untagged-03042cee5585262192cf/Sourcegraph.App_1.0.0-dev_x64.dmg"
}

```
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants