blob: 2913336788e0500387e570395bf7ff98dae114cc [file] [log] [blame]
David Ostrovsky4b3c3782013-10-03 21:12:13 +02001Change Screen - Introduction
2============================
3
David Pursehouse305e5d72013-10-04 20:44:15 +09004As of Gerrit 2.8 the change screen was redesigned from the ground up. The old
David Pursehouse62d056c2013-10-08 18:42:59 +09005change screen is deprecated and will be discontinued in one of the next Gerrit
David Pursehouse305e5d72013-10-04 20:44:15 +09006releases.
David Ostrovsky4b3c3782013-10-03 21:12:13 +02007
David Pursehouse305e5d72013-10-04 20:44:15 +09008The design spirit of the new change screen is simplicity: only one patch set is
9presented on the screen. The list of related changes is always visible and
10optional elements are moved to pop down boxes.
11
12This is not only a facelift. The main highlights are under the hood:
13
14* Old style RPC calls are replaced by the REST API
15* The prettify syntax highlighting library was replaced by Codemirror
David Ostrovsky4b3c3782013-10-03 21:12:13 +020016* Automatic refresh of open changes
17* Support to download a patch direct in browser: no local repo is needed
David Pursehouse305e5d72013-10-04 20:44:15 +090018* JS API integration: it was never so easy to add change/revision actions to
David Ostrovsky4b3c3782013-10-03 21:12:13 +020019the UI from a plugin.
20
David Pursehouse305e5d72013-10-04 20:44:15 +090021This document is intended to help users to switch to the new change screen.
22
23Further information on the topic can be found in the:
24link:https://groups.google.com/forum/#!topic/repo-discuss/6Ryz9p6AzgE[
25CodeScreen2 thread on the repo-discuss mailing list].
David Ostrovsky4b3c3782013-10-03 21:12:13 +020026
27[[configuration]]
28Configuration
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -070029-------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +020030
David Pursehouse305e5d72013-10-04 20:44:15 +090031The new change screen is deactivated by default. It can be activated system-wide
32by changing the link:config-gerrit.html[gerrit.changeScreen] setting to
33`CHANGE_SCREEN2`. Users can deactivate it by setting `OLD_UI` on their user
34preferences page.
David Ostrovsky4b3c3782013-10-03 21:12:13 +020035
36[[switching-between-patch-sets]]
37Switching between patch sets
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -070038----------------------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +020039
David Pursehouse305e5d72013-10-04 20:44:15 +090040As already mentioned above, the main difference between the old and the new
41change screen is the fact that only one patch set is presented on the screen.
42
43To switch to other patch sets for the given change, the drop down 'Revisions'
44box is used on the right upper side of the change header.
45
46Patch sets are always sorted in descending order. The option to switch between
47ascending and reverse patch set sorting order is not supported on the new change
48screen.
David Ostrovsky4b3c3782013-10-03 21:12:13 +020049
50[[download-commands]]
51Download commands
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -070052-----------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +020053
David Pursehouse305e5d72013-10-04 20:44:15 +090054The download commands are moved to the 'Download' drop down box. Patch files
55can be downloaded as base64 encoded or zipped versions.
David Ostrovsky4b3c3782013-10-03 21:12:13 +020056
57[[quick-approve]]
58Quick approve
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -070059-------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +020060
David Pursehouse305e5d72013-10-04 20:44:15 +090061The so called 'Quick approve' button is some times confusing. Normal users (i.e.
62non-maintainers) see this as 'Verified+1' button to the right of the 'Reply'
63button.
David Ostrovsky4b3c3782013-10-03 21:12:13 +020064
David Pursehouse305e5d72013-10-04 20:44:15 +090065The button is not always "Verified+1". The button appears if a user has
66permission to vote the max score in exactly one label that the rules have marked
67as NEED.
68
69For a maintainer with both 'Verified+1' and 'Code-Review+2' powers the button
70does not appear, as both categories are still marked NEED and the maintainer has
71permission to use both. If another maintainer scores 'Code-Review+2', then the
72button displays as 'Verified+1'. If a verifier scores 'Verified+1' the button
73displays as 'Code-Review+2'.
74
75It is important to note that by design, the user cannot provide a comment when
76using this button, hence the name 'Quick approve'. To provide comments, the
77'Reply' button should be used.
78
79[[reply-button]]
David Ostrovsky4b3c3782013-10-03 21:12:13 +020080Reply button
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -070081------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +020082
David Pursehouse305e5d72013-10-04 20:44:15 +090083This button corresponds to the 'Review' button the on patch set panel on the old
84change screen. The only new feature: the user can optionaly send an email
85during the vote.
86
87Key bindings: "a" to open the drop down. "ESC" to close it.
David Ostrovsky4b3c3782013-10-03 21:12:13 +020088
89
90[[edit-commit-message]]
91Edit commit message
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -070092-------------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +020093
David Pursehouse305e5d72013-10-04 20:44:15 +090094To edit the commit message use the 'Edit Message' button on the change header,
95which will open a drop-down editor box.
96
97Key bindings: "e" to open the drop down. "ESC" to close it.
David Ostrovsky4b3c3782013-10-03 21:12:13 +020098
99[[edit-change-topic]]
100Edit change topic
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700101-----------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200102
David Pursehouse305e5d72013-10-04 20:44:15 +0900103To edit the topic use the edit icon to the right of the topic field.
104
105Key bindings: "t" to open the drop down. "ESC" to close it.
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200106
107[[abandon-restore]]
108Abandon or Restore changes
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700109--------------------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200110
David Pursehouse305e5d72013-10-04 20:44:15 +0900111When a change is abandoned or restored, a panel appears and a comment message
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200112can be provided.
113
114[[working-with-drafts]]
115Working with draft changes and patch sets
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700116-----------------------------------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200117
David Pursehouse305e5d72013-10-04 20:44:15 +0900118When a change or a patch set is a draft, then three additional buttons appear on
119the action panel: 'Publish', 'Delete Revision', and 'Delete Change'. In the
120'Revisions' drop down a "(DRAFT)" suffix is added to the patch set number to
121indicate that the patch set is a draft.
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200122
123[[draft-comments]]
124Highlight draft comments
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700125------------------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200126
David Pursehouse305e5d72013-10-04 20:44:15 +0900127If a patch set has draft comments that weren't published yet, then that patch
128set is marked on the list in the 'Revisions' drop down list. In addition a red
129"draft" prefix appears on the filenames in the file table.
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200130
131[[codemirror]]
132Codemirror
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700133----------
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200134
David Pursehouse305e5d72013-10-04 20:44:15 +0900135On the user preferences page, 'Side By Side' or 'Unified Diff' view can be
136configured. Use the "/" key to start the CodeMirror search, like in vim.
137
138Key bindings are not customizable at the moment. They may be added in the future.
139
140Range comments are supported on Codemirror's 'Side By Side' screen. Highlight
141lines with the mouse and then click the bottom-most line number to create a
142range comment for the highlighted lines.
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200143
144[[reviewers]]
145Reviewers
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700146---------
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200147
David Pursehouse305e5d72013-10-04 20:44:15 +0900148Reviewer are split into two groups: Reviewers who actually voted on the change
149in the 'Reviewers' field, and reviewers, who were added to the change but didn't
150vote yet in the 'CC' field.
151
152The votes per category are listed above the File list.
153
154To add a reviewer, use the '[+]' button to the right of the 'CC' field. Typing
155into the pop-up text field activates auto completion of user or group names.
156
157To remove reviewers click on the 'x' icon in the reviewer's "chip".
158
159Key bindings: "c" to add a reviewer. "ESC" to close the drop down.
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200160
161[[auto-refresh]]
162Auto refresh of change data
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700163---------------------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200164
David Pursehouse305e5d72013-10-04 20:44:15 +0900165On the new change screen polling for updates to the currently open change is
166activated per default. For example, if another user votes or comments on the
167same change, then a popup window appears on the bottom right corner of the
168screen to notify the user that the change was updated.
169
170The default delay is 30 seconds. It can be configured with the
171link:config-gerrit.html[change.updateDelay] setting.
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200172
173[[depends-on-needed-by]]
174"Depends on" and "Needed by"
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700175----------------------------
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200176
David Pursehouse305e5d72013-10-04 20:44:15 +0900177Dependencies and dependent changes are listed in the 'Related Changes' drop
178down.
179
180Key bindings: "J" & "K" to navigate between the related changes. "O" to
181open the currently selected related change.
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200182
183[[file-table]]
184File table
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700185----------
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200186
David Pursehouse305e5d72013-10-04 20:44:15 +0900187The user can now manually toggle the 'reviewed' flag per file using the check
188box to the left of the filename.
189
190Key bindings: "j" & "k" to navigate in the file table, and "r" to toggle the
191'reviewed' flag.
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200192
193[[included-in]]
194Included in
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700195-----------
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200196
197To see the branches a specific change was merged into and the list of the tags
David Pursehouse305e5d72013-10-04 20:44:15 +0900198a change was tagged with, use the 'Included In' drop down on the change header,
199to the left of the 'Revisions' drop down.
200
201Note that this list is only visible on merged changes.
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200202
203[[missing-features]]
David Pursehouse305e5d72013-10-04 20:44:15 +0900204Missing features
Yuxuan 'fishy' Wangec3a9542013-10-07 20:37:14 -0700205----------------
David Pursehouse305e5d72013-10-04 20:44:15 +0900206
207Several features have not been implemented yet:
David Ostrovsky4b3c3782013-10-03 21:12:13 +0200208
209* Permalink a change
210* Allow to see if a reviewer can't vote on a label
211* Allow to select a reference version as base for the comparison
David Pursehouse305e5d72013-10-04 20:44:15 +0900212* Change diff view preferences
David Pursehouse62d056c2013-10-08 18:42:59 +0900213
214GERRIT
215------
216Part of link:index.html[Gerrit Code Review]