Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 1 | = Release notes for Gerrit 2.2.0 |
Shawn O. Pearce | 55e9025 | 2011-05-31 10:30:18 -0700 | [diff] [blame] | 2 | |
| 3 | Gerrit 2.2.0 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.2.0.war[https://www.gerritcodereview.com/download/gerrit-2.2.0.war] |
Shawn O. Pearce | 55e9025 | 2011-05-31 10:30:18 -0700 | [diff] [blame] | 6 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 7 | == Schema Change |
Shawn O. Pearce | 55e9025 | 2011-05-31 10:30:18 -0700 | [diff] [blame] | 8 | *WARNING:* Upgrading to 2.2.0 requires the server be first upgraded |
| 9 | to 2.1.7, and then to 2.2.0. |
| 10 | |
| 11 | *WARNING:* This release contains schema changes. To upgrade: |
| 12 | ---- |
| 13 | java -jar gerrit.war init -d site_path |
| 14 | ---- |
| 15 | |
| 16 | *WARNING:* The "projects" and "ref_rights" tables are no longer |
| 17 | stored in the SQL database. The tables have been moved to Git |
| 18 | storage, inside of the `refs/meta/config` branch of each managed |
| 19 | Git repository. The init based upgrade tool will automatically |
| 20 | export the current table contents and create the Git data. |
| 21 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 22 | == New Features |
Shawn O. Pearce | 55e9025 | 2011-05-31 10:30:18 -0700 | [diff] [blame] | 23 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 24 | === Project Administration |
Shawn O. Pearce | 55e9025 | 2011-05-31 10:30:18 -0700 | [diff] [blame] | 25 | * issue 436 List projects by scanning the managed Git directory |
| 26 | + |
| 27 | Instead of generating the list of projects from SQL database, the |
| 28 | project list is obtained by recursively scanning the Git directory. |
| 29 | Adding new projects is now simply a matter of creating the Git |
| 30 | repository under the directory and flushing the "projects" cache |
| 31 | to force the server to rescan the directory. Administrators may |
| 32 | also continue to use `gerrit create-project`. |
| 33 | |
| 34 | * Move "projects" table into Git |
| 35 | + |
| 36 | The projects table columns are now stored in the `project.config` |
| 37 | file of the `refs/meta/config` branch of each managed Git repository. |
| 38 | |
| 39 | * Move "ref_rights" table into Git |
| 40 | + |
| 41 | The "ref_rights" table is now stored in the "access" sections of |
| 42 | the `project.config` file on the `refs/meta/config` branch of each |
| 43 | managed Git repository. This brings version control auditing to the |
| 44 | access data of each project. |
| 45 | |
| 46 | * New project Access screen to edit access controls |
| 47 | + |
| 48 | The Access panel of the project administration has been rewritten |
| 49 | with a new UI that reflects the new Git based storage format. |
| 50 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 51 | == Bug Fixes |
Shawn O. Pearce | 55e9025 | 2011-05-31 10:30:18 -0700 | [diff] [blame] | 52 | |
Yuxuan 'fishy' Wang | 4f5ad9d | 2016-05-03 16:18:58 -0700 | [diff] [blame] | 53 | === Project Administration |
Shawn O. Pearce | 55e9025 | 2011-05-31 10:30:18 -0700 | [diff] [blame] | 54 | * Avoid unnecessary updates to $GIT_DIR/description |
| 55 | + |
| 56 | Gerrit always tried to rewrite the gitweb "description" file when the |
| 57 | project was modified. This lead to unnecessary changes in the local |
| 58 | filesystem, leading to more data to rsync to backups than necessary. |
| 59 | Fixed to only update the file if the content changes. |