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