sourcegraph v4.2.0 Release Notes
-
➕ Added
- 🔒 Creating access tokens is now tracked in the security events. #43226
- ➕ Added
codeIntelAutoIndexing.indexerMap
to site-config that allows users to update the indexers used when inferring precise code intelligence auto-indexing jobs (without having to overwrite the entire inference scripts). For example,"codeIntelAutoIndexing.indexerMap": {"go": "my.registry/sourcegraph/lsif-go"}
will casue Go projects to use the specified container (in a alternative Docker registry). #43199 - Code Insights data points that do not contain any results will display zero instead of being omitted from the visualization. Only applies to insight data created after 4.2. #43166
- 🚀 Sourcegraph ships with node-exporter, a Prometheus tool that provides hardware / OS metrics that helps Sourcegraph scale your deployment. See your deployment update for more information:
- A structural search diagnostic to warn users when a language filter is not set. #43835
- 🌲 GitHub/GitLab OAuth success/fail attempts are now a part of the audit log. #43886
- When rendering a file which is backed by Git LFS, we show a page informing the file is LFS and linking to the file on the codehost. Previously we rendered the LFS pointer. #43686
- 👍 Batch changes run server-side now support secrets. #27926
- 🌲 OIDC success/fail login attempts are now a part of the audit log. #44467
- 🔧 A new experimental GraphQL query,
permissionsSyncJobs
, that lists the states of recently completed permissions sync jobs and the state of each provider. The TTL of entries retrained can be configured withauthz.syncJobsRecordsTTL
. #44387, #44258 - The search input has a new search history button and allows cycling through recent searches via up/down arrow keys. #44544
- Repositories can now be ordered by size on the repo admin page. #44360
- 0️⃣ The search bar contains a new Smart Search toggle. If a search returns no results, Smart Search attempts alternative queries based on a fixed set of rules, and shows their results (if there are any). Smart Search is enabled by default. It can be disabled by default with
"search.defaultMode": "precise"
in settings. #44385
🔄 Changed
- ⚡️ Updated minimum required version of
git
to 2.38.1 ingitserver
andserver
Docker image. This addresses: https://github.blog/2022-04-12-git-security-vulnerability-announced/ and https://lore.kernel.org/git/[email protected]/. #43615 - When a
content:
filter is used in a query, only file contents will be searched (previously any of file contents, paths, or repos were searched). However, as before, iftype:
is also set, thecontent:
filter will search for results of the specifiedtype:
. #43442
🛠 Fixed
- 🛠 Fixed a bug where path matches on files in the root directory of a repository were not highlighted. #43275
- 🛠 Fixed a bug where a search query wouldn't be validated after the query type has changed. #43849
- 🛠 Fixed a bug where Open in Editor didn't work well with
"repositoryPathPattern" = "{nameWithOwner}"
#43839
✂ Removed
- ✂ Remove the older
log.gitserver.accessLogs
site config setting. The setting is succeeded bylog.auditLog.gitserverAccess
. #43174 - Remove
LOG_ALL_GRAPHQL_REQUESTS
env var. The setting is succeeded bylog.auditLog.graphQL
. #43181 - Removed support for setting
SRC_ENDPOINTS_CONSISTENT_HASH
. This was an environment variable to support the transition to a new consistent hashing scheme introduced in 3.31.0. #43528 - Removed legacy environment variable
ENABLE_CODE_INSIGHTS_SETTINGS_STORAGE
used in old versions of Code Insights to fall back to JSON settings based storage. All data was previously migrated in version 3.35 and this is no longer supported.