Commit Graph

50 Commits

Author SHA1 Message Date
Varun Gandhi
b81e9c2a20 Continue renaming 2024-07-22 15:06:49 +08:00
Varun Gandhi
a716bb9ed1 Continue renaming 2024-07-22 14:48:47 +08:00
Varun Gandhi
d29622b48f chore: Rename Index -> AutoIndexJob 2024-07-22 10:52:59 +08:00
Varun Gandhi
c645cdc0dd
chore(codeintel): Replace 'dumps' terminology in comments (#63775) 2024-07-11 06:22:10 +00:00
Varun Gandhi
121a01beb6
chore: Use api.RepoID and api.CommitID in more places (#63596)
This reduces the chances for confusion with other ints/strings flying around.
2024-07-03 04:35:13 +02:00
Erik Seliger
3594d26d9c
gitserver: Allow multiple ranges to be passed to Commits (#62705)
This will be useful for commit searches, and is generally supported by git so why not support it here. That also lets you express `A..B` as `B, ^A` if you want to do less string concatenation, for example.

Test plan:

Made sure all existing callers pass a non-empty string to the slice if they specify the slice at all, and all existing tests still pass.
2024-05-16 17:34:09 +02:00
Varun Gandhi
a57803e948
chore: Fix function name in comment (#62527) 2024-05-08 07:14:18 +02:00
Erik Seliger
186f4a212c
gitserver: Implement CommitGraph using Commits (#62368)
This PR consolidates the client methods CommitGraph and Commits into one, to reduce the surface of APIs we have to migrate to gRPC and then maintain.
To my best understanding, this should be equivalent, just use a different API.

Test plan:

Existing test suites and integration tests are still passing.
2024-05-06 15:58:15 +02:00
Varun Gandhi
163a891c5f
chore: Group upload matching options into struct (#62335)
There are lots of layers of indirection/plumbing for propagating
the various options/settings for matching uploads. There was also
a mix of terminology - 'toolName' in some places and 'indexer'
in some other places. 'exactPath' in some places and 'rootMustEnclosePath'
in other places. Grouping the various options into a struct provides
a central place to document how the path matching happens,
as well as special arguments such as `shared.SyntacticIndexer`.

This also makes it much easier to understand where the various
upload matching options are used via 'Find usages' in the editor.

As a nice side-effect, the noise of creating o11y-related K-V pairs
is also reduced.
2024-05-03 09:14:34 +01:00
Varun Gandhi
ab9587a7d1
cleanup: Remove 'Dump' terminology from backend (#61131)
'Dump' really meant an uploads that is a 'completed' state,
and hence is eligible for various operations such as 'Find references'

This patch makes that explicit by removing the term 'Dump'
from the backend in favor of 'CompletedUpload'
2024-03-15 10:30:18 +08:00
Noah S-C
9333f8f283
codeintel: consolidate enterprise & oss codeintel packages (#54431)
Movin enterprise codeintel stuff (and ~two others that had to be dragged
along) out of `enterprise/internal` and into `internal` as part of the
shift towards enterprise-only

## Test plan

Successfully built frontend with bazel, CI will check the rest
😎 no logic changed, just shufflin things around
2023-07-05 14:58:41 +01:00
Eric Fritz
10289e2156
codeintel: Blanket move to enterprise (#44163) 2022-11-10 13:56:01 +00:00
Eric Fritz
fb3e745a58
codeintel: Add job to reconcile lsif_uploads records with missing codeintel-db data (#43838) 2022-11-04 07:47:19 -05:00
Eric Fritz
2ba915ede0
codeintel: Create background job to reconcile abandoned uploads (#43443) 2022-10-31 13:21:28 -05:00
Eric Fritz
dfe0ab95c4
codeintel: Expire additional uploads via traversal (#43138) 2022-10-20 08:55:21 -05:00
Eric Fritz
b1ea717258
codeintel: Remove reference counting technique for uploads (#43015) 2022-10-19 13:53:13 +00:00
Cesar Jimenez
e680320987
[language-platform] move uploads background jobs to its own layer (#43016) 2022-10-17 17:41:13 +00:00
Noah S-C
740a5701e6
tracing: set worker jobs trace sample rate probability to 2 by default (configurable) (#42901) 2022-10-13 13:25:54 +00:00
Eric Fritz
21c49c855e
codeintel: Reorganize types (#42847) 2022-10-12 19:02:09 -05:00
Eric Fritz
406f1dba8d
codeintel: Move stores, types into shared (#42828) 2022-10-11 18:44:27 +00:00
Eric Fritz
50e0b9c0c8
codeintel: Split janitor across services (#42789) 2022-10-11 15:13:54 +00:00
Eric Fritz
2e9dad72a8
codeintel: Unexport unused service methods (#42656) 2022-10-07 10:30:40 -05:00
Eric Fritz
73ccd3a26f
codeintel: Sink construction of pci-worker into service (#42666) 2022-10-06 22:21:24 -05:00
Eric Fritz
09126e951d
codeintel: Co-locate code next to background job (#42641) 2022-10-06 10:03:13 -05:00
Eric Fritz
f6ada2ffb2
codeintel: Collapse background job structs into the service (#42610) 2022-10-06 07:48:57 -05:00
Eric Fritz
6f1df7e11c
codeintel: Sink background logic into services (#42543) 2022-10-05 09:43:32 -07:00
Eric Fritz
267fceda65
codeintel: Clean up service initialization (#42507) 2022-10-04 17:04:23 +00:00
Chris Wendt
d3268e7b9f
codeintel: Support bulk deletion of LSIF uploads (#42395) 2022-10-03 20:17:19 -06:00
Eric Fritz
110d16c1ec
codeintel: Move remaining worker tasks into services (#42319) 2022-10-03 20:16:45 -04:00
Eric Fritz
cc07fd826b
RFC 619: Inline pci-worker handler into uploads service (#42211) 2022-09-29 13:33:39 -05:00
Cesar Jimenez
9ff8ace27f
[code-nav]: Moving graphql transport layer to individual service layers (#41596) 2022-09-28 14:55:34 -05:00
Keegan Carruthers-Smith
27569d1fc7
all: run gofmt -s -w from 1.19 (#41629)
gofmt in go1.19 does a lot of reformating of godoc strings, mostly to
make them more consistent around lists.

Test Plan: CI
2022-09-13 07:44:06 +00:00
Cesar Jimenez
40361a93fa
[codenav]: refactor of upload resolver (#41004) 2022-09-07 11:12:42 -04:00
Eric Fritz
3a2e4d289a
codeintel: Fix misc expiration errors (#40953) 2022-08-29 09:51:18 -04:00
Cesar Jimenez
a0594f32a3
[hotfix] fixing dereference bug (#40867) 2022-08-25 16:45:26 -04:00
Cesar Jimenez
02fb2e85cf
[codenav]: refactor of auto-indexing background jobs (#40771) 2022-08-25 13:22:58 -04:00
Cesar Jimenez
1994a01285
[codenav]: refactor of auto-indexing resolver (#40588) 2022-08-24 17:03:26 -04:00
Cesar Jimenez
a67dba61a0
codeintel: Fix missing transaction in UpdateUploadsReferenceCounts function (#40378) 2022-08-15 17:05:09 -04:00
Eric Fritz
3cceac4c16
codeintel: Make some oobmigrations permanent jobs (#40324) 2022-08-15 15:26:18 -05:00
Cesar Jimenez
3873ac28b6
Moving dump resolution to inside transport layer of Codenav service (#40069) 2022-08-11 14:13:13 -04:00
Cesar Jimenez
af80d54072
Moving transport layer functionality to the service layer (#39516) 2022-08-02 14:19:01 -04:00
Cesar Jimenez
c7499d9e1b
[codeintel] RFC 619: refactor of uploads expiration background jobs (#38249) 2022-07-19 15:02:37 -04:00
Cesar Jimenez
f65c514f87
adding missing interface (#38338) 2022-07-06 21:54:25 +00:00
Cesar Jimenez
6910ef5c01
[codeintel] RFC 619: refactor of uploads commitgraph background jobs (#38108) 2022-07-06 14:50:11 -04:00
Cesar Jimenez
54d748112b
[codeintel] RFC 619: refactor of uploads background jobs (#37955) 2022-06-30 15:44:30 -04:00
Cesar Jimenez
f137e3a04f
[codeintel] RFC619: Splitting indexing functionality from uploads service to indexing service (#37789) 2022-06-28 11:50:31 -04:00
Cesar Jimenez
e3bc0a7a49
Move HandleDeletedRepository functionality to service instead of store (#36808) 2022-06-22 12:29:12 -04:00
Cesar Jimenez
b6d2851974
Move HandleUnknownCommit functionality into upload service instead of store (#36878) 2022-06-21 20:17:39 -04:00
Robert Lin
07f759e4e6
observation: integrate Logger into all levels of Observation (#34456)
Creating and tagging operations now create loggers embedded into the various Observation types that can be used directly for  structured logs . See internal/observation package docs for more details.
2022-04-27 07:55:45 -07:00
Eric Fritz
254aea69ee
RFC 619: (M1) Generate uploads service skeleton (#33613) 2022-04-22 00:03:35 +00:00