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