David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 1 | Release notes for Gerrit 2.7 |
| 2 | ============================ |
| 3 | |
| 4 | |
| 5 | Gerrit 2.7 is now available: |
| 6 | |
David Pursehouse | 2679737 | 2013-10-15 22:09:17 +0900 | [diff] [blame] | 7 | link:https://gerrit-releases.storage.googleapis.com/gerrit-2.7.war[ |
| 8 | https://gerrit-releases.storage.googleapis.com/gerrit-2.7.war] |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 9 | |
David Pursehouse | 2679737 | 2013-10-15 22:09:17 +0900 | [diff] [blame] | 10 | Gerrit 2.7 includes the bug fixes done with link:ReleaseNotes-2.6.1.html[Gerrit 2.6.1]. |
| 11 | These bug fixes are *not* listed in these release notes. |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 12 | |
| 13 | Schema 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 |
| 23 | a later 2.1.x version), and then to 2.7.x. If you are upgrading from 2.2.x.x or |
| 24 | newer, you may ignore this warning and upgrade directly to 2.7.x. |
| 25 | |
| 26 | |
| 27 | |
David Pursehouse | 2679737 | 2013-10-15 22:09:17 +0900 | [diff] [blame] | 28 | Gerrit Trigger Plugin in Jenkins |
| 29 | -------------------------------- |
| 30 | |
| 31 | |
| 32 | *WARNING:* Upgrading to 2.7 may cause the Gerrit Trigger Plugin in Jenkins to |
| 33 | stop working. Please see the "New 'Stream Events' global capability" section |
| 34 | below. |
| 35 | |
| 36 | |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 37 | Release 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 Pursehouse | 46ee670 | 2013-07-09 13:39:52 +0900 | [diff] [blame] | 45 | * User avatars in more places. |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 46 | * Several new REST APIs. |
| 47 | |
| 48 | |
| 49 | New Features |
| 50 | ------------ |
| 51 | |
| 52 | |
| 53 | General |
| 54 | ~~~~~~~ |
| 55 | |
| 56 | * New `copyMaxScore` setting for labels. |
| 57 | + |
| 58 | Labels can be link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-labels.html#label_copyMaxScore[ |
| 59 | configured] 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[ |
| 62 | defined per project in the project configuration]. |
| 63 | |
| 64 | * Gerrit administrators can define project-specific themes. |
| 65 | + |
| 66 | Themes can be link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-themes.html[ |
| 67 | configured site-wide or per project]. |
| 68 | |
| 69 | * New '/a/tools' URL. |
| 70 | + |
| 71 | This allows users to download the `commit-msg` hook via the command line if the |
| 72 | Gerrit server requires authentication globally. |
| 73 | |
| 74 | * New 'Stream Events' global capability. |
| 75 | + |
David Pursehouse | 58a7e79 | 2013-12-09 16:25:20 +0900 | [diff] [blame] | 76 | The link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/access-control.html#capability_streamEvents[ |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 77 | Stream Events capability] controls access to the `stream-events` ssh command. |
| 78 | + |
| 79 | Only administrators and users having this capability are allowed to use `stream-events`. |
David Pursehouse | 2679737 | 2013-10-15 22:09:17 +0900 | [diff] [blame] | 80 | + |
| 81 | If 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 |
| 83 | given the 'Stream Events' capability. |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 84 | |
| 85 | * Allow opening new changes on existing commits. |
| 86 | + |
David Pursehouse | 46ee670 | 2013-07-09 13:39:52 +0900 | [diff] [blame] | 87 | The `%base` argument can be used with `refs/for/` to identify a specific revision the server should |
| 88 | start to look for new commits at. Any commits in the range `$base..$tip` will be opened as a new |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 89 | change, 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 | + |
| 93 | By default, Gerrit will show links to gitweb on all patch sets. If the |
| 94 | link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-gerrit.html#gitweb.linkDrafts[ |
| 95 | gitweb.linkDrafts setting] is set to 'false', links will not be shown on |
| 96 | draft patch sets. |
| 97 | |
| 98 | * Allow changes to be automatically submitted on push. |
| 99 | + |
| 100 | Teams that want to use Gerrit's submit strategies to handle contention on busy |
David Pursehouse | 46ee670 | 2013-07-09 13:39:52 +0900 | [diff] [blame] | 101 | branches can use `%submit` to create a change and have it |
David Pursehouse | 2679737 | 2013-10-15 22:09:17 +0900 | [diff] [blame] | 102 | link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/user-upload.html#auto_merge[ |
David Pursehouse | 46ee670 | 2013-07-09 13:39:52 +0900 | [diff] [blame] | 103 | immediately submitted], if the caller has Submit permission on `refs/for/<ref>`. |
| 104 | |
| 105 | * Allow administrators to see all groups. |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 106 | |
| 107 | |
| 108 | Web UI |
| 109 | ~~~~~~ |
| 110 | |
| 111 | |
| 112 | Global |
| 113 | ^^^^^^ |
| 114 | |
David Pursehouse | 46ee670 | 2013-07-09 13:39:52 +0900 | [diff] [blame] | 115 | * 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 |
| 120 | mouse over avatar images. |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 121 | |
| 122 | |
| 123 | Change Screens |
| 124 | ^^^^^^^^^^^^^^ |
| 125 | |
| 126 | |
| 127 | * link:https://code.google.com/p/gerrit/issues/detail?id=667[Issue 667]: |
| 128 | Highlight patch sets that have drafts. |
| 129 | + |
David Pursehouse | d9f2eca | 2013-06-23 21:04:55 +0900 | [diff] [blame] | 130 | Patch sets having unpublished draft comments are highlighted with an icon. |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 131 | |
| 132 | * Option to show relative times in change tables. |
| 133 | + |
| 134 | A new preference setting allows the user to decide if absolute or relative dates |
| 135 | should be shown in change tables. |
| 136 | |
| 137 | * Option to set default visibility of change comments. |
| 138 | + |
| 139 | A new preference setting allows the user to set the default visibility of |
| 140 | change comments. |
| 141 | |
| 142 | |
| 143 | Diff Screens |
| 144 | ^^^^^^^^^^^^ |
| 145 | |
David Pursehouse | 46ee670 | 2013-07-09 13:39:52 +0900 | [diff] [blame] | 146 | * Show images in side-by-side and unified diffs. |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 147 | |
| 148 | * Show diffed images above/below each other in unified diffs. |
| 149 | |
David Pursehouse | 46ee670 | 2013-07-09 13:39:52 +0900 | [diff] [blame] | 150 | * Harmonize unified diff's styling of images with that of text. |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 151 | |
| 152 | |
| 153 | REST API |
| 154 | ~~~~~~~~ |
| 155 | |
| 156 | |
| 157 | Several new link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api.html[ |
| 158 | REST API endpoints] are added. |
| 159 | |
| 160 | Accounts |
| 161 | ^^^^^^^^ |
| 162 | |
| 163 | |
| 164 | * link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-accounts.html#get-diff-preferences[ |
| 165 | Get account diff preferences] |
| 166 | |
| 167 | * link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-accounts.html#set-diff-preferences[ |
| 168 | Set account diff preferences] |
| 169 | |
| 170 | |
| 171 | Changes |
| 172 | ^^^^^^^ |
| 173 | |
| 174 | |
| 175 | * link:https://code.google.com/p/gerrit/issues/detail?id=1820[Issue 1820]: |
| 176 | link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-changes.html#list-comments[ |
| 177 | List comments] |
| 178 | |
| 179 | * link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-changes.html#get-comment[ |
| 180 | Get comment] |
| 181 | |
| 182 | |
| 183 | |
| 184 | Projects |
| 185 | ^^^^^^^^ |
| 186 | |
| 187 | |
| 188 | * link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-projects.html#get-config[ |
| 189 | Get project configuration] |
| 190 | |
| 191 | |
| 192 | ssh |
| 193 | ~~~ |
| 194 | |
| 195 | |
| 196 | * link:https://code.google.com/p/gerrit/issues/detail?id=1088[Issue 1088]: |
| 197 | Support link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-gerrit.html#sshd.kerberosKeytab[ |
| 198 | Kerberos authentication for ssh interaction]. |
| 199 | |
| 200 | |
| 201 | Bug Fixes |
| 202 | --------- |
| 203 | |
| 204 | General |
| 205 | ~~~~~~~ |
| 206 | |
| 207 | * Postpone check for first account until adding an account. |
| 208 | |
David Pursehouse | 2679737 | 2013-10-15 22:09:17 +0900 | [diff] [blame] | 209 | * link:https://code.google.com/p/gerrit/issues/detail?id=1848[Issue 1848]: |
| 210 | Mark `ALREADY_MERGED` changes as merged in the database. |
David Pursehouse | 070b8ac | 2013-07-19 12:55:07 +0900 | [diff] [blame] | 211 | + |
| 212 | If a change was marked `ALREADY_MERGED`, likely due to a bug in |
| 213 | merge code, it does not end up in the list of changes to be submitted |
| 214 | and never gets marked as merged despite the branch head already |
| 215 | having advanced. |
David Pursehouse | 2679737 | 2013-10-15 22:09:17 +0900 | [diff] [blame] | 216 | |
| 217 | * link:https://code.google.com/p/gerrit/issues/detail?id=600[Issue 600]: |
| 218 | Fix change stuck in SUBMITTED state but actually merged. |
David Pursehouse | 070b8ac | 2013-07-19 12:55:07 +0900 | [diff] [blame] | 219 | + |
David Pursehouse | 2679737 | 2013-10-15 22:09:17 +0900 | [diff] [blame] | 220 | When 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 | + |
| 224 | If the title is not specified, the path of the dashboard config file |
| 225 | is 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]: |
| 230 | Fix Gerrit plugins under Tomcat by avoiding Guice static filter. |
| 231 | |
| 232 | * link:https://code.google.com/p/gerrit/issues/detail?id=2054[Issue 2054]: |
| 233 | Expand capabilities of `ldap.groupMemberPattern`. |
| 234 | |
| 235 | * link:https://code.google.com/p/gerrit/issues/detail?id=2098[Issue 2098]: |
| 236 | Fix re-enabling of disabled plugins. |
| 237 | |
| 238 | * link:https://code.google.com/p/gerrit/issues/detail?id=2128[Issue 2128]: |
| 239 | Fix null-pointer exception when deleting draft patch set when previous |
| 240 | draft was already deleted. |
David Pursehouse | 070b8ac | 2013-07-19 12:55:07 +0900 | [diff] [blame] | 241 | |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 242 | |
| 243 | Web UI |
| 244 | ~~~~~~ |
| 245 | |
| 246 | |
David Pursehouse | 2679737 | 2013-10-15 22:09:17 +0900 | [diff] [blame] | 247 | * Properly handle double-click on external group in GroupTable. |
| 248 | + |
| 249 | Double-clicking on an external group opens the group's URL (if it |
| 250 | is provided). |
| 251 | |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 252 | * link:https://code.google.com/p/gerrit/issues/detail?id=1848[Issue 1848]: |
| 253 | Don't discard inline comments when escape key is pressed. |
| 254 | |
| 255 | * link:https://code.google.com/p/gerrit/issues/detail?id=1863[Issue 1863]: |
| 256 | Drop Arial Unicode MS font and request only sans-serif. |
| 257 | + |
| 258 | Arial Unicode MS does not have a bold version. Selecting this font prevents |
| 259 | correct display of bold text on Mac OS X. Simplify the selector to sans-serif |
| 260 | and allow the browser to use the user's preferred font in this family. |
| 261 | |
David Pursehouse | 2679737 | 2013-10-15 22:09:17 +0900 | [diff] [blame] | 262 | * link:https://code.google.com/p/gerrit/issues/detail?id=1872[Issue 1872]: |
| 263 | Fix 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]: |
| 266 | Fix diff screens for files with CRLF line endings. |
| 267 | |
| 268 | * link:https://code.google.com/p/gerrit/issues/detail?id=2056[Issue 2056]: |
| 269 | Display custom NoOp label score for open changes. |
| 270 | |
| 271 | * link:https://code.google.com/p/gerrit/issues/detail?id=2093[Issue 2093]: |
| 272 | Fix incorrect title of "repo download" link on change screen. |
| 273 | |
| 274 | * link:https://code.google.com/p/gerrit/issues/detail?id=2127[Issue 2127]: |
| 275 | Remove hard-coded documentation links from the admin page. |
| 276 | |
| 277 | * link:https://code.google.com/p/gerrit/issues/detail?id=2010[Issue 2010]: |
| 278 | Fix 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]: |
| 282 | Fix browser null-pointer exception when ChangeCache is incomplete. |
| 283 | |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 284 | |
| 285 | REST API |
| 286 | ~~~~~~~~ |
| 287 | |
| 288 | |
| 289 | * link:https://code.google.com/p/gerrit/issues/detail?id=1819[Issue 1819]: |
| 290 | Include change-level messages to the payload returned from |
| 291 | the link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/rest-api-changes#get-change-detail[ |
| 292 | Get Change Detail REST API endpoint]. |
| 293 | |
David Pursehouse | 46ee670 | 2013-07-09 13:39:52 +0900 | [diff] [blame] | 294 | * Correct URL encoding in 'GroupInfo'. |
| 295 | |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 296 | |
| 297 | Email |
| 298 | ~~~~~ |
| 299 | |
David Pursehouse | 46ee670 | 2013-07-09 13:39:52 +0900 | [diff] [blame] | 300 | * Log failure to access reviewer list for notification emails. |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 301 | |
| 302 | * Log when appropriate if email delivery is skipped. |
| 303 | |
| 304 | |
David Pursehouse | 070b8ac | 2013-07-19 12:55:07 +0900 | [diff] [blame] | 305 | ssh |
| 306 | ~~~ |
| 307 | |
| 308 | |
| 309 | * link:https://code.google.com/p/gerrit/issues/detail?id=2016[Issue 2016]: |
| 310 | Flush caches after adding or deleting ssh keys via the `set-account` ssh command. |
| 311 | |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 312 | Tools |
| 313 | ~~~~~ |
| 314 | |
| 315 | |
| 316 | * The release build now builds for all browser configurations. |
| 317 | |
| 318 | |
| 319 | Upgrades |
| 320 | -------- |
| 321 | |
| 322 | * `gwtexpui` is now built in the gerrit tree rather than linking a separate module. |
| 323 | |
| 324 | |
| 325 | |
| 326 | Documentation |
| 327 | ------------- |
| 328 | |
| 329 | |
| 330 | * Update the access control documentation to clarify how to set |
| 331 | link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/access-control.html#global_capabilities[ |
| 332 | global capabilities]. |
| 333 | |
| 334 | * Clarify the |
| 335 | link:http://gerrit-documentation.googlecode.com/svn/Documentation/2.7/config-gerrit.html#cache_names[ |
David Pursehouse | 46ee670 | 2013-07-09 13:39:52 +0900 | [diff] [blame] | 336 | change cache configuration]. |
David Pursehouse | cbea27a | 2013-06-04 13:29:02 +0900 | [diff] [blame] | 337 | |