blob: 5133c046e45982cecb10c9a7b6a490013c715ebb [file] [log] [blame]
David Pursehousecbea27a2013-06-04 13:29:02 +09001Release notes for Gerrit 2.7
2============================
3
4
5Gerrit 2.7 is now available:
6
David Pursehouse26797372013-10-15 22:09:17 +09007link:https://gerrit-releases.storage.googleapis.com/gerrit-2.7.war[
8https://gerrit-releases.storage.googleapis.com/gerrit-2.7.war]
David Pursehousecbea27a2013-06-04 13:29:02 +09009
David Pursehouse26797372013-10-15 22:09:17 +090010Gerrit 2.7 includes the bug fixes done with link:ReleaseNotes-2.6.1.html[Gerrit 2.6.1].
11These bug fixes are *not* listed in these release notes.
David Pursehousecbea27a2013-06-04 13:29:02 +090012
13Schema Change
14-------------
15
16
17*WARNING:* This release contains schema changes. To upgrade:
18----
19 java -jar gerrit.war init -d site_path
20----
21
22*WARNING:* Upgrading to 2.7.x requires the server be first upgraded to 2.1.7 (or
23a later 2.1.x version), and then to 2.7.x. If you are upgrading from 2.2.x.x or
24newer, you may ignore this warning and upgrade directly to 2.7.x.
25
26
27
David Pursehouse26797372013-10-15 22:09:17 +090028Gerrit Trigger Plugin in Jenkins
29--------------------------------
30
31
32*WARNING:* Upgrading to 2.7 may cause the Gerrit Trigger Plugin in Jenkins to
33stop working. Please see the "New 'Stream Events' global capability" section
34below.
35
36
David Pursehousecbea27a2013-06-04 13:29:02 +090037Release Highlights
38------------------
39
40
41* New `copyMaxScore` setting for labels.
42* Comment links configurable per project.
43* Themes configurable per project.
44* Better support for binary files and images in diff screens.
David Pursehouse46ee6702013-07-09 13:39:52 +090045* User avatars in more places.
David Pursehousecbea27a2013-06-04 13:29:02 +090046* Several new REST APIs.
47
48
49New Features
50------------
51
52
53General
54~~~~~~~
55
56* New `copyMaxScore` setting for labels.
57+
58Labels can be link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-labels.html#label_copyMaxScore[
59configured] to copy approvals forward to the next patch set.
60
61* Comment links can be link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-gerrit.html#commentlink[
62defined per project in the project configuration].
63
64* Gerrit administrators can define project-specific themes.
65+
66Themes can be link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-themes.html[
67configured site-wide or per project].
68
69* New '/a/tools' URL.
70+
71This allows users to download the `commit-msg` hook via the command line if the
72Gerrit server requires authentication globally.
73
74* New 'Stream Events' global capability.
75+
David Pursehouse58a7e792013-12-09 16:25:20 +090076The link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/access-control.html#capability_streamEvents[
David Pursehousecbea27a2013-06-04 13:29:02 +090077Stream Events capability] controls access to the `stream-events` ssh command.
78+
79Only administrators and users having this capability are allowed to use `stream-events`.
David Pursehouse26797372013-10-15 22:09:17 +090080+
81If you are using the Gerrit Trigger Plugin in Jenkins, you must make sure that the
82'Non-Interactive Users' group, or whichever group the Jenkins user belongs to, is
83given the 'Stream Events' capability.
David Pursehousecbea27a2013-06-04 13:29:02 +090084
85* Allow opening new changes on existing commits.
86+
David Pursehouse46ee6702013-07-09 13:39:52 +090087The `%base` argument can be used with `refs/for/` to identify a specific revision the server should
88start to look for new commits at. Any commits in the range `$base..$tip` will be opened as a new
David Pursehousecbea27a2013-06-04 13:29:02 +090089change, even if the commit already has another change on a different branch.
90
91* New setting `gitweb.linkDrafts` to control if gitweb links are shown on drafts.
92+
93By default, Gerrit will show links to gitweb on all patch sets. If the
94link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-gerrit.html#gitweb.linkDrafts[
95gitweb.linkDrafts setting] is set to 'false', links will not be shown on
96draft patch sets.
97
98* Allow changes to be automatically submitted on push.
99+
100Teams that want to use Gerrit's submit strategies to handle contention on busy
David Pursehouse46ee6702013-07-09 13:39:52 +0900101branches can use `%submit` to create a change and have it
David Pursehouse26797372013-10-15 22:09:17 +0900102link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/user-upload.html#auto_merge[
David Pursehouse46ee6702013-07-09 13:39:52 +0900103immediately submitted], if the caller has Submit permission on `refs/for/<ref>`.
104
105* Allow administrators to see all groups.
David Pursehousecbea27a2013-06-04 13:29:02 +0900106
107
108Web UI
109~~~~~~
110
111
112Global
113^^^^^^
114
David Pursehouse46ee6702013-07-09 13:39:52 +0900115* User avatars are displayed in more places in the Web UI.
116
117* 'Diffy' is used as avatar for the Gerrit server itself.
118
119* A popup with user profile information is shown when hovering the
120mouse over avatar images.
David Pursehousecbea27a2013-06-04 13:29:02 +0900121
122
123Change Screens
124^^^^^^^^^^^^^^
125
126
127* link:https://code.google.com/p/gerrit/issues/detail?id=667[Issue 667]:
128Highlight patch sets that have drafts.
129+
David Pursehoused9f2eca2013-06-23 21:04:55 +0900130Patch sets having unpublished draft comments are highlighted with an icon.
David Pursehousecbea27a2013-06-04 13:29:02 +0900131
132* Option to show relative times in change tables.
133+
134A new preference setting allows the user to decide if absolute or relative dates
135should be shown in change tables.
136
137* Option to set default visibility of change comments.
138+
139A new preference setting allows the user to set the default visibility of
140change comments.
141
142
143Diff Screens
144^^^^^^^^^^^^
145
David Pursehouse46ee6702013-07-09 13:39:52 +0900146* Show images in side-by-side and unified diffs.
David Pursehousecbea27a2013-06-04 13:29:02 +0900147
148* Show diffed images above/below each other in unified diffs.
149
David Pursehouse46ee6702013-07-09 13:39:52 +0900150* Harmonize unified diff's styling of images with that of text.
David Pursehousecbea27a2013-06-04 13:29:02 +0900151
152
153REST API
154~~~~~~~~
155
156
157Several new link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api.html[
158REST API endpoints] are added.
159
160Accounts
161^^^^^^^^
162
163
164* link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-accounts.html#get-diff-preferences[
165Get account diff preferences]
166
167* link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-accounts.html#set-diff-preferences[
168Set account diff preferences]
169
170
171Changes
172^^^^^^^
173
174
175* link:https://code.google.com/p/gerrit/issues/detail?id=1820[Issue 1820]:
176link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-changes.html#list-comments[
177List comments]
178
179* link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-changes.html#get-comment[
180Get comment]
181
182
183
184Projects
185^^^^^^^^
186
187
188* link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-projects.html#get-config[
189Get project configuration]
190
191
192ssh
193~~~
194
195
196* link:https://code.google.com/p/gerrit/issues/detail?id=1088[Issue 1088]:
197Support link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-gerrit.html#sshd.kerberosKeytab[
198Kerberos authentication for ssh interaction].
199
200
201Bug Fixes
202---------
203
204General
205~~~~~~~
206
207* Postpone check for first account until adding an account.
208
David Pursehouse26797372013-10-15 22:09:17 +0900209* link:https://code.google.com/p/gerrit/issues/detail?id=1848[Issue 1848]:
210Mark `ALREADY_MERGED` changes as merged in the database.
David Pursehouse070b8ac2013-07-19 12:55:07 +0900211+
212If a change was marked `ALREADY_MERGED`, likely due to a bug in
213merge code, it does not end up in the list of changes to be submitted
214and never gets marked as merged despite the branch head already
215having advanced.
David Pursehouse26797372013-10-15 22:09:17 +0900216
217* link:https://code.google.com/p/gerrit/issues/detail?id=600[Issue 600]:
218Fix change stuck in SUBMITTED state but actually merged.
David Pursehouse070b8ac2013-07-19 12:55:07 +0900219+
David Pursehouse26797372013-10-15 22:09:17 +0900220When submitting a commit that has a tag, it could not be merged.
221
222* Fix null-pointer exception when dashboard title is not specified.
223+
224If the title is not specified, the path of the dashboard config file
225is used as title.
226
227* Allow label values to be configured with no text.
228
229* link:https://code.google.com/p/gerrit/issues/detail?id=1966[Issue 1966]:
230Fix Gerrit plugins under Tomcat by avoiding Guice static filter.
231
232* link:https://code.google.com/p/gerrit/issues/detail?id=2054[Issue 2054]:
233Expand capabilities of `ldap.groupMemberPattern`.
234
235* link:https://code.google.com/p/gerrit/issues/detail?id=2098[Issue 2098]:
236Fix re-enabling of disabled plugins.
237
238* link:https://code.google.com/p/gerrit/issues/detail?id=2128[Issue 2128]:
239Fix null-pointer exception when deleting draft patch set when previous
240draft was already deleted.
David Pursehouse070b8ac2013-07-19 12:55:07 +0900241
David Pursehousecbea27a2013-06-04 13:29:02 +0900242
243Web UI
244~~~~~~
245
246
David Pursehouse26797372013-10-15 22:09:17 +0900247* Properly handle double-click on external group in GroupTable.
248+
249Double-clicking on an external group opens the group's URL (if it
250is provided).
251
David Pursehousecbea27a2013-06-04 13:29:02 +0900252* link:https://code.google.com/p/gerrit/issues/detail?id=1848[Issue 1848]:
253Don't discard inline comments when escape key is pressed.
254
255* link:https://code.google.com/p/gerrit/issues/detail?id=1863[Issue 1863]:
256Drop Arial Unicode MS font and request only sans-serif.
257+
258Arial Unicode MS does not have a bold version. Selecting this font prevents
259correct display of bold text on Mac OS X. Simplify the selector to sans-serif
260and allow the browser to use the user's preferred font in this family.
261
David Pursehouse26797372013-10-15 22:09:17 +0900262* link:https://code.google.com/p/gerrit/issues/detail?id=1872[Issue 1872]:
263Fix tab expansion in diff screens when syntax coloring is on.
264
265* link:https://code.google.com/p/gerrit/issues/detail?id=1904[Issue 1904]:
266Fix diff screens for files with CRLF line endings.
267
268* link:https://code.google.com/p/gerrit/issues/detail?id=2056[Issue 2056]:
269Display custom NoOp label score for open changes.
270
271* link:https://code.google.com/p/gerrit/issues/detail?id=2093[Issue 2093]:
272Fix incorrect title of "repo download" link on change screen.
273
274* link:https://code.google.com/p/gerrit/issues/detail?id=2127[Issue 2127]:
275Remove hard-coded documentation links from the admin page.
276
277* link:https://code.google.com/p/gerrit/issues/detail?id=2010[Issue 2010]:
278Fix null-pointer exception when searching for changes with the query
279`owner:self`.
280
281* link:https://code.google.com/p/gerrit/issues/detail?id=2039[Issue 2039]:
282Fix browser null-pointer exception when ChangeCache is incomplete.
283
David Pursehousecbea27a2013-06-04 13:29:02 +0900284
285REST API
286~~~~~~~~
287
288
289* link:https://code.google.com/p/gerrit/issues/detail?id=1819[Issue 1819]:
290Include change-level messages to the payload returned from
291the link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-changes#get-change-detail[
292Get Change Detail REST API endpoint].
293
David Pursehouse46ee6702013-07-09 13:39:52 +0900294* Correct URL encoding in 'GroupInfo'.
295
David Pursehousecbea27a2013-06-04 13:29:02 +0900296
297Email
298~~~~~
299
David Pursehouse46ee6702013-07-09 13:39:52 +0900300* Log failure to access reviewer list for notification emails.
David Pursehousecbea27a2013-06-04 13:29:02 +0900301
302* Log when appropriate if email delivery is skipped.
303
304
David Pursehouse070b8ac2013-07-19 12:55:07 +0900305ssh
306~~~
307
308
309* link:https://code.google.com/p/gerrit/issues/detail?id=2016[Issue 2016]:
310Flush caches after adding or deleting ssh keys via the `set-account` ssh command.
311
David Pursehousecbea27a2013-06-04 13:29:02 +0900312Tools
313~~~~~
314
315
316* The release build now builds for all browser configurations.
317
318
319Upgrades
320--------
321
322* `gwtexpui` is now built in the gerrit tree rather than linking a separate module.
323
324
325
326Documentation
327-------------
328
329
330* Update the access control documentation to clarify how to set
331link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/access-control.html#global_capabilities[
332global capabilities].
333
334* Clarify the
335link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-gerrit.html#cache_names[
David Pursehouse46ee6702013-07-09 13:39:52 +0900336change cache configuration].
David Pursehousecbea27a2013-06-04 13:29:02 +0900337