| David Pursehouse | ed5a899 | 2014-01-30 11:44:40 +0900 | [diff] [blame] | 1 | Release notes for Gerrit 2.8.2 |
| 2 | ============================== |
| 3 | |
| 4 | There are no schema changes from link:ReleaseNotes-2.8.1.html[2.8.1]. |
| 5 | |
| 6 | Download: |
| Shawn Pearce | 6d7ebc6 | 2015-06-12 16:34:42 -0700 | [diff] [blame] | 7 | link:https://www.gerritcodereview.com/download/gerrit-2.8.2.war[ |
| 8 | https://www.gerritcodereview.com/download/gerrit-2.8.2.war] |
| David Pursehouse | ed5a899 | 2014-01-30 11:44:40 +0900 | [diff] [blame] | 9 | |
| 10 | |
| David Pursehouse | fe2882a | 2014-02-18 19:14:19 +0900 | [diff] [blame] | 11 | Lucene Index |
| 12 | ------------ |
| 13 | |
| 14 | * Support committing Lucene writes within a fixed interval. |
| 15 | + |
| 16 | The `ramBufferSize` and `maxBufferedDocs` options control how often the |
| 17 | writer is flushed, but this does not fsync files on disk and thus |
| 18 | might not be permanent, particularly in a machine under heavy load. |
| 19 | + |
| 20 | As a result, commits to the index may not be completed, and updates may |
| 21 | be lost if the server goes down. |
| 22 | + |
| 23 | A new option `commitWithin` is added, to control how frequently the |
| 24 | indexes are committed. |
| 25 | |
| 26 | |
| David Pursehouse | ed5a899 | 2014-01-30 11:44:40 +0900 | [diff] [blame] | 27 | General |
| 28 | ------- |
| 29 | |
| 30 | * Only add "cherry picked from" when cherry picking a merged change. |
| 31 | + |
| 32 | The "(cherry picked from commit ...)" line was being added in the commit |
| David Pursehouse | f67d09d | 2014-03-07 19:30:21 +0900 | [diff] [blame] | 33 | message when cherry picking from closed changes, which included those that were |
| 34 | abandoned. |
| 35 | |
| 36 | * link:https://code.google.com/p/gerrit/issues/detail?id=2513[Issue 2513]: |
| 37 | Improve the "This patchset was cherry picked" message. |
| 38 | + |
| 39 | When cherry-picking a change, the message "This patchset was cherry picked to |
| 40 | change: <Change-Id>" was added as a message on the change. This was not very |
| 41 | useful as the Change-Id is the same on the newly created change. |
| 42 | + |
| 43 | The message is changed to "This patchset was cherry picked to branch <branch |
| 44 | name> as commit <SHA1>". |
| David Pursehouse | ed5a899 | 2014-01-30 11:44:40 +0900 | [diff] [blame] | 45 | |
| 46 | * Fix PUSH permission check for draft changes. |
| 47 | + |
| 48 | It was not possible to block pushes to the `refs/drafts` namespace. |
| 49 | |
| 50 | * Don't allow project owners to create branches if create is blocked. |
| 51 | + |
| 52 | Project owners were able to create branches through the WebUI, REST and SSH |
| 53 | even when the 'create reference' permission was actually blocked for them. |
| 54 | |
| 55 | * link:https://code.google.com/p/gerrit/issues/detail?id=2397[Issue 2397]: |
| 56 | Remove quotes and trailing period from "topic edited" messages. |
| 57 | + |
| 58 | The quotes and trailing period were causing linkification to fail for topics |
| 59 | that were set to a URL. |
| 60 | |
| 61 | * Check if user can read HEAD commit when resolving detached HEAD. |
| 62 | + |
| 63 | If HEAD was detached the `GetHead` REST endpoint refused to resolve HEAD |
| 64 | when the user was not a project owner. |
| 65 | |
| David Pursehouse | df5f239 | 2014-03-12 19:21:09 +0900 | [diff] [blame] | 66 | * link:https://code.google.com/p/gerrit/issues/detail?id=2392[Issue 2392]: |
| David Pursehouse | 4ff2f2c | 2014-02-12 23:08:26 +0900 | [diff] [blame] | 67 | Keep `status:closed` limit below MySQL Connector/J's hard limit. |
| 68 | + |
| 69 | Since MySQL Connector/J 5.1.21 does not allow limits above 50M rows |
| 70 | and aborts them with 'setMaxRows() out of range', we cannot use `MAX_VALUE` |
| 71 | as limit for plain `status:closed` queries. |
| 72 | |
| 73 | * Fix IllegalArgumentException when running query with `limit:0` on secondary |
| 74 | index. |
| 75 | + |
| 76 | Running a query with `limit:0` when the secondary index is enabled was causing |
| 77 | an internal server error. |
| 78 | |
| David Pursehouse | fe2882a | 2014-02-18 19:14:19 +0900 | [diff] [blame] | 79 | * link:https://code.google.com/p/gerrit/issues/detail?id=2331[Issue 2331]: |
| David Pursehouse | 4ff1805 | 2014-02-25 11:38:06 +0900 | [diff] [blame] | 80 | Make sure `change-merged` event contains correct patch set number. |
| David Pursehouse | fe2882a | 2014-02-18 19:14:19 +0900 | [diff] [blame] | 81 | + |
| 82 | When a change is submitted with the cherry-pick strategy, or when the |
| 83 | change is rebased with the "rebase if necessary" strategy, a new patch |
| 84 | set is created. The newly created patch set was not being set in the |
| David Pursehouse | 4ff1805 | 2014-02-25 11:38:06 +0900 | [diff] [blame] | 85 | `change-merged` event. |
| 86 | |
| 87 | * Guard against `diff.mnemonicprefix` in `commit-msg` hook. |
| 88 | + |
| 89 | When `diff.mnemonicprefix` was enabled in the git config, committing |
| 90 | changes with `git commit -v` caused the diff to be included in the |
| 91 | generated commit message. |
| 92 | |
| 93 | * link:https://code.google.com/p/gerrit/issues/detail?id=2453[Issue 2453]: |
| 94 | Fix submit rule evaluation for non blocking labels. |
| 95 | + |
| 96 | Putting a negative score on a label configured as `NoBlock` was causing |
| 97 | the submit button to be disabled. |
| 98 | |
| David Pursehouse | df5f239 | 2014-03-12 19:21:09 +0900 | [diff] [blame] | 99 | * link:https://code.google.com/p/gerrit/issues/detail?id=2441[Issue 2441]: |
| David Pursehouse | 4ff1805 | 2014-02-25 11:38:06 +0900 | [diff] [blame] | 100 | Allow to create branch with new commits. |
| 101 | + |
| 102 | Branches could not be created with a new commit which is not on other branches |
| 103 | already. |
| 104 | |
| 105 | * Fix incompatibility between "Rebase if Necessary" and "copy scores". |
| 106 | + |
| 107 | When a project was set up with "Rebase if Necessary", one of its labels had |
| 108 | `copyAllScoresOnTrivialRebase` or `copyMaxScore`, and a change that actually |
| 109 | needed a trivial rebase was submitted, Gerrit first rebased the change, and in |
| 110 | the process copied the approval for the label. It then copied all the |
| 111 | approvals, including the one already copied, which resulted in a constraint |
| 112 | violation on the database. |
| 113 | |
| 114 | * Add `Implementation-Vendor` default manifest entry for plugins. |
| 115 | + |
| 116 | In buck, the `java_binary` rule merges manifest entries from dependent JARs |
| 117 | unless the input JAR possesses these entries itself. This was causing some |
| 118 | plugins to display the wrong vendor information if they had dependency on |
| 119 | another JAR file that provided a `Implementation-Vendor` value. |
| David Pursehouse | fe2882a | 2014-02-18 19:14:19 +0900 | [diff] [blame] | 120 | |
| David Pursehouse | f67d09d | 2014-03-07 19:30:21 +0900 | [diff] [blame] | 121 | * link:https://code.google.com/p/gerrit/issues/detail?id=2498[Issue 2498]: |
| 122 | Handle null commits when updating submodules. |
| 123 | + |
| 124 | In some edge cases it was possible that a null commit would exist, and this |
| 125 | caused a crash when updating submodules. |
| 126 | |
| David Pursehouse | fed4927 | 2014-03-11 10:42:58 +0900 | [diff] [blame] | 127 | * Update and insert comments/approvals in a single step. |
| 128 | + |
| 129 | When a review includes both new label scores and updates to existing label |
| 130 | scores, use `upsert` to record them all at the same time, rather than in |
| 131 | separate `update` and `insert` operations. |
| 132 | |
| David Pursehouse | 2115a69 | 2014-03-11 17:57:49 +0900 | [diff] [blame] | 133 | * link:https://code.google.com/p/gerrit/issues/detail?id=2374[Issue 2374]: |
| 134 | Prevent duplicate commits in same project when uploading to `refs/changes/n`. |
| 135 | + |
| 136 | Under certain circumstances, when pushing to `refs/changes/n`, the same |
| 137 | commit could be pushed onto multiple changes even if the changes were on the |
| 138 | same branch. |
| 139 | |
| David Pursehouse | 4ff2f2c | 2014-02-12 23:08:26 +0900 | [diff] [blame] | 140 | * Remove dependency on joda time library in gerrit launcher. |
| 141 | + |
| 142 | The joda time library was being unnecessarily packaged in the root of |
| 143 | the gerrit.war file. |
| David Pursehouse | ed5a899 | 2014-01-30 11:44:40 +0900 | [diff] [blame] | 144 | |
| 145 | Change Screen / Diff Screen |
| 146 | --------------------------- |
| 147 | |
| 148 | |
| 149 | * link:https://code.google.com/p/gerrit/issues/detail?id=2398[Issue 2398]: |
| 150 | Enable syntax highlighting for Groovy, Clojure, Lisp, Ruby and Perl. |
| 151 | |
| 152 | * link:https://code.google.com/p/gerrit/issues/detail?id=2416[Issue 2416]: |
| 153 | Fix copy functionality in Firefox and Safari. |
| 154 | + |
| 155 | Ctrl-C/Cmd-C was activating the 'insert comment' feature, and preventing the |
| 156 | browser from copying the selected text to the clipboard. |
| 157 | |
| 158 | * link:https://code.google.com/p/gerrit/issues/detail?id=2428[Issue 2428]: |
| 159 | Fix truncation of long lines in side-by-side diff. |
| 160 | + |
| 161 | Lines whose length exceeded the width of the window were being truncated |
| 162 | and only shown fully after zooming out/in on the browser. |
| 163 | |
| 164 | * Fix handling of the enter key when editing the topic. |
| 165 | + |
| 166 | The enter key was causing the file diff view to open, instead of confirming |
| 167 | the topic edit. |
| 168 | |
| 169 | * Fix wrong button being passed to the 'revert' action. |
| 170 | + |
| 171 | The action was using the cherry-pick button instead of the revert button. |
| 172 | |
| David Pursehouse | 4ff2f2c | 2014-02-12 23:08:26 +0900 | [diff] [blame] | 173 | * Improve the error message shown when cherry picking a change fails. |
| 174 | + |
| 175 | The error message "Could not create merge commit during cherry pick" was |
| 176 | confusing for users, and is replaced with simply "Cherry pick failed". |
| 177 | |
| 178 | * Add newline on commit messages created by cherry picking a change in the UI |
| 179 | or via the REST API. |
| 180 | + |
| 181 | If a commit was cherry-picked from the UI or via the REST API, the |
| 182 | trailing newline on the end of the commit message was lost. |
| 183 | |
| 184 | * link:https://code.google.com/p/gerrit/issues/detail?id=2405[Issue 2405]: |
| 185 | Update change to invalidate cache after deletion of draft revision. |
| 186 | + |
| 187 | When a non-current draft patch set was deleted no update of the change |
| 188 | was made, causing the change screen to not work properly because it |
| 189 | relied on cached data. |
| 190 | |
| 191 | * Extend change screen's horizontal bars to full width. |
| 192 | + |
| 193 | This allows the title of the change message to have some padding within |
| 194 | the bar. |
| 195 | |
| 196 | * Fix tab alignment to be correct width in side-by-side diff. |
| 197 | + |
| 198 | This fixes the tab width to be the user's preference, rather than |
| 199 | 1 + user's preference when show tabs is enabled. |
| 200 | |
| 201 | * Fill the browser width in side-by-side diff. |
| 202 | + |
| 203 | Filling the browser available space with each side of the diff at |
| 204 | 50% size allows the user to more easily view long lines if they |
| 205 | have a wide display, and better fit on more narrow displays by |
| 206 | splitting the available width at 50%. |
| David Pursehouse | ed5a899 | 2014-01-30 11:44:40 +0900 | [diff] [blame] | 207 | |
| David Pursehouse | 4ff1805 | 2014-02-25 11:38:06 +0900 | [diff] [blame] | 208 | * Fire `comment-added` stream event even when mail notification is not sent. |
| 209 | + |
| 210 | Unchecking the "and send email" option on the change screen prevented the |
| 211 | `comment-added` event from being sent to the event stream. |
| 212 | |
| 213 | * link:https://code.google.com/p/gerrit/issues/detail?id=2493[Issue 2493]: |
| 214 | Set uploader to current user in `patchset-created` event upon rebasing |
| 215 | a change in the UI. |
| 216 | + |
| 217 | When a change was rebased from the change screen, the `uploader` field |
| 218 | of the `patchset-created` event was incorrectly set to the original |
| 219 | change uploader, rather than the user that performed the rebase. |
| 220 | |
| David Pursehouse | f67d09d | 2014-03-07 19:30:21 +0900 | [diff] [blame] | 221 | * Display a warning instead of an error when the intraline diff times out. |
| 222 | + |
| 223 | Displaying an error was confusing for users and administrators. |
| 224 | |
| 225 | * link:https://code.google.com/p/gerrit/issues/detail?id=2514[Issue 2514]: |
| 226 | Display an error message when commentlink regex is invalid. |
| 227 | + |
| 228 | If a commentlink was configured with an invalid regular expression, for example |
| 229 | an expression that is valid in Java but not in JavaScript, the change screen |
| 230 | failed to load. |
| 231 | + |
| 232 | Now, an error message will be displayed in the UI. |
| 233 | |
| David Pursehouse | ed5a899 | 2014-01-30 11:44:40 +0900 | [diff] [blame] | 234 | ssh |
| 235 | --- |
| 236 | |
| 237 | |
| 238 | * Support for nio2 backend is removed. |
| 239 | + |
| 240 | The nio2 backend is link:https://issues.apache.org/jira/browse/SSHD-252[ |
| 241 | broken in MINA SSHD]. Support is removed until the next release of MINA |
| 242 | SSHD in which it is fixed. |
| 243 | |
| 244 | * link:https://code.google.com/p/gerrit/issues/detail?id=2424[Issue 2424]: |
| 245 | Add descriptions on commands that are disabled in slave mode. |
| 246 | + |
| 247 | Commands that are disabled on a server running in slave mode were being listed |
| 248 | with an empty description. |
| 249 | |
| 250 | * Remove obsolete commands from slave mode commands list. |
| 251 | + |
| 252 | The `approve` and `replicate` commands, which no longer exist, were still being |
| 253 | listed in the available commands shown when running the ssh `gerrit` command |
| 254 | without any arguments on a server running in slave mode. |
| 255 | |
| 256 | * Remove 'including replication' from the `show-queue` command description. |
| 257 | + |
| 258 | The `replication` command is provided by the replication plugin, so it is no |
| 259 | longer relevant to mention this in the description of a core command. |
| 260 | |
| David Pursehouse | 4ff2f2c | 2014-02-12 23:08:26 +0900 | [diff] [blame] | 261 | * Fix aliasing of SSH commands. |
| 262 | |
| David Pursehouse | 4ff1805 | 2014-02-25 11:38:06 +0900 | [diff] [blame] | 263 | * link:https://code.google.com/p/gerrit/issues/detail?id=2515[Issue 2515]: |
| 264 | Fix internal server error when updating an existing label with `gerrit review`. |
| David Pursehouse | ed5a899 | 2014-01-30 11:44:40 +0900 | [diff] [blame] | 265 | |
| 266 | Replication Plugin |
| 267 | ------------------ |
| 268 | |
| 269 | |
| 270 | * Never replicate automerge-cache commits. |
| 271 | + |
| 272 | Commits in the `automerge-cache` namespace are used on the master to |
| 273 | improve performance of the diff UI. They are not needed on remote |
| 274 | mirrors and it is wasteful to replicate them. |
| 275 | |
| 276 | * link:https://code.google.com/p/gerrit/issues/detail?id=2420[Issue 2420]: |
| 277 | Fix failure to create missing remote repository via git:// protocol. |
| 278 | + |
| 279 | When replicating to a mirror over the anonymous git:// protocol and the |
| 280 | repository did not exist on the remote (i.e. if the remote was offline |
| 281 | when the repository was originally created), the replication failed with |
| 282 | a "remote repository error", rather than the expected "no repository". |
| 283 | |
| 284 | * Improve info logging related to repository creation and deletion, and |
| 285 | differentiate between local and remote repository errors. |
| 286 | |
| 287 | * Update documentation to clarify replication of refs/meta/config when |
| 288 | refspec is 'all refs'. |
| 289 | |
| David Pursehouse | 4ff2f2c | 2014-02-12 23:08:26 +0900 | [diff] [blame] | 290 | Upgrades |
| 291 | -------- |
| 292 | |
| 293 | |
| 294 | * JGit is upgraded to 3.2.0.201312181205-r |
| David Pursehouse | ed5a899 | 2014-01-30 11:44:40 +0900 | [diff] [blame] | 295 | |
| 296 | Documentation |
| 297 | ------------- |
| 298 | |
| 299 | |
| 300 | * Add missing documentation of the secondary index configuration. |
| 301 | + |
| 302 | Document that open and closed changes are indexed in separate indexes, |
| 303 | and for Lucene indexes the RAM buffer size and maximum buffered documents |
| 304 | can be configured. |
| 305 | |
| 306 | * Correct the Gerrit download link. |
| 307 | + |
| 308 | The link on the documentation index was pointing to the Google Code page, |
| 309 | which has not been used for some time. |
| 310 | |
| 311 | * Correct the description of the `revisions` field in the REST API's |
| 312 | `ChangeInfo` entity. |
| 313 | |
| 314 | * Add a link from the plugin documentation to the validation listeners API |
| 315 | documentation. |
| David Pursehouse | 4ff1805 | 2014-02-25 11:38:06 +0900 | [diff] [blame] | 316 | |
| 317 | * Remove double border around code snippets. |
| 318 | |
| 319 | * Add border around tables. |