Christina Forney on July 20, 2019
Sourcegraph is the standard developer platform for code search and navigation at many of the largest and most exacting technology companies. With Sourcegraph, every company has access to the same kind of tools that Google and Facebook developers use every day.
π Native code intelligence with Sourcegraph Bitbucket Server plugin
π 30% indexed search latency improvement for small and medium instances
π New customizable quick links for frequently used code searches or other URLs
βοΈ New repository syncing support for Bitbucket Cloud
π Improved repository syncing progress UI
π
ββοΈ Exclude rules for GitHub repository sync configuration now support regexp
Deploy or upgrade: Local | AWS | DigitalOcean | Kubernetes cluster
The Sourcegraph for Bitbucket Server plugin is now available for installation on Bitbucket Server instances to provide native code intelligence automatically. Code intelligence, previously available only through the browser extension, includes hovers, tooltips, go to definition, and custom line decorations when browsing and reviewing code on Bitbucket Server instances.
There are two configuration steps:
βcorsOriginβ: β<bitbucket server url>β
We have improved our search algorithm's performance and reduced peak memory usage. Our benchmarks show that the 99th percentile latency of indexed searches in small to medium instances (less than 3000 repositories) is reduced by up to 30%. We will be continuing work to further benchmark and optimize Sourcegraph for our customers with 30,000+ repositories.
Quick links can now be added below the search bar on the home and search results pages. They can be used for quickly accessing frequently used URLs such as a code search, main repository, or external resources like your CI system or team documentation.
Quick links can be defined at the global, organization, and user level using the quicklinks
field:
{
// ...
"quicklinks": [
// An external doc resource
{
"name": "Sourcegraph docs",
"url": "https://docs.sourcegraph.com"
},
// The main repository for your organization
{
"name": "Main repository",
"url": "/github.com/sourcegraph/sourcegraph"
},
// A commonly used search (all CHANGELOG updates)
{
"name": "Changelog updates",
"url": "/search?q=repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+file:changelog.md+type:diff"
}
]
// ...
}
Sourcegraph 3.6 now supports repository syncing for Bitbucket Cloud. In this initial release, all repositories accessible by the token for the user (including from teams listed in the config) will be synced. Support for excluding repositories and for adding public repositories is coming in a future version.
Applying an external service configuration change is now done in the background upon saving, with progress information available to admins by clicking the syncing status indicator on the global navigation bar.
The repository syncing status indicator announced in 3.5 has been improved to support instances with 30,000+ repositories and to only show the number of repositories remaining to be cloned. This UI feature is now shown to all site admins.
The github.exclude
field for the GitHub external service now supports the use of regular expressions using {"pattern": "^topsecretrepogroup/.*"}
.
Now, entire groups of repositories such as those containing secrets, can be excluded in a single regexp instead of manually entering the name or id for each repository.
Our remote-first team from around the world is coming together at GopherCon next week. We are looking forward to seeing our friends in the Go community, so make sure to find us while youβre there! You can find a Sourcegrapher by spotting someone wearing one of these hoodies:
github.exclude
setting in GitHub external service config additionally allows you to specify regular expressions with {"pattern": "regex"}
.quicklinks
setting allows adding links to be displayed on the homepage and search page for all users (or users in an organization).Repository.createdAt
and Repository.updatedAt
are deprecated and will be removed in 3.8. Now createdAt
is always the current time and updatedAt is always null.repositoryQuery
is now only required if repos
is not set..
character. #4674+
on the results page to signal that some results have been omitted. #4579Thank 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!