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