Christina Forney on January 20, 2020
Sourcegraph is the standard developer platform for code search and navigation at many of the largest and most advanced technology companies. With Sourcegraph, every company has access to the same kind of tools that Google and Facebook developers use every day.
We're excited to announce Sourcegraph 3.12. In addition to the usual updates, this release includes powerful experimental features. We're looking forward to your feedback!
β¨οΈ Search bar match case toggle
π« Exclude archived Bitbucket Server repositories in queries
β¬οΈ Download files from code views
π GitHub authentication now supports org membership restriction
π Search-based code intelligence indicator
π§ͺ Experimental features
Interactive search mode, search across multiple revisions, repository permissions API, and faster permissions fetching on Bitbucket Server
π Changelog
Every detail that changed in this release
ποΈ Thank you
Sourcegraph couldn't be what it is without the community
Deploy or upgrade: Local | AWS | DigitalOcean | Kubernetes cluster
Quickly toggle between case sensitive and case insensitive queries using the Aa
icon in the search field. Previously, this filter was applied by adding case:yes
to the search query. The toggle simplifies and standardizes this functionality.
When rolling out organization-wide changes, it is desirable to review campaigns with your teammates. Campaigns can now be created and saved as drafts prior to publishing the campaign and creating changesets (i.e. pull requests) on your code hosts. Changes can be published individually while in draft mode to verify the change with a subset of owners.
Code change management campaigns are in private beta. Watch the campaigns screencasts to see what we have planned, and apply for early access to campaigns for your organization.
You can now exclude archived repositories from Bitbucket Server using the archived:no
query syntax. Archived repositories are designated with the label archived
in Bitbucket Server. This is helpful when searching for repositories with specific characteristics such as all repositories in my organization with Gradle build files that are not archived (i.e. archived:no repohasfile:build.gradle
).
Quickly download files from Sourcegraph using the new download icon in the file header.
Organizations using GitHub for authentication can now limit access to a list of GitHub organizations for enhanced security and configuration. In the site configuration auth.providers
, find the GitHub section (or add it using the βAdd GitHub sign-inβ quick config button). Add the new allowOrgs
setting, and list the organizations whose members should have access to your Sourcegraph instance.
Hover tooltips and find reference results now display a badge to indicate when a result is search-based. These indicators can be disabled by adding { "experimentalFeatures": { "showBadgeAttachments": false } }
to your user, organization, or global settings.
This release contains many exciting new improvements to the Sourcegraph UI, configuration, and search capabilities. We look forward to hearing your feedback about them! Tweet @sourcegraph or email feedback@sourcegraph.com with your thoughts.
A new interactive search mode has been added to help users construct queries using UI elements. The new UI components help to narrow down search results as you iterate on your search. The existing plain text search mode and the query builder are still available via the dropdown menu to the left of the search bar.
To enable this feature add { "experimentalFeatures": { "splitSearchModes": true } }
to your user, org, or global settings.
To search across multiple revisions of the same repository, list multiple branch names (or other revspecs) separated by :
in your query, as in repo:myrepo@branch1:branch2:branch2
. To search all branches, use repo:myrepo@*refs/heads/
. To enable this feature, add { "experimentalFeatures": { "searchMultipleRevisionsPerRepository": true } }
to the site configuration. Previously this was only supported for diff and commit searches.
Sourcegraph now provides a GraphQL API for setting repository permissions. Teams with complex permissioning requirements (e.g., multiple code hosts), will benefit from setting up access controls directly in Sourcegraph. To enable Sourcegraph repository permissions, add { "permissions.userMapping" { "enabled": true, "bindID": "email" } }
to your site configuration. See the explicit permissions API documentation for more details.
Previously, fetching ACL data from Bitbucket Server was limited by API constraints. Enhancements to the Sourcegraph Bitbucket Server plugin have made fetching Bitbucket Server ACL data faster. To take advantage of this improvement, install the Bitbucket Server plugin and add { "experimentalFeatures": { "bitbucketServerFastPerm": "enabled" } }
to your site configuration.
archived
can be excluded from search with archived:no
syntax. #5494allowOrgs
site config setting in GitHub auth.providers
enables admins to restrict GitHub logins to members of specific GitHub organizations. #4195{ "experimentalFeatures": { "showBadgeAttachments": false } }
in global settings.BitbucketServerFastPerm
can be enabled to speed up fetching ACL data from Bitbucket Server instances. This requires Bitbucket Server Sourcegraph plugin to be installed.{ "experimentalFeatures" { "tls.external": true } }
which allows you to configure SSL/TLS settings for Sourcegraph contacting your code hosts. Currently just supports turning off TLS/SSL verification. #71:
in your query, as in repo:myrepo@branch1:branch2:branch2
. To search all branches, use repo:myrepo@*refs/heads/
. Requires the site configuration value { "experimentalFeatures": { "searchMultipleRevisionsPerRepository": true } }
. Previously this was only supported for diff and commit searches.{ "experimentalFeatures": { "splitSearchModes": true } }
. The existing plain text search format is still available via the dropdown menu on the left of the search bar.{ "permissions.userMapping" { "enabled": true, "bindID": "email" } }
./search/query-builder
. The home search page has a link to it.setAllRepositoriesEnabled
has been removed. #7478deleteRepository
has been removed. #7483The changelog for this and previous releases is available on GitHub.
Thank you to the many people who contributed to Sourcegraph since the last release!
Deploy or upgrade: Local | AWS | DigitalOcean | Kubernetes cluster
From the entire Sourcegraph team (@sourcegraph), happy coding!