Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: 3.1 blogpost #83

Merged
merged 31 commits into from
Feb 20, 2019
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d775af5
Added 3.1 blogpost
ryan-blunden Feb 19, 2019
50940c6
3.1 blog post updates
ryan-blunden Feb 20, 2019
8cfe952
Update blogposts/announcing-sourcegraph-3.1.md
attfarhan Feb 20, 2019
e970885
Fix suggested by @dadlerj
ryan-blunden Feb 20, 2019
b6c66aa
Fix from @sqs 👍
sqs Feb 20, 2019
9696e0a
Fix from @sqs 👍
sqs Feb 20, 2019
a8e9c4c
Fix from @sqs 👍
sqs Feb 20, 2019
6c3e575
FIx from @sqs 👍
sqs Feb 20, 2019
2f010a6
Fix from @dadlerj 👍
ryan-blunden Feb 20, 2019
ec027e6
Fix from @sqs 👍
sqs Feb 20, 2019
b93a7a0
Fix from @sqs 👍
ryan-blunden Feb 20, 2019
e413574
Fix from @sqs 👍
sqs Feb 20, 2019
f1bc05b
Fix from @sqs 👍
sqs Feb 20, 2019
ca7c30a
Fix from @sqs 👍
sqs Feb 20, 2019
669ed7a
Fix from @sqs 👍
sqs Feb 20, 2019
2997852
Fix from @sqs 👍
sqs Feb 20, 2019
5f6b085
Fix from @sqs 👍
sqs Feb 20, 2019
ea5b1f6
Fix from @sqs 👍
sqs Feb 20, 2019
408ad92
Fix from @dadlerj
ryan-blunden Feb 20, 2019
a4af2a5
Inlined changelog
ryan-blunden Feb 20, 2019
4d50f29
Fix from @sqs
ryan-blunden Feb 20, 2019
ab795d5
Fix from @sqs 👍
ryan-blunden Feb 20, 2019
f6ae50b
Reworded fixed release schedule
ryan-blunden Feb 20, 2019
ba21ba8
Fix from @nicksnyder 👍
nicksnyder Feb 20, 2019
1133a71
Fixed bullet in site admin improvements, added 2 videos and set publi…
ryan-blunden Feb 20, 2019
d069fca
Update blogposts/announcing-sourcegraph-3.1.md
nicksnyder Feb 20, 2019
f0d7c59
Fix from @nicksnyder
nicksnyder Feb 20, 2019
61faad0
Fix from @nicksnyder for query builder
nicksnyder Feb 20, 2019
d92e7f6
Removed bullets from "updated our documentation..."
ryan-blunden Feb 20, 2019
95f9ee4
Added videos
ryan-blunden Feb 20, 2019
c9d510c
Added contributors
ryan-blunden Feb 20, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 140 additions & 0 deletions blogposts/announcing-sourcegraph-3.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
---
title: 'Sourcegraph 3.1 released'
author: 'Ryan Blunden'
publishDate: 2019-02-20T05:59-06:00
tags: [
"blog"
]
slug: sourcegraph-3.1
heroImage: //images.ctfassets.net/le3mxztn6yoo/t4Qpcq5kA0AYM24Ws4mOk/4edf5502a936bbec90c262fa00355aed/sourcegraph-mark.png
published: true
---

Sourcegraph 3.1 is now out! This release includes stability and documentation improvements, plus an easy query builder for searching your code (with useful query examples). Also, mark your calendars: our new fixed release schedule means you get a new Sourcegraph release on the 20th of each month.

<!-- (ryan): Hyperlink to headings in above paragraph -->

What is Sourcegraph? Sourcegraph is an open-source, self-hosted, cross-repository code search and navigation tool, with an efficient web interface and "feels-like-native" integration into your code host. [Install or upgrade Sourcegraph.](#install-or-upgrade)

## Find answers in code more easily with the new query builder

<p class="container">
<div style="padding:56.25% 0 0 0;position:relative;">
<iframe src="https://player.vimeo.com/video/318509611?color=0CB6F4&amp;title=0&amp;byline=0&amp;portrait=0&autoplay=1&loop=1" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</div>
</p>

Did you know that in addition to code, you can search commit diffs, commit messages, and symbols?

Give it a try and let us know what you think via [GitHub](https://github.com/sourcegraph/sourcegraph/issues/new/choose) or [Twitter](https://twitter.com/srcgraph).

## Improved go-to-definition and hover tooltips for all languages

<p class="container">
<div style="padding:56.25% 0 0 0;position:relative;">
<iframe src="https://player.vimeo.com/video/318518281?color=0CB6F4&amp;title=0&amp;byline=0&amp;portrait=0&autoplay=1&loop=1" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</div>
</p>

We've improved Sourcegraph's [code intelligence extensions](https://sourcegraph.com/extensions?query=category%3A%22Programming+languages%22), which let you go to definitions, find references, and see hover tooltips on your code (in all languages).

- The docstrings in hover tooltips are more accurate.
- Indented sections in docstrings are rendered as code blocks in hovers.
- Tokens in comments are ignored unless they look like code (e.g., if they're wrapped in backticks or look like a function call `foo()`)

We're actively improving code intelligence in all languages, so please [send us feedback](https://github.com/sourcegraph/sourcegraph/issues/new?assignees=&labels=&template=feature_request.md&title=Language%20extension%20improvement%20for)!

## Site admin improvements

<p class="container">
<div style="padding:56.25% 0 0 0;position:relative;">
<iframe src="https://player.vimeo.com/video/318533427?color=0CB6F4&amp;title=0&amp;byline=0&amp;portrait=0&autoplay=1&loop=1" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</div>
</p>

We've added a couple features to help site admins manage a Sourcegraph instance in an enterprise environment:

- Improved [management console](https://docs.sourcegraph.com/admin/management_console) JSON editor for critical configuration, now with editor completion, inline documentation, and validation.
ryan-blunden marked this conversation as resolved.
Show resolved Hide resolved
- Look up users by email address in the GraphQL API
- [Prevent users from changing their username](https://docs.sourcegraph.com/admin/config/critical_config#reference) (from the username set by SSO)

Making configuration changes through the JSON editor is now easier too with easy to access documentation in the editor itself.
ryan-blunden marked this conversation as resolved.
Show resolved Hide resolved

## Improved configuration management and documentation

Sourcegraph 3.0 introduced the [management console](https://about.sourcegraph.com/blog/sourcegraph-3.0#management-console-and-site-config-improvements) for editing critical configuration to allow recovery from misconfiguration in the site admin.

We've [updated our documentation](https://docs.sourcegraph.com/admin/config) to reflect this change, separating configuration into two sections: [site configuration](https://docs.sourcegraph.com/admin/config/site_config#reference) and [critical configuration](https://docs.sourcegraph.com/admin/config/critical_config#reference).

The documentation pages for [site configuration](https://docs.sourcegraph.com/admin/config/site_config#reference) and [critical configuration](https://docs.sourcegraph.com/admin/config/critical_config#reference) now describe each option and give examples, to make it easier for you to configure your Sourcegraph instance. You can get the same documentation and examples in the JSON editors for both types of configuration, too.

## New Sourcegraph extension APIs

<p class="container">
<div style="padding:56.25% 0 0 0;position:relative;">
<iframe src="https://player.vimeo.com/video/318541630?color=0CB6F4&amp;title=0&amp;byline=0&amp;portrait=0&autoplay=1&loop=1" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen=""></iframe>
</div>
</p>

The [Sourcegraph extension API](https://docs.sourcegraph.com/extensions) has two new APIs to make it easier to add interactive features to code views on Sourcegraph, GitHub, and other similar tools:

- [API for accessing the current text selection range(s)](https://github.com/sourcegraph/sourcegraph/issues/702)
- [APIs for listening to changes to the active text editor and its selections](https://github.com/sourcegraph/sourcegraph/issues/2026).

This means the [Git extras Sourcegraph extension](https://sourcegraph.com/extensions?query=git-extras) works better than ever. Want this functionality on GitHub too? Just install the [Sourcegraph browser extension](https://docs.sourcegraph.com/integration/browser_extension).

## Fixed release schedule: a new Sourcegraph release on the 20th of every month
ryan-blunden marked this conversation as resolved.
Show resolved Hide resolved

Since shipping version 2.4 in January 2018, we've released 11 versions of Sourcegraph. Shipping regularly means progress is constant and predictable.

We're constantly looking for ways to improve our release process. Inspired by [GitLab's fixed monthly release cycle](https://about.gitlab.com/2018/11/21/why-gitlab-uses-a-monthly-release-cycle/), Sourcegraph is now [released on the 20th of each month](https://docs.sourcegraph.com/dev/releases).

We encourage feedback as early as possible so we can incorporate it into our product planning. View the [product roadmap](https://docs.sourcegraph.com/dev/roadmap) to track what features are slated for the next release.

## Changelog
ryan-blunden marked this conversation as resolved.
Show resolved Hide resolved

### Added

- Added Docker-specific help text when running the Sourcegraph docker image in an environment with an sufficient open file descriptor limit.
- Added syntax highlighting for Kotlin and Dart.
- Added a management console environment variable to disable HTTPS, see [the docs](https://docs.sourcegraph.com/admin/management_console#can-i-disable-https-on-the-management-console) for more information.
- Added `auth.disableUsernameChanges` to critical configuration to prevent users from changing their usernames.
- Site admins can query a user by email address or username from the GraphQL API.
- Added a search query builder to the main search page. Click "Use search query builder" to open the query builder, which is a form with separate inputs for commonly used search keywords.

### Changed

- File match search results now show full repository name if there are results from mirrors on different code hosts (e.g. github.com/sourcegraph/sourcegraph and gitlab.com/sourcegraph/sourcegraph)
- Search queries now use "smart case" by default. Searches are case insensitive unless you use uppercase letters. To explicitly set the case, you can still use the `case` field (e.g. `case:yes`, `case:no`). To explicitly set smart case, use `case:auto`.

### Fixed

- Fixed an issue where the management console would improperly regenerate the TLS cert/key unless `CUSTOM_TLS=true` was set. See the documentation for [how to use your own TLS certificate with the management console](https://docs.sourcegraph.com/admin/management_console#how-can-i-use-my-own-tls-certificates-with-the-management-console).

## Thank you

Thank you to the many people who contributed to make Sourcegraph better since the last release!

- [@AndreKR](https://github.com/AndreKR)
- [@ijt](https://github.com/ijt)
- [@adam-moss](https://github.com/adam-moss)
- [@caarlos0](https://github.com/caarlos0)
- [@jlangston](https://github.com/jlangston)
- [@CH-JosephBironas](https://github.com/CH-JosephBironas)
- [@mjhogan](https://github.com/mjhogan)
- [@chmllr](https://github.com/chmllr)
- [@yevbar](https://github.com/yevbar)
- [@vinchauhan](https://github.com/vinchauhan)
- [@immanuelfodor](https://github.com/immanuelfodor)
- [@terinjokes](https://github.com/terinjokes)
- [@maxhallinan](https://github.com/maxhallinan)

## Install or upgrade

Ready to install? [Install Sourcegraph 3.1](https://docs.sourcegraph.com/)

Upgrading from 2.x or 3.0? [See the migration guide](https://docs.sourcegraph.com/admin/migration/3_0)

---

From the entire Sourcegraph team ([@srcgraph](https://twitter.com/srcgraph)), happy coding!