Commit Graph

30052 Commits

Author SHA1 Message Date
Philipp Spiess
b01eb60174
Cody: Log chat prediction usage (#51474)
Adds logging to the chat prediction experimental feature.

## Test plan


https://user-images.githubusercontent.com/458591/236258186-697fcbfb-1ce8-45dd-8703-86a1e7b8dbee.mov



<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-05-04 18:28:34 +02:00
Erik Seliger
0c48b65e82
Fixup pnpm checks after upgrade (#51472)
This failed sg setup. Also found a few other occurences so fixed those
up as well.

## Test plan

Let's see if CI passes.
2023-05-04 17:40:00 +02:00
Keegan Carruthers-Smith
db8e7ecce2
dev: add a command to understand search job plans (#51466)
I was trying to understand exactly how a query I write is transalated
into a zoekt query. So this adds a command which allows me to easily try
stuff out and then see the s-expression output of the jobs plan.

Test Plan: A simple unit test is added to ensure this command doesn't
break.
2023-05-04 14:28:24 +00:00
Joe Chen
520daee84b
release: add missing "v" for build script (#51469)
Followup of https://github.com/sourcegraph/sourcegraph/pull/51446

## Test plan

A dumb try of the following command worked:

```
$ comby -in-place 'git_versions=(:[1])' 'git_versions=(:[1] v5.0.4)' cmd/migrator/build.sh
$ git diff cmd/migrator/build.sh
```

```diff
diff --git a/cmd/migrator/build.sh b/cmd/migrator/build.sh
index 2d66a94b05..57720eb92b 100755
--- a/cmd/migrator/build.sh
+++ b/cmd/migrator/build.sh
@@ -68,7 +68,7 @@ git_versions=(
   v4.3.0 v4.3.1
   v4.4.0 v4.4.1 v4.4.2
   v4.5.0 v4.5.1
-  v5.0.0 v5.0.1 v5.0.2 v5.0.3)
+  v5.0.0 v5.0.1 v5.0.2 v5.0.3 v5.0.4)

 for version in "${git_versions[@]}"; do
   echo "Persisting schemas for ${version} from Git..."
```
2023-05-04 14:20:01 +00:00
Marek
81d1a4b92e
App: Change system tray icon (#51298) 2023-05-04 10:10:32 -04:00
Chris Warwick
9b763f6786
App: new completions provider to forward requests to dotcom (#51426)
The adds a new completions provider for use in the Sourcegraph App that
will send completions requests to sourcegraph.com. This will allow users
of Sourcegraph App to use Cody within App by using a dotcom account and
they will not need to configure App with an LLM key. App users that do
have their own API keys can apply a completions configuration if they
wish communicate directly with the LLM providers.

I chose not to add this provider as a configuration option because it
should only be used for Sourcegraph App and I wanted to avoid any
accidentally configurations using it.
2023-05-04 09:38:15 -04:00
Philipp Spiess
ef86bd38fc
Cody: Release 0.0.10 (#51467)
## Test plan

Just a changelog and version change

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-05-04 13:36:02 +00:00
Vincent
70bc9f4f89
Disable injectHTML by default (#51400)
This change will, by default, disable the HTML injection feature in
site-admin. Customers who want to customize their instance can add the
environment variable to add scripts or other HTML content. This will
make customers (the majority) who don't want this customization feature
protected against potential XSS attack.

## Test plan
Tested the changes on my local instance.

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-05-04 15:30:59 +02:00
Keegan Carruthers-Smith
dfd6a82b15
embeddings: metric for search throughput (#51461)
I was playing around with the benchmark and was interested in the
throughput of the implementations. This is the numbers we seem to be
quoting in text which I assume previously we calculated manually.

Test Plan: go test -bench Search -run '^$'
2023-05-04 13:24:05 +00:00
Daniel Marques
3ee30bb29c
Improved Cody header logo and layout details (#51348)
Adds style fixes to the header of cody.


![pr_cody](https://user-images.githubusercontent.com/7814431/235649828-269f108f-ef4c-449a-84af-9a1f5f880f8e.png)



**Changes:**

- Replaces logo with new version with better kerning and spacings (thx
@toolmantim)
- Adds a muted Sourcegraph logo in order to keep our brand present
- Tones down "experimental badge"
- Aligns the header with the title bar of the sidebar (now uses 20px
padding, what the title bar also uses)

## Test plan

Tested different color schemes and themes, seems to be somewhat
consistent no matter the theme chosen by the user.

<img width="609" alt="Screenshot 2023-05-02 at 12 04 58"
src="https://user-images.githubusercontent.com/7814431/235650023-d1d608fa-a2a9-45ca-9f8a-57e8f91fa1c8.png">

<img width="565" alt="Screenshot 2023-05-02 at 12 05 09"
src="https://user-images.githubusercontent.com/7814431/235650090-920aa54a-0d45-4b6a-952e-6e245e95c74b.png">

Some issues with the SG logo in more aggressive Themes, but the Cody
logo works in any theme it seems

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

---------

Co-authored-by: Tim Lucas <t@toolmantim.com>
Co-authored-by: Beatrix <beatrix@sourcegraph.com>
2023-05-04 14:21:08 +01:00
Keegan Carruthers-Smith
afdb818ec3
nix: start redis on localhost (#51462)
This is to avoid the macos firewall popups. Also its just better to use
localhost for local dev.

Test Plan: Killed the running server then ensured the started server was
listening on localhost
2023-05-04 15:14:24 +02:00
Keegan Carruthers-Smith
31e12ec55c
nix: run nix fmt (#51463)
Test Plan: n/a
2023-05-04 15:14:03 +02:00
Thorsten Ball
9c047c9d83
cody web ui: fix cody in web not working locally (#51091)
Opening up as draft because I'm not sure about the changes we (@eseliger
and I) made here, but it fixed it locally.


## Test plan

- Manual testing of talking to Cody locally
2023-05-04 15:06:33 +02:00
Chris Warwick
cb22154170
App: Update CodyEnabled logic to support usage in App (#51429)
When running Sourcegraph App the logic to determine if Cody is enabled
differs, because Cody can be enabled either by configuring the
completion settings or by connecting App to the users sourcegraph.com
account.
2023-05-04 07:50:11 -04:00
Petri-Johan Last
f20f1ed003
[gitlab] Disable repo permissions syncing if auth type is oauth (#51452) 2023-05-04 13:44:52 +02:00
Philipp Spiess
d648ea1083
Cody: Add suffix to prompt knowledge base and better cut-off for multiline suggestions (#51417)
Closes #51345

Some more Cody completions tweaks:

1. We now include the suffix (the part of the prompt after the cursor)
into the knowledge base for more context. To avoid Cody repeating the
suffix without generting content, we cut away the first 5 lines of the
suffix though. This yielded better results in my limites testing.
  
If we didn't do that, Cody would just repeat the suffix in roughly two
out of three suggestions:
<img width="1609" alt="Screenshot 2023-05-03 at 15 25 05"
src="https://user-images.githubusercontent.com/458591/235961816-223a7053-f666-471a-8ec9-2d1f4f898ddc.png">
2. Better cut-off for multiline suggestions: We now compare the suffix
with the completion until we find 5 matching lines in the suffix. This
way, we can cut away content that is already in the suffix pretty
effectively, leading to smaller suggestion windows. E.g.:
<img width="1663" alt="Screenshot 2023-05-03 at 17 22 49"
src="https://user-images.githubusercontent.com/458591/235962380-f301f8b1-a2af-45e6-9eee-c66aeb9770af.png">
(Note: for this prompt I removed the highlighted part first. All three
suggestions are very relevant already!)
3. Removed the debug mode specialcasing for the multiline suggestions
window. It was tripping me off and I think if we do broader dogfooding
it might confuse others as well.

## Test plan

See screenshot above. Lots of back and forth 😬 

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-05-04 13:36:19 +02:00
Philipp Spiess
f8ff945193
Cody completions: Don't send request when VS Code would not use the result (#51402)
Closes #51401

I observed some scenarios where VS Code calls the inline completions API
but disregards the suggestions we return. These are:

- When the `selectedCompletionInfo` is set ([see
documentation](https://sourcegraph.com/github.com/microsoft/azuredatastudio/-/blob/src/vscode-dts/vscode.proposed.inlineCompletionsNew.d.ts?L63-66))
- When the user is in the middle of a word. In my experiments, this
never showed the inline completions either. I’m not exactly sure how
word is defined but I've decided to bail out from the completions for
now if the character before the selection is alphabetical.

## Test plan

- Added a console.log to the logger code to visualize when requests are
made. Observe that they are not made in the scenarios above


https://user-images.githubusercontent.com/458591/235881428-63a1feab-ff2b-4705-9786-e25cb331a7d5.mov



<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-05-04 12:49:33 +02:00
Jean-Hadrien Chabran
bf02931dff
Update packge.json pnpm engine field (#51457)
@valerybugakov I've noticed I missed this update in my recent PR to
update it.

Still I'm getting this locally when running things like `yarn run
format`:

```
~/work/sourcegraph U jh/doc/update-pnpm $ yarn run format
yarn run v1.22.17
warning @: The engine "pnpm" appears to be invalid.
``` 

Do you know how to fix this? 

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI
2023-05-04 12:09:18 +02:00
Valery Bugakov
d18f9de4f4
ci: fix scip-typescript (#51447)
## Context

Requires the `pnpm` version bump too.

## Test plan

CI
2023-05-04 12:31:03 +05:30
Michael Lin
700314d46f
doc: add custom domain instruction (#50622)
part of https://github.com/sourcegraph/pr-faqs/issues/126

this is not implemented yet, but adding user-facing docs first to set
the right expectation.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

docs only
2023-05-03 21:00:06 -07:00
Robert Lin
211a5534f5
migrator: fix v5.0.3 (#51446)
Looks like the other values are v-prefixed. This image is [currently
failing to
build](https://sourcegraph.slack.com/archives/C02FLQDD3TQ/p1683159111051799?thread_ts=1683158536.972989&cid=C02FLQDD3TQ)

## Test plan

`cmd/migrator/build.sh`
2023-05-03 17:48:09 -07:00
Robert Lin
95d98e636e
llm-proxy: add healthz check that pings redis (#51442)
After much wrestling with Terraform and GCP, Redis and required
networking should now be up for the LLM-proxy. This adds a healthcheck
that pings it to make sure we are set up correctly.

The connection string is set to `REDIS_ENDPOINT` so the `redispool`
package should be available for use out-of-the-box.

## Test plan

`sg start llm-proxy`

```
$ curl localhost:9992/healthz
healthz: ok%                                                                 
```
2023-05-03 23:53:56 +00:00
Beyang Liu
123810bad5
cody: hide cody.experimental.suggest (#51444) 2023-05-03 23:35:09 +00:00
Joe Chen
1513d804ca
release: wrap up 5.0.3 release (#51441) 2023-05-03 18:32:08 -04:00
Joe Chen
72006e4ba5
release: sourcegraph@5.0.3 (#51439)
This pull request is part of the Sourcegraph 5.0.3 release.


* [Release batch
change](https://k8s.sgdev.org/organizations/sourcegraph/batch-changes/release-sourcegraph-5.0.3)
* [Tracking
issue](https://github.com/sourcegraph/sourcegraph/issues/51302)

### Test plan

CI checks in this repository should pass, and a manual review should
confirm if the generated changes are correct.

### ⚠️ Additional changes required

These steps must be completed before this PR can be merged, unless
otherwise stated. Push any required changes directly to this PR branch.

- [x] Ensure all other pull requests in the batch change have been
merged
- [x] Run `pnpm run release release:finalize` to generate the tags
required. CI will not pass until this command is run.
- [x] Re-run the build on this branch (using either the command `sg ci
build` or the Buildkite UI) and merge when the build passes.
2023-05-03 18:13:21 -04:00
Camden Cheek
9cee218369
Embeddings: implement feedback (#51388)
Fixes a few things based on feedback
2023-05-03 20:41:38 +00:00
Stompy
72d2ae5bbe
Create App troubleshooting guide (#51355)
This PR introduces a troubleshooting page for app with an installation
troubleshoot and fix for an App binary install.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
No test plan required. Doc update.
2023-05-03 23:37:29 +03:00
coury-clark
641b09af16
own: use internal actor for recent contributors indexing (#51427)
This fixes an issue where private repos (repos with permissions enabled)
were skipped during indexing ownership recent contributors. The indexer
needs access to see all repos and paths, which also implies we are going
to have to filter these out at query time.

## Test plan

I tested this using explicit permissions API, and included an automated
test for the same.

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-05-03 13:02:42 -07:00
Juliana Peña
df50e67d80
Revert "Revert "app: open external and help links in system default browser"" (#51421)
This reverts commit af29d8e634.

The failure was happening because external service instructions were
created statically instead of being rendered when needed, so the correct
Link component was not yet set. The second commit in this PR addresses
the issue and converts all external service instructions into function
components that use the right Link components set at application start.

## Test plan

Verify main-dry-run passes
2023-05-03 12:32:57 -07:00
Sander Ginn
dbb0a2e3d1
docs: Add instructions for custom certs for executors (#51311)
- Closes https://github.com/sourcegraph/sourcegraph/issues/51052

Adds instructions on how to load custom certificates for various
deployment models of executors.

## Test plan
`sg run docsite`
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-05-03 19:20:57 +00:00
Joe Chen
c74c3efca4
chore: cut CHANGELOG for 5.0.3 (#51428)
Part of https://github.com/sourcegraph/sourcegraph/issues/51302

## Test plan

n/a
2023-05-03 19:08:41 +00:00
Robert Lin
a41bf48a01
redigo, redigomock: use correct versions of packages (#51324)
- redigo v2.0.0+incompatible was last published in 2018 and has since
been retracted, the real latest release is
[v1.8.9](https://pkg.go.dev/github.com/gomodule/redigo@v1.8.9/redis?tab=versions)
published in 2022. We [have a dependency that uses the wrong
version](https://github.com/boj/redistore/pull/64), so this change must
be done via an override
- I actually thought I did this way back in
https://github.com/sourcegraph/sourcegraph/pull/44385 but squinting at
that diff again it seems I missed it somehow
  - This one in particular might be of interest to security (?)
- redismock's [latest release is `/v3` last published this
year](https://pkg.go.dev/github.com/rafaeljusto/redigomock/v3?tab=versions),
the [version being used is from
2020](https://pkg.go.dev/github.com/rafaeljusto/redigomock@v2.4.0+incompatible?tab=versions)

This change also moves some more recent replace directives to join with
those at the bottom where replace directives are categorized by intent
(permanent, temporary, etc), and moved everyone to the top to make them
more visible.

Noticed while getting ready to set up redis for LLM-proxy

## Test plan

CI passes
2023-05-03 11:52:58 -07:00
Dave Try
7c2619b57d
bazel: run executor tests (#51368)
run executor tests with bazel

## Test plan

passing a main-dry-run on ci
2023-05-03 18:50:26 +00:00
Juliana Peña
14b4e568fb
app: move back/forward buttons into global navbar, remove overlay titlebar (#51385)
In the Tauri app, removes the overlay titlebar and moves the
back/forward buttons into the global navbar. This makes it so that the
back/forward navigation is not dependent on OS support for overlay
titlebar and that we don't need to deal with window decorations in the
overlay that may vary based on platform.

## Test plan


![image](https://user-images.githubusercontent.com/206864/235800815-71912f31-72fc-451d-a775-dd2481b8c174.png)
2023-05-03 10:49:16 -07:00
Nathan Downs
c5f62c02fc
Cody aggregated ping additions. (#50835)
## Test plan

Verify by running locally and checking ping structure.
Verify that payload is properly formed and submitted to pubsub topic.

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

---------

Co-authored-by: Joe Chen <joe@sourcegraph.com>
2023-05-03 10:44:10 -07:00
Camden Cheek
df945de40e
Embeddings: update changelog with embeddings notes (#51420)
Just a quick update to the changelog before the patch cut.

## Test plan

N/A

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-05-03 15:48:28 +00:00
Gary Lee
633c37bbe5
Structural Search: Modify revisions values to match on Zoekt branches (#51076)
Issue: https://github.com/sourcegraph/sourcegraph/issues/50506

The issue manifests for a structural search for any revisions specified
in the query that have both of the following:
1) the revision is a commit and is the latest commit of an indexed
branch in Zoekt
2) the revision is not the branch name indexed in Zoekt (i.e. it is not
a revision specified in `experimentalFeatures.search.index.branches`)

The following fix works for all cases where the indexed branch to query
is `HEAD`. Therefore this will resolve the code insights use case since
code insights repo filter does not accept revisions.

The fix in this PR is intended to be something we can ship quickly and
therefore I hoped to avoid modifying existing logic as much as possible.
For this reason we keep the `SearchJob` arguments and logic unchanged
but just modify the repo revisions passed in.

Note that there is still a remaining issue where if we specify two
revisions for our query and both of those revisions match both criteria
described above, then we do not have enough information to determine
which branch to use since we'll have two branches and neither of them
have a map to their latest commit. To resolve this I believe we'd have
to modify
[`PartitionRepos()`](https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/internal/search/zoekt/indexed_search.go?L177:6)
and/or
[`IndexedRepoRevs`](https://sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/internal/search/zoekt/indexed_search.go?L38)
which would be a bit more involved so I am planning to spin off to a
separate ticket.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

New method has test cases added
2023-05-03 08:37:04 -07:00
William Bezuidenhout
6955f943fe
license-check: update pnpm (#51416)
License check was still using the old pnpm and it is not forwards
compatible
## Test plan
This PR
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-05-03 15:24:51 +00:00
William Bezuidenhout
fe434d9654
app: add Tauri readme (#51083)
Add Tauri readme
## Test plan
none - doc change
<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

---------

Co-authored-by: Chris Warwick <christopher.warwick@sourcegraph.com>
Co-authored-by: Juliana Peña <me@julip.co>
2023-05-03 17:18:50 +02:00
Chris Warwick
614a0aa181
Cody: Add conditions to CodyEnabled to check if completions are configured (#51414)
This adds additional checks to CodyEnabled to only enable Cody when
completions are configured. Currently if completions are not configured
or are configured but disabled Cody still appears in the UI but all
requests will fail.
2023-05-03 11:00:41 -04:00
TJ DeVries
c823e7e31e
scip-go: nit ci fixups (#51220)
## Test plan

- [ ] CI is still green after running
2023-05-03 15:48:44 +01:00
coury-clark
c08e94626f
own: index recent contributors for ownership signals (#51188)
This PR hooks up the recent contributors indexer with the background
job, effectively enabling indexing once the feature flag is switched on.

## Test plan

You can start Sourcegraph and let the jobs auto-index, or you can
manually control the queue through the `own_background_jobs` table.

Here is some example output auto-indexing the local dev repos:
```
[worker] INFO worker.own-repo-indexing-queue.own.background.index.scheduler.recent-contributors background/scheduler.go:84 Scheduling repo indexes for own job {"job-name": "recent-contributors"}
[worker] INFO worker.own-repo-indexing-queue.own.background.index.scheduler.recent-contributors background/scheduler.go:96 Own index job scheduled {"job-name": "recent-contributors", "row-count": 11}
[worker] INFO worker.own-repo-indexing-queue workerutil/worker.go:326 Dequeued record for processing {"TraceId": "1e151b9be9a6cb308ab77719c6ad54c0", "SpanId": "e738c4f0d1af8d29", "name": "own_background_worker", "id": 123}
[worker] INFO worker.own-repo-indexing-queue workerutil/worker.go:326 Dequeued record for processing {"name": "own_background_worker", "id": 124}
[worker] INFO worker.own-repo-indexing-queue workerutil/worker.go:326 Dequeued record for processing {"TraceId": "4a857e335aa28ba2717c951cfff07ba5", "SpanId": "04e3ff4d85cb72bc", "name": "own_background_worker", "id": 125}
[worker] INFO worker.own-repo-indexing-queue workerutil/worker.go:326 Dequeued record for processing {"name": "own_background_worker", "id": 126}
[worker] INFO worker.own-repo-indexing-queue workerutil/worker.go:326 Dequeued record for processing {"TraceId": "e1b51f47de0dcbfdebd14bfc346f60a2", "SpanId": "0384937856ac05a4", "name": "own_background_worker", "id": 127}
[worker] INFO worker.own-repo-indexing-queue.Handle background/recent_contributors.go:67 commits inserted {"TraceId": "e1b51f47de0dcbfdebd14bfc346f60a2", "SpanId": "4c39331206218a30", "handle": {"count": 0, "repo_id": 6}}
[worker] INFO worker.own-repo-indexing-queue.Handle background/recent_contributors.go:67 commits inserted {"TraceId": "4a857e335aa28ba2717c951cfff07ba5", "SpanId": "f7bbf2aa07a3aef2", "handle": {"count": 0, "repo_id": 5}}
[worker] INFO worker.own-repo-indexing-queue workerutil/worker.go:326 Dequeued record for processing {"name": "own_background_worker", "id": 128}
[worker] INFO worker.own-repo-indexing-queue workerutil/worker.go:326 Dequeued record for processing {"name": "own_background_worker", "id": 129}
[worker] INFO worker.own-repo-indexing-queue.Handle background/recent_contributors.go:67 commits inserted {"handle": {"count": 0, "repo_id": 4}}
[worker] INFO worker.own-repo-indexing-queue workerutil/worker.go:326 Dequeued record for processing {"name": "own_background_worker", "id": 130}
[worker] INFO worker.own-repo-indexing-queue.Handle background/recent_contributors.go:67 commits inserted {"handle": {"count": 0, "repo_id": 8}}
[worker] INFO worker.own-repo-indexing-queue.Handle background/recent_contributors.go:67 commits inserted {"handle": {"count": 1, "repo_id": 1}}
[worker] INFO worker.own-repo-indexing-queue workerutil/worker.go:326 Dequeued record for processing {"name": "own_background_worker", "id": 131}
[worker] INFO worker.own-repo-indexing-queue workerutil/worker.go:326 Dequeued record for processing {"name": "own_background_worker", "id": 132}
[worker] INFO worker.own-repo-indexing-queue.Handle background/recent_contributors.go:67 commits inserted {"TraceId": "1e151b9be9a6cb308ab77719c6ad54c0", "SpanId": "b3615fd2c3989b98", "handle": {"count": 3, "repo_id": 11}}
[worker] INFO worker.own-repo-indexing-queue.Handle background/recent_contributors.go:67 commits inserted {"handle": {"count": 0, "repo_id": 9}}
```

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

---------

Co-authored-by: Cezary Bartoszuk <cezarybartoszuk@gmail.com>
Co-authored-by: Alex Ostrikov <alex.ostrikov@sourcegraph.com>
2023-05-03 07:21:58 -07:00
Aditya Kalia
ac9eb8134f
remove events SearchSubmitted, AccessRequest... from managed Instance allowList (#51379)
`SearchSubmit`, `AccessRequestApproved`, and `AccessRequestRejected`
contains sensitive data in its `public_argument.query` parameter, so we
need to stop collecting this

## Test plan
followed
[docs](https://docs.sourcegraph.com/dev/background-information/data-usage-pipeline)
2023-05-03 14:07:42 +00:00
Petri-Johan Last
51dc0b6fcf
[github app] Add resolvers to list and delete GitHub Apps (#51352) 2023-05-03 16:06:40 +02:00
Noah S-C
6332b8110e
drift: be more lenient in -version flag (#51371)
Allows for values to the `-version` flag on the `drift` command to also
include version specifiers similar to the `up/upgrade` commands, instead
of a hard requirement on them being git resolvables (aka we use `v`
prefixes in the git repo, so v5.0.2 had to be specified, but now the `v`
can be excluded)

## Test plan

Tested by @DaedalusG on a call, see results below

---------

Co-authored-by: DaedalusG <warrenbruceg@gmail.com>
2023-05-03 13:38:33 +00:00
Keegan Carruthers-Smith
a548da1bad
bazel: run gazelle and add keeps for backwards compat (#51380)
This is just running "bazel run :gazelle-update-repos". I added a keep
for the dependencies it removed since according to JH we still need them
around for backwards compatability tests.

Test Plan: bazel test //enterprise/cmd/frontend/internal/auth/saml/...
2023-05-03 13:06:07 +00:00
Jean-Hadrien Chabran
4f2f52f96e
Updating pnpm to 8.1.x (#51407)
This is a follow-up of
https://github.com/sourcegraph/sourcegraph/pull/51265 which was at
@vovakulikov initiative.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

CI

---------

Co-authored-by: Vova Kulikov <vova@sourcegraph.com>
2023-05-03 15:04:12 +02:00
Noah S-C
9f7df7ca07
nix: set formatter & use nil instead of rnix-lsp (#51409)
Allows formatting everything with `nix fmt`

[nil](https://github.com/oxalica/nil) appears more maintained and higher
quality than rnix-lsp

## Test plan

N/A, nix stuff
2023-05-03 12:56:44 +00:00
sourcegraph-buildkite
e7f1037e2b
zoekt: update to sourcegraph/zoekt@f818d968dd (#51406)
This PR is autogenerated to update to
sourcegraph/zoekt@f818d968dd

## Test Plan

Testing is done on the zoekt repo. All checks on this PR are sufficient.

---------

Co-authored-by: keegancsmith <keegancsmith@users.noreply.github.com>
Co-authored-by: Keegan Carruthers-Smith <keegan.csmith@gmail.com>
2023-05-03 14:54:03 +02:00
Milan Freml
dace878167
admin: rename the "Code host" to "Code host connections" (#51405)
The current wording is quite confusing as to what is actually happening.

This is more in line with all the other wording in the application. It
is also more in line with what people are actually configuring.

As a good side effect migrated a call using rxjs to `useMutation`
instead.

## Screenshots

### Old behavior

<img width="1149" alt="Screenshot 2023-05-03 at 12 48 16"
src="https://user-images.githubusercontent.com/9974711/235895919-e560e516-45ca-4a2c-8829-9160c4bb137e.png">
<img width="1165" alt="Screenshot 2023-05-03 at 12 48 23"
src="https://user-images.githubusercontent.com/9974711/235895926-71ca67a1-5aaa-4ffe-b62b-2c40ad8d09fd.png">


### New behavior

<img width="1160" alt="Screenshot 2023-05-03 at 12 46 53"
src="https://user-images.githubusercontent.com/9974711/235895725-ad161bf5-d900-447a-a917-3ee0bc30f9c4.png">
<img width="1149" alt="Screenshot 2023-05-03 at 12 47 03"
src="https://user-images.githubusercontent.com/9974711/235895736-c07ee076-b4e3-433f-99a1-c8ff745d9131.png">

## Test plan

Just UI changes, tested locally that everything still works as it
should.
2023-05-03 13:56:48 +02:00