- 16 Jul, 2020 4 commits
-
-
Jacob Vosmaer authored
Document changelog as part of process See merge request gitlab-org/gitlab-workhorse!530
-
Patrick Bajao authored
Generating a changelog entry is now required when a merge request warrants a CHANGELOG entry.
-
Jacob Vosmaer authored
-
Jacob Vosmaer authored
[ci skip]
-
- 15 Jul, 2020 2 commits
-
-
Jacob Vosmaer authored
Read and parse LSIF references See merge request gitlab-org/gitlab-workhorse!524
-
Patrick Bajao authored
In order to be able to "Find references" of a given range or definition, we need to be able to read `references` items from the LSIF file. This will then be written to the JSON file for each range via `references` property. The property will look something like: ``` "references": [ { "path": "main.go#L7" } ] ``` Each reference will be an object with `path` property. The `path` property will point to the exact line where it is being used. This is currently behind a feature flag (`code_navigation_references`) which will set `ProcessLsifReferences` header to `true` when enabled. If `false`, the `references` won't be read and generated.
-
- 14 Jul, 2020 3 commits
-
-
Jacob Vosmaer authored
Refactor to prepare for parsing references See merge request gitlab-org/gitlab-workhorse!523
-
Nick Thomas authored
Eagerly delete private tempfiles See merge request gitlab-org/gitlab-workhorse!526
-
Patrick Bajao authored
Preparation for supporting other type of item (e.g. references). This MR includes the following changes: - Rename `RawDefRef` to `RawItem`. - Rename `DefRef` to `Item`.
-
- 13 Jul, 2020 3 commits
-
-
Jacob Vosmaer authored
Remove deprecated option See merge request gitlab-org/gitlab-workhorse!513
-
Nick Thomas authored
Add missing bounds checks in LSIF parser See merge request gitlab-org/gitlab-workhorse!527
-
Jacob Vosmaer authored
-
- 03 Jul, 2020 3 commits
-
-
Nick Thomas authored
Make upload filter code (EXIF, LSIF) more uniform See merge request gitlab-org/gitlab-workhorse!525
-
Jacob Vosmaer authored
-
Jacob Vosmaer authored
-
- 25 Jun, 2020 2 commits
-
-
Nick Thomas authored
Log errors if lsif parser failed to close See merge request gitlab-org/gitlab-workhorse!521
-
Igor Drozdov authored
-
- 17 Jun, 2020 4 commits
-
-
Nick Thomas authored
-
Nick Thomas authored
[ci skip]
-
Jacob Vosmaer authored
Use latest Golang in order to build code navigation See merge request gitlab-org/gitlab-workhorse!522
-
Igor Drozdov authored
-
- 15 Jun, 2020 2 commits
-
-
Nick Thomas authored
Cache hovers offsets in a file instead of a hash See merge request gitlab-org/gitlab-workhorse!501
-
Igor Drozdov authored
Storing them in a hash consumes a lot of RAM Introducing a file helps to reduce RAM consumption significantly
-
- 11 Jun, 2020 4 commits
-
-
Nick Thomas authored
Cache ranges value in a file instead of a hash See merge request gitlab-org/gitlab-workhorse!500
-
Igor Drozdov authored
Storing them in a hash consumes a lot of RAM Introducing a file helps to reduce RAM consumption significantly
-
Jacob Vosmaer authored
Use simplified setup for code intelligence See merge request gitlab-org/gitlab-workhorse!520
-
Igor Drozdov authored
-
- 09 Jun, 2020 2 commits
-
-
Nick Thomas authored
Truncate hover values to 250 utf-8 characters See merge request gitlab-org/gitlab-workhorse!511
-
Igor Drozdov authored
Super long documentation is not very usable, but consumes a lot of memory
-
- 04 Jun, 2020 2 commits
-
-
Nick Thomas authored
-
Nick Thomas authored
[ci skip]
-
- 03 Jun, 2020 2 commits
-
-
Nick Thomas authored
Send hover tokens instead of raw html See merge request gitlab-org/gitlab-workhorse!517
-
Jacob Vosmaer authored
Fix SendURL functionality when the upstream lacks Content-Type Closes #267 See merge request gitlab-org/gitlab-workhorse!510
-
- 02 Jun, 2020 3 commits
-
-
Nick Thomas authored
Two cases in particular, lacking a `Content-Type`, gave us trouble: * Transfer-Encoding: chunked * No content-type and no transfer-encoding Both of these are permitted by the HTTP RFC (cases 3 and 7), and we can talk to arbitrary HTTP servers via sendurl, so it's imperative that we handle them correctly. This commit adds tests for both cases. Responses of the latter type are transparently converted to responses of the former type. This is an automatic behaviour of the Go stdlib, which doesn't really support making the second type of response directly. Since Transfer-Encoding is a hop-by-hop header, this type of encoding is extremely common, and we're still streaming, instead of accumulating, the data, I think this is acceptable.
-
Georges-Etienne Legendre authored
-
Igor Drozdov authored
It's a more secure way to display documentation hovers Rendering html is also a natural task for frontend
-
- 01 Jun, 2020 3 commits
-
-
Stan Hu authored
-
Stan Hu authored
[ci skip]
-
Nick Thomas authored
Support Workhorse directly uploading files to S3 [3/3] See merge request gitlab-org/gitlab-workhorse!466
-
- 29 May, 2020 1 commit
-
-
Stan Hu authored
This adds the AWS client directly to Workhorse and a new configuration section for specifying credentials. This makes it possible to use S3 buckets with KMS encryption and proper MD5 checksums. This is disabled by default. For this to be used: 1. GitLab Rails needs to send the `UseWorkhorseClient` and `RemoteTempObjectID` in the `/authorize` endpoint. (https://gitlab.com/gitlab-org/gitlab/-/merge_requests/29389) 2. S3 configuration must be specified in `config.toml`, or Rails must be configured to use IAM instance profiles (`use_iam_profile` in Fog connection parameters). S3 sessions are created lazily and cached for 10 minutes to avoid unnecessary local I/O access. When IAM instance profiles are used, this also cuts down the number of HTTP requests needed to request AWS credentials. Related issues: 1. https://gitlab.com/gitlab-org/gitlab-workhorse/issues/222 2. https://gitlab.com/gitlab-org/gitlab-workhorse/issues/185 3. https://gitlab.com/gitlab-org/gitlab-workhorse/-/issues/210
-