sourcegraph v2.7.0 Release Notes

  • ๐Ÿ”„ Changed

    • Missing repositories no longer appear as search results. Instead, a count of repositories that were not found is displayed above the search results. Hovering over the count will reveal the names of the missing repositories.
    • "Show more" on the search results page will now reveal results that have already been fetched (if such results exist) without needing to do a new query.
    • ๐Ÿ“„ The bottom panel (on a file) now shows more tabs, including docstrings, multiple definitions, references (as before), external references grouped by repository, implementations (if supported by the language server), and file history.
    • The repository sidebar file tree is much faster on massive repositories (200,000+ files)

    ๐Ÿ›  Fixed

    • โฑ Searches no longer block if the index is unavailable (e.g. after the index pod restarts). Instead, it respects the normal search timeout and reports the situation to the user if the index is not yet available.
    • ๐Ÿ‘ Repository results are no longer returned for filters that are not supported (e.g. if file: is part of the search query)
    • ๐Ÿ›  Fixed an issue where file tree elements may be scrolled out of view on page load.
    • ๐Ÿ›  Fixed an issue that caused "Could not ensure repository updated" log messages when trying to update a large number of repositories from gitolite.
    • ๐Ÿ›  When using an HTTP authentication proxy ("auth.provider": "http-header"), usernames are now properly normalized (special characters including . replaced with -). This fixes an issue preventing users from signing in if their username contained these special characters.
    • ๐Ÿ›  Fixed an issue where the site-admin Updates page would incorrectly report that update checking was turned off when telemetryDisabled was set, even as it continued to report new updates.
    • repo: filters that match multiple repositories and contain a revision specifier now correctly return partial results even if some of the matching repositories don't have a matching revision.
    • โœ‚ Removed hardcoded list of supported languages for code intelligence. Any language can work now and support is determined from the server response.
    • ๐Ÿ›  Fixed an issue where modifying config.json on disk would not correctly mark the server as needing a restart.
    • ๐Ÿ›  Fixed an issue where certain diff searches (with very sparse matches in a repository's history) would incorrectly report no results found.
    • ๐Ÿ›  Fixed an issue where the langservers field in the site-configuration didn't require both the language and address field to be specified for each entry

    โž• Added

    • ๐Ÿ‘‰ Users (and site admins) may now create and manage access tokens to authenticate API clients. The site config auth.disableAccessTokens (renamed to auth.accessTokens in 2.11) disables this new feature. Access tokens are currently only supported when using the builtin and http-header authentication providers (not OpenID Connect or SAML).
    • ๐Ÿ‘‰ User and site admin management capabilities for user email addresses are improved.
    • ๐Ÿ”ง The user and organization management UI has been greatly improved. Site admins may now administer all organizations (even those they aren't a member of) and may edit profile info and configuration for all users.
    • If SSO is enabled (via OpenID Connect or SAML) and the SSO system provides user avatar images and/or display names, those are now used by Sourcegraph.
    • โฑ Enable new search timeout behavior by setting "experimentalFeatures": { "searchTimeoutParameter": "enabled"} in your site config.
      • Adds a new timeout: parameter to customize the timeout for searches. It defaults to 10s and may not be set higher than 1m.
      • The value of the timeout: parameter is a string that can be parsed by time.Duration (e.g. "100ms", "2s").
      • When timeout: is not provided, search optimizes for retuning results as soon as possible and will include slower kinds of results (e.g. symbols) only if they are found quickly.
      • When timeout: is provided, all result kinds are given the full timeout to complete.
    • A new user settings tokens page was added that allows users to obtain a token that they can use to authenticate to the Sourcegraph API.
    • Code intelligence indexes are now built for all repositories in the background, regardless of whether or not they are visited directly by a user.
    • ๐Ÿณ Language servers are now automatically enabled when visiting a repository. For example, visiting a Go repository will now automatically download and run the relevant Docker container for Go code intelligence.
    • ๐Ÿ“ˆ The site admin Analytics page will now display the number of "Code Intelligence" actions each user has made, including hovers, jump to definitions, and find references, on the Sourcegraph webapp or in a code host integration or extension.
    • ๐Ÿ”ง An experimental cross repository jump to definition which consults the OSS index on Sourcegraph.com. This is disabled by default; use "experimentalFeatures": { "jumpToDefOSSIndex": "enabled" } in your site configuration to enable it.
    • ๐Ÿ‘‰ Users can now view Git branches, tags, and commits, and compare Git branches and revisions on Sourcegraph. (The code host icon in the header takes you to the commit on the code host.)
    • ๐Ÿš€ A new admin panel allows you to view and manage language servers. For Docker deployments, it allows you to enable/disable/update/restart language servers at the click of a button. For cluster deployments, it shows the current status of language servers.
    • ๐Ÿ‘‰ Users can now tweet their feedback about Sourcegraph when clicking on the feedback smiley located in the navbar and filling out a Twitter feedback form.
    • A new button in the repository header toggles on/off the Git history panel for the current file.