Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 1 | = Release notes for Gerrit 2.1.5 |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 2 | |
| 3 | Gerrit 2.1.5 is now available: |
| 4 | |
Shawn Pearce | 6d7ebc6 | 2015-06-12 16:34:42 -0700 | [diff] [blame] | 5 | link:https://www.gerritcodereview.com/download/gerrit-2.1.5.war[https://www.gerritcodereview.com/download/gerrit-2.1.5.war] |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 6 | |
David Pursehouse | 4d7ac77 | 2013-06-25 17:14:30 +0900 | [diff] [blame] | 7 | This is primarily a bug fix release to 2.1.4, but some additional |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 8 | new features were included so its named 2.1.5 rather than 2.1.4.1. |
| 9 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 10 | == Upgrade Instructions |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 11 | |
Shawn O. Pearce | 04bbac5 | 2010-08-23 09:31:29 -0700 | [diff] [blame] | 12 | If upgrading from version 2.1.4, simply replace the WAR file in |
| 13 | `'site_path'/bin/gerrit.war` and restart Gerrit. |
| 14 | |
| 15 | If upgrading from version 2.1.3 or earlier, stop Gerrit, use |
| 16 | `java -jar gerrit.war init -d 'site_path'` to upgrade the schema, |
| 17 | and restart Gerrit. |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 18 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 19 | == New Features |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 20 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 21 | === Web UI |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 22 | * issue 361 Enable commenting on commit messages |
| 23 | + |
| 24 | The commit message of a change can now be commented on inline, and |
| 25 | even compared between patch sets, just like any other file contents. |
| 26 | The message is presented as a magical file called 'Commit Message', |
| 27 | in the first row of every change. |
| 28 | |
| 29 | * issue 312 Implement 'Restore Change' to undo 'Abandon Change' |
| 30 | + |
| 31 | Any user who can abandon a change (the change owner, project owner, |
| 32 | or any site administrator) can now restore the change from Abandoned |
| 33 | status back to Review in Progress. |
| 34 | |
| 35 | * issue 583 Enable/disable download protocols |
| 36 | + |
| 37 | The new download section in `gerrit.config` controls how the patch |
| 38 | set download links are presented in the web UI. Administrators |
| 39 | can use this section to enable `repo download`, `git://`, or to |
| 40 | disable `http://` style URLs. This section replaces the older |
| 41 | repo.showDownloadCommand. |
| 42 | |
| 43 | * issue 499 Display the size of a patch (lines added/removed) |
| 44 | + |
| 45 | A 'diffstat' is shown for each file, summarizing the size of the |
| 46 | change on that file in terms of number of lines added or deleted. |
| 47 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 48 | === Email Notifications |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 49 | * issue 452 Include a quick summary of the size of a change in email |
| 50 | + |
| 51 | After the file listing, a summary totaling the number of files |
| 52 | changed, lines added, and lines removed is displayed. This may |
| 53 | help reviewers to get a quick estimation on the time required for |
| 54 | them to review the change. |
| 55 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 56 | == Bug Fixes |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 57 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 58 | === Web UI |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 59 | * issue 639 Fix keyboard shortcuts under Chrome/Safari |
| 60 | + |
| 61 | Keyboard shortcuts didn't work properly on modern WebKit browsers |
| 62 | like Chrome and Safari. We kept trying to blame this on the browser, |
| 63 | but it was Gerrit Code Review at fault. The UI was using the wrong |
| 64 | listener type to receive keyboard events in comment editors. Fixed. |
| 65 | |
| 66 | * Make 'u' go up to the last change listing |
| 67 | + |
| 68 | Previously the 'u' key on a change page was hardcoded to take |
| 69 | the user to their own dashboard. However, if they arrived at the |
| 70 | change through a query such as `is:starred status:open`, this was |
| 71 | quite annoying, as the query had to be started over again to move |
| 72 | to the next matching change. Now the 'u' key goes back to the |
| 73 | query results. |
| 74 | |
| 75 | * issue 671 Honor user's syntax coloring preference in unified view |
| 76 | + |
| 77 | The user's syntax coloring preference was always ignored in the |
| 78 | unified view, even though the side-by-side view honored it. Fixed. |
| 79 | |
| 80 | * issue 651 Display stars in dependency tables |
| 81 | + |
| 82 | The 'Depends On' and 'Needed By' tables on a change page did not |
| 83 | show the current user's star settings, even though the star icon |
| 84 | is present and will toggle the user's starred flag for that change. |
| 85 | Fixed. |
| 86 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 87 | === Access Control |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 88 | * issue 672 Fix branch owner adding exclusive ACL |
| 89 | + |
| 90 | Branch owners could not add exclusive ACLs within their branch |
| 91 | namespace. This was caused by the server trying to match the leading |
| 92 | `-` entered by the branch administrator against patterns that did |
| 93 | not contain `-`, and therefore always failed. Fixed by removing |
| 94 | the magical `-` from the proposed new specification before testing |
| 95 | the access rights. |
| 96 | |
| 97 | * '@' in ref specs shouldn't be magical. |
| 98 | + |
| 99 | The dk.brics.automaton package that is used to handle regular |
| 100 | expressions on branch access patterns supports '@' to mean |
| 101 | "any string". We don't want that behavior. Fixed by disabling |
| 102 | the optional features of dk.brics.automaton, thereby making '@' |
| 103 | mean a literal '@' sign as expected. |
| 104 | |
| 105 | * issue 668 Fix inherited Read Access +2 not inheriting |
| 106 | + |
| 107 | Upload access (aka Read +2) did not inherit properly from the parent |
| 108 | project (e.g. '\-- All Projects \--') if there was any branch level |
| 109 | Read access control within the local project. This was a coding |
| 110 | bug which failed to consider the project inheritance if any branch |
| 111 | (not just the one being uploaded to) denied upload access. |
| 112 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 113 | === Misc. |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 114 | * issue 641 Don't pass null arguments to hooks |
| 115 | + |
| 116 | Some hooks crashed inside of the server during invocation because the |
| 117 | `gerrit.canonicalWebUrl` variable wasn't configured, and the hook |
| 118 | was started out of an SSH or background thread context, so the URL |
| 119 | couldn't be assumed from the current request. The bug was worked |
| 120 | around by not passing the `\--change-url` flag in these cases. |
| 121 | Administrators whose hooks always need the flag should configure |
| 122 | `gerrit.canonicalWebUrl`. |
| 123 | |
| 124 | * issue 652 Fix NPE during merge failure on new branch |
| 125 | + |
| 126 | Submitting a change with a missing dependency to a new branch |
| 127 | resulted in a NullPointerException in the server, because the server |
| 128 | tried to create the branch anyway, even though there was no commit |
| 129 | ready because one or more dependencies were missing. Fixed. |
| 130 | |
| 131 | * Fix NPE while matching `file:^` pattern on deleted files |
| 132 | + |
| 133 | Sending email notifications crashed with NullPointerException if the |
| 134 | change contained a deleted file and one or more users had a project |
| 135 | watch on that project using a `file:^` pattern in their filter. |
| 136 | Fixed. |
| 137 | |
| 138 | * issue 658 Allow to use refspec shortcuts for push replication |
| 139 | + |
| 140 | A push refspec of `refs/heads/\*` in replication.config is now |
| 141 | supported as a shorthand notation for `refs/heads/\*:refs/heads/\*`. |
| 142 | |
| 143 | * issue 676 Fix clearing of topic during replace |
| 144 | + |
| 145 | The topic was cleared if a replacement patch set was uploaded without |
| 146 | the topic name. The topic is now left as-is during replacement |
| 147 | if no new topic was supplied. If a new topic is supplied, it is |
| 148 | changed to match the new topic given. |
| 149 | |
David Pursehouse | 4d7ac77 | 2013-06-25 17:14:30 +0900 | [diff] [blame] | 150 | * Allow ; and & to separate parameters in gitweb |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 151 | + |
| 152 | gitweb.cgi accepts either ';' or '&' between parameters, but |
| 153 | Gerrit Code Review was only accepting the ';' syntax. Fixed |
| 154 | to support both. |
| 155 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 156 | === Documentation |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 157 | * Fixed example for gerrit create-account. |
| 158 | * gerrit.sh: Correct /etc/default path in error message |
| 159 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 160 | == Version |
Shawn O. Pearce | baf6e3a | 2010-08-23 08:34:03 -0700 | [diff] [blame] | 161 | |
| 162 | 2765ff9e5f821100e9ca671f4d502b5c938457a5 |