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