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 with authz.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

    ๐Ÿ›  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 by log.auditLog.gitserverAccess. #43174
    • Remove LOG_ALL_GRAPHQL_REQUESTS env var. The setting is succeeded by log.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.