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