Edwin Kempin | 4fd84c9 | 2014-04-30 13:23:15 +0200 | [diff] [blame] | 1 | = Review UI |
| 2 | |
| 3 | Reviewing changes is an important task and the Gerrit Web UI provides |
| 4 | many functionalities to make the review process comfortable and |
| 5 | efficient. This is a guide through the review UI that explains the |
| 6 | different functions and UI elements. |
| 7 | |
| 8 | [[change-screen]] |
| 9 | == Change Screen |
| 10 | |
| 11 | The change screen shows the details of a single change and provides |
| 12 | various actions on it. |
| 13 | |
| 14 | image::images/user-review-ui-change-screen.png[width=800, link="images/user-review-ui-change-screen.png"] |
| 15 | |
| 16 | [[commit-message]] |
| 17 | === Commit Message Block |
| 18 | |
| 19 | The focus of the change screen is on the commit message since this is |
| 20 | the most important information about a change. The numeric change ID |
| 21 | and the change status are displayed right above the commit message. |
| 22 | |
| 23 | image::images/user-review-ui-change-screen-commit-message.png[width=800, link="images/user-review-ui-change-screen-commit-message.png"] |
| 24 | |
| 25 | The commit message can be edited directly in the Web UI by clicking on |
| 26 | the `Edit Message` button in the change header. This opens a drop-down |
| 27 | editor box in which the commit message can be edited. Saving |
| 28 | modifications of the commit message automatically creates a new patch |
| 29 | set for the change. The commit message may only be edited on the |
| 30 | current patch set. |
| 31 | |
| 32 | image::images/user-review-ui-change-screen-edit-commit-message.png[width=800, link="images/user-review-ui-change-screen-edit-commit-message.png"] |
| 33 | |
| 34 | The numeric change ID is a link to the change and clicking on it |
| 35 | refreshes the change screen. By copying the link location you can get |
| 36 | the permalink of the change. |
| 37 | |
| 38 | image::images/user-review-ui-change-screen-permalink.png[width=800, link="images/user-review-ui-change-screen-permalink.png"] |
| 39 | |
| 40 | The change status shows the state of the change: |
| 41 | |
| 42 | - `Needs <label>`: |
| 43 | + |
| 44 | The change is in review and an approval on the shown label is still |
| 45 | required to make the change submittable. |
| 46 | |
| 47 | - `Not <label>`: |
| 48 | + |
| 49 | The change is in review and a veto vote on the shown label is |
| 50 | preventing the submit. |
| 51 | |
Edwin Kempin | b2a8ae3 | 2014-05-02 15:03:22 +0200 | [diff] [blame] | 52 | [[not-current]] |
Edwin Kempin | 4fd84c9 | 2014-04-30 13:23:15 +0200 | [diff] [blame] | 53 | - `Not Current`: |
| 54 | + |
| 55 | The currently viewed patch set is outdated. |
| 56 | + |
| 57 | Please note that some operations, like voting, are not available on |
| 58 | outdated patch sets, but only on the current patch set. |
| 59 | |
| 60 | - `Ready to Submit`: |
| 61 | + |
| 62 | The change has all necessary approvals and may be submitted. |
| 63 | |
| 64 | - `Submitted, Merge Pending`: |
| 65 | + |
| 66 | The change was submitted and was added to the merge queue. |
| 67 | + |
| 68 | The change stays in the merge queue if it depends on a change that is |
| 69 | still in review. In this case it will get automatically merged when all |
| 70 | predecessor changes have been merged. |
| 71 | + |
| 72 | This status can also mean that the change depends on an abandoned |
| 73 | change or on an outdated patch set of another change. In this case you |
| 74 | may want to rebase the change. |
| 75 | |
| 76 | - `Merged`: |
| 77 | + |
| 78 | The change was successfully merged into the destination branch. |
| 79 | |
| 80 | - `Abandoned`: |
| 81 | + |
| 82 | The change was abandoned. |
| 83 | |
| 84 | - `Draft`: |
| 85 | + |
| 86 | The change is a draft that is only visible to the change owner, the |
| 87 | reviewers that were explicitly added to the change, and users who have |
| 88 | the link:access-control.html#category_view_drafts[View Drafts] global |
| 89 | capability assigned. |
| 90 | |
| 91 | [[commit-info]] |
| 92 | === Commit Info Block |
| 93 | |
| 94 | The commit info block shows information about the commit of the |
| 95 | currently viewed patch set. |
| 96 | |
| 97 | It displays the author and the committer as links to a list of this |
| 98 | person's changes that have the same status as the currently viewed |
| 99 | change. |
| 100 | |
| 101 | The commit ID and the link:user-changeid.html[Change-Id] are both |
| 102 | displayed with a copy-to-clipboard icon that allows the ID to be copied |
| 103 | into the clipboard. |
| 104 | |
| 105 | If a Git web browser, such as GitWeb or Gitiles, is configured, there |
| 106 | is also a link to the commit in the Git web browser. |
| 107 | |
| 108 | image::images/user-review-ui-change-screen-commit-info.png[width=800, link="images/user-review-ui-change-screen-commit-info.png"] |
| 109 | |
Edwin Kempin | f1a84f9 | 2014-04-30 15:37:48 +0200 | [diff] [blame] | 110 | [[change-info]] |
| 111 | === Change Info Block |
| 112 | |
| 113 | The change info block contains detailed information about the change |
| 114 | and offers actions on the change. |
| 115 | |
| 116 | image::images/user-review-ui-change-screen-change-info.png[width=800, link="images/user-review-ui-change-screen-change-info.png"] |
| 117 | |
| 118 | - Change Owner: |
| 119 | + |
| 120 | The owner of the change is displayed as a link to a list of the owner's |
| 121 | changes that have the same status as the currently viewed change. |
| 122 | + |
| 123 | image::images/user-review-ui-change-screen-change-info-owner.png[width=800, link="images/user-review-ui-change-screen-change-info-owner.png"] |
| 124 | |
| 125 | - Reviewers: |
| 126 | + |
| 127 | The reviewers of the change are displayed as chip tokens. |
| 128 | + |
| 129 | For each reviewer there is a tooltip that shows on which labels the |
| 130 | reviewer is allowed to vote. |
| 131 | + |
| 132 | New reviewers can be added by clicking on the `Add...` button. Typing |
| 133 | into the pop-up text field activates auto completion of user and group |
| 134 | names. |
| 135 | + |
| 136 | Reviewers can be removed from the change by clicking on the `x` icon |
| 137 | in the reviewer's chip token. Removing a reviewer also removes the |
| 138 | current votes of the reviewer. The removal of votes is recorded as a |
| 139 | message on the change. |
| 140 | + |
| 141 | Removing reviewers is protected by permissions: |
| 142 | |
| 143 | ** Users can always remove themselves. |
| 144 | ** The change owner may remove any zero or positive score. |
| 145 | ** Users with the link:access-control.html#category_remove_reviewer[ |
| 146 | Remove Reviewer] access right, the branch owner, the project owner |
| 147 | and Gerrit administrators may remove anyone. |
| 148 | |
| 149 | + |
| 150 | image::images/user-review-ui-change-screen-change-info-reviewers.png[width=800, link="images/user-review-ui-change-screen-change-info-reviewers.png"] |
| 151 | |
| 152 | - Project / Branch / Topic: |
| 153 | + |
| 154 | The name of the project for which the change was done is displayed as a |
| 155 | link to the link:user-dashboards.html#project-default-dashboard[default |
| 156 | dashboard] of the project. If no default dashboard is defined, the link |
| 157 | opens a list of open changes on the project. |
| 158 | + |
| 159 | Clicking on the settings icon on the right side navigates to the |
| 160 | project administration screen. |
| 161 | + |
| 162 | The name of the destination branch is displayed as a link to a list |
| 163 | with all changes on this branch that have the same status as the |
| 164 | currently viewed change. |
| 165 | + |
| 166 | If a topic was assigned to the change it is displayed below the branch. |
| 167 | By clicking on the edit icon the topic can be set. This requires the |
| 168 | link:access-control.html#category_edit_topic_name[Edit Topic Name] |
| 169 | access right. To be able to set a topic on a closed change, the |
| 170 | `Edit Topic Name` must be assigned with the `force` flag. |
| 171 | + |
| 172 | image::images/user-review-ui-change-screen-change-info-project-branch-topic.png[width=800, link="images/user-review-ui-change-screen-change-info-project-branch-topic.png"] |
| 173 | |
| 174 | - Submit Strategy: |
| 175 | + |
| 176 | The link:project-setup.html#submit_type[submit strategy] that will be |
| 177 | used to submit the change. The submit strategy is only displayed for |
| 178 | open changes. |
| 179 | + |
| 180 | image::images/user-review-ui-change-screen-change-info-submit-strategy.png[width=800, link="images/user-review-ui-change-screen-change-info-submit-strategy.png"] |
| 181 | + |
| 182 | If a change cannot be merged due to path conflicts this is highlighted |
| 183 | by a bold red `Cannot Merge` label. |
| 184 | + |
| 185 | image::images/user-review-ui-change-screen-change-info-cannot-merge.png[width=800, link="images/user-review-ui-change-screen-change-info-cannot-merge.png"] |
| 186 | |
| 187 | - Time of Last Update: |
| 188 | + |
| 189 | image::images/user-review-ui-change-screen-change-info-last-update.png[width=800, link="images/user-review-ui-change-screen-change-info-last-update.png"] |
| 190 | |
| 191 | - Actions: |
| 192 | + |
| 193 | Depending on the change state and the permissions of the user, different |
| 194 | actions are available on the change: |
| 195 | |
| 196 | ** `Merge Change`: |
| 197 | + |
| 198 | Submits the change and adds it to the merge queue. If possible the |
| 199 | change is merged into the destination branch. |
| 200 | + |
| 201 | The `Merge Change` button is available if the change is submittable and |
| 202 | the link:access-control.html#category_submit[Submit] access right is |
| 203 | assigned. |
| 204 | + |
| 205 | It is also possible to submit changes that have merge conflicts. This |
| 206 | allows to do the conflict resolution for a change series in a single |
| 207 | merge commit and submit the changes in reverse order. |
| 208 | |
| 209 | ** `Abandon`: |
| 210 | + |
| 211 | Abandons the change. |
| 212 | + |
| 213 | The `Abandon` button is only available if the change is open and the |
| 214 | link:access-control.html#category_abandon[Abandon] access right is |
| 215 | assigned. |
| 216 | + |
| 217 | When a change is abandoned, a panel appears that allows one to type a |
| 218 | comment message to explain why the change is being abandoned. |
| 219 | |
| 220 | ** `Restore`: |
| 221 | + |
| 222 | Restores the change. |
| 223 | + |
| 224 | The `Restore` button is only available if the change is abandoned and |
| 225 | the link:access-control.html#category_abandon[Abandon] and the |
| 226 | link:access-control.html#category_push[Push] access right is |
| 227 | assigned. |
| 228 | + |
| 229 | When a change is restored, a panel appears that allows one to type a |
| 230 | comment message to explain why the change is being restored. |
| 231 | |
| 232 | ** `Rebase`: |
| 233 | + |
| 234 | Rebases the change. The rebase is always done with content merge |
| 235 | enabled. If the rebase is successful a new patch set with the rebased |
| 236 | commit is created. If the rebase fails, there are conflicts that have |
| 237 | to be resolved manually. |
| 238 | + |
| 239 | If the change does not depend on another open change, it is rebased |
| 240 | onto the tip of the destination branch. |
| 241 | + |
| 242 | If the change depends on another open change, it is rebased onto the |
| 243 | current patch set of that other change. |
| 244 | + |
| 245 | The `Rebase` button is only available if the change can be rebased and |
| 246 | the link:access-control.html#category_rebase[Rebase] access right is |
| 247 | assigned. Rebasing merge commits is not supported. |
| 248 | |
| 249 | ** `Cherry-Pick`: |
| 250 | + |
| 251 | Allows to cherry-pick the change to another branch. The destination |
| 252 | branch can be selected from a dialog. Cherry-picking a change creates a |
| 253 | new open change on the selected destination branch. |
| 254 | + |
| 255 | It is also possible to cherry-pick a change to the same branch. This is |
| 256 | effectively the same as rebasing it to the current tip of the |
| 257 | destination branch. This can be used to remove dependencies on other |
| 258 | open changes. |
| 259 | + |
| 260 | Users can only cherry-pick changes to branches for which they are |
| 261 | allowed to upload changes for review. |
| 262 | |
| 263 | ** `Publish`: |
| 264 | + |
| 265 | Publishes the currently viewed draft patch set. If this is the first |
| 266 | patch set of a change that is published, the change will be published |
| 267 | as well. |
| 268 | + |
| 269 | The `Publish` button is only available if a draft patch set is viewed |
| 270 | and the user is the change owner or has the |
| 271 | link:access-control.html#category_publish_drafts[Publish Drafts] access |
| 272 | right assigned. |
| 273 | |
| 274 | ** `Delete Change` / `Delete Revision`: |
| 275 | + |
| 276 | Deletes the draft change / the currently viewed draft patch set. |
| 277 | + |
| 278 | The `Delete Change` / `Delete Revision` buttons are only available if a |
| 279 | draft patch set is viewed and the user is the change owner or has the |
| 280 | link:access-control.html#category_delete_drafts[Delete Drafts] access |
| 281 | right assigned. |
| 282 | |
| 283 | ** Further actions may be available if plugins are installed. |
| 284 | |
| 285 | + |
| 286 | image::images/user-review-ui-change-screen-change-info-actions.png[width=800, link="images/user-review-ui-change-screen-change-info-actions.png"] |
| 287 | |
| 288 | - Labels & Votes: |
| 289 | + |
| 290 | Approving votes are colored green; veto votes are colored red. |
| 291 | + |
| 292 | image::images/user-review-ui-change-screen-change-info-labels.png[width=800, link="images/user-review-ui-change-screen-change-info-labels.png"] |
| 293 | |
Edwin Kempin | ab777f1 | 2014-05-02 11:47:57 +0200 | [diff] [blame] | 294 | [[files]] |
| 295 | === File List |
| 296 | |
| 297 | The file list shows the files that are modified in the currently viewed |
| 298 | patch set. |
| 299 | |
| 300 | image::images/user-review-ui-change-screen-file-list.png[width=800, link="images/user-review-ui-change-screen-file-list.png"] |
| 301 | |
| 302 | The checkboxes in front of the file names allow files to be marked as reviewed. |
| 303 | |
| 304 | image::images/user-review-ui-change-screen-file-list-mark-as-reviewed.png[width=800, link="images/user-review-ui-change-screen-file-list-mark-as-reviewed.png"] |
| 305 | |
| 306 | The type of a file modification is indicated by the character in front |
| 307 | of the file name: |
| 308 | |
| 309 | - 'no character' (Modified): |
| 310 | + |
| 311 | The file existed before this change and is modified. |
| 312 | |
| 313 | - `A` (Added): |
| 314 | + |
| 315 | The file is newly added. |
| 316 | |
| 317 | - `D` (Deleted): |
| 318 | + |
| 319 | The file is deleted. |
| 320 | |
| 321 | - `R` (Renamed): |
| 322 | + |
| 323 | The file is renamed. |
| 324 | |
| 325 | - `C` (Copied): |
| 326 | + |
| 327 | The file is new and is copied from an existing file. |
| 328 | |
| 329 | image::images/user-review-ui-change-screen-file-list-modification-type.png[width=800, link="images/user-review-ui-change-screen-file-list-modification-type.png"] |
| 330 | |
| 331 | If a file is renamed or copied, the name of the original file is |
| 332 | displayed in gray below the file name. |
| 333 | |
| 334 | image::images/user-review-ui-change-screen-file-list-rename.png[width=800, link="images/user-review-ui-change-screen-file-list-rename.png"] |
| 335 | |
| 336 | Repeating path segments are grayed out. |
| 337 | |
| 338 | image::images/user-review-ui-change-screen-file-list-repeating-paths.png[width=800, link="images/user-review-ui-change-screen-file-list-repeating-paths.png"] |
| 339 | |
| 340 | Inline comments on a file are shown in the `Comments` column. |
| 341 | |
| 342 | Draft comments, i.e. comments that have been written by the current |
| 343 | user but not yet published, are highlighted in red. |
| 344 | |
| 345 | New comments from other users, that were published after the current |
| 346 | user last reviewed this change, are highlighted in bold. |
| 347 | |
| 348 | image::images/user-review-ui-change-screen-file-list-comments.png[width=800, link="images/user-review-ui-change-screen-file-list-comments.png"] |
| 349 | |
| 350 | The size of the modifications in the files can be seen in the `Size` |
| 351 | column. The footer row shows the total size of the change. |
| 352 | |
| 353 | For files, the `Size` column shows the sum of inserted and deleted |
| 354 | lines as one number. For the total size, inserted and deleted lines are |
| 355 | shown separately. In addition, the number of insertions and deletions |
| 356 | is shown as a bar. The size of the bar indicates the amount of changed |
| 357 | lines, and its coloring in green and red shows the proportion of |
| 358 | insertions to deletions. |
| 359 | |
| 360 | The size information is useful to easily spot the files that contain |
| 361 | the most modifications; these files are likely to be the most relevant |
| 362 | files for this change. The total change size gives an estimate of how |
| 363 | long a review of this change may take. |
| 364 | |
| 365 | image::images/user-review-ui-change-screen-file-list-size.png[width=800, link="images/user-review-ui-change-screen-file-list-size.png"] |
| 366 | |
| 367 | In the header of the file list, the `Diff Against` selection can be |
| 368 | changed. This selection allows one to choose if the currently viewed |
| 369 | patch set should be compared against its base or against another patch |
| 370 | set of this change. The file list is updated accordingly. |
| 371 | |
| 372 | The file list header also provides an `Open All` button that opens the |
| 373 | diff views for all files in the file list. |
| 374 | |
| 375 | image::images/user-review-ui-change-screen-file-list-header.png[width=800, link="images/user-review-ui-change-screen-file-list-header.png"] |
| 376 | |
Edwin Kempin | b2a8ae3 | 2014-05-02 15:03:22 +0200 | [diff] [blame] | 377 | [[patch-sets]] |
| 378 | === Patch Sets |
| 379 | |
| 380 | The change screen only presents one patch set at a time. Which patch |
| 381 | set is currently viewed can be seen from the `Patch Sets` drop-down |
| 382 | panel in the change header. It shows the number of the currently viewed |
| 383 | patch set and the total number of patch sets, in the form: "current |
| 384 | patch set/number of patch sets". |
| 385 | |
| 386 | If a non-current patch set is viewed this is indicated by the |
| 387 | link:#not-current[Not Current] change state. Please note that some |
| 388 | operations are only available on the current patch set. |
| 389 | |
| 390 | image::images/user-review-ui-change-screen-patch-sets.png[width=800, link="images/user-review-ui-change-screen-patch-sets.png"] |
| 391 | |
| 392 | The patch set drop-down list shows the list of patch sets and allows to |
| 393 | switch between them. The patch sets are sorted in descending order so |
| 394 | that the current patch set is always on top. |
| 395 | |
| 396 | Patch sets that have unpublished draft comments are marked by a comment |
| 397 | icon. |
| 398 | |
| 399 | Draft patch sets are marked with `DRAFT`. |
| 400 | |
| 401 | image::images/user-review-ui-change-screen-patch-set-list.png[width=800, link="images/user-review-ui-change-screen-patch-set-list.png"] |
| 402 | |
Edwin Kempin | 0cb1ccb | 2014-05-05 13:22:03 +0200 | [diff] [blame] | 403 | [[download]] |
| 404 | === Download |
| 405 | |
| 406 | The `Download` drop-down panel in the change header offers commands and |
| 407 | links for downloading the currently viewed patch set. |
| 408 | |
| 409 | image::images/user-review-ui-change-screen-download-commands.png[width=800, link="images/user-review-ui-change-screen-download-commands.png"] |
| 410 | |
| 411 | The available download commands depend on the installed Gerrit plugins. |
| 412 | The most popular plugin for download commands, the |
| 413 | link:https://gerrit-review.googlesource.com/#/admin/projects/plugins/download-commands[ |
| 414 | download-commands] plugin, provides commands to checkout, pull and |
| 415 | cherry-pick a patch set. |
| 416 | |
| 417 | Each command has a copy-to-clipboard icon that allows the command to be |
| 418 | copied into the clipboard. This makes it easy to paste and execute the |
| 419 | command on a Git command line. |
| 420 | |
| 421 | If several download schemes are configured on the server (e.g. SSH and |
| 422 | HTTP) there is a drop-down list to switch between the download schemes. |
| 423 | Gerrit automatically remembers the download scheme that was last chosen |
| 424 | and selects this download scheme the next time the download commands |
| 425 | drop-down panel is opened. |
| 426 | |
| 427 | The `Patch-File` links provide the Git patch file for the currently |
| 428 | viewed patch set for download. The patch file can be base64 encoded or |
| 429 | zipped. |
| 430 | |
| 431 | The `Archive` links allow one to download an archive with the contents |
| 432 | of the currently viewed patch set. The archive is offered in several |
| 433 | formats (e.g. tar and tbz2); which formats are available depends on the |
| 434 | configuration of the server. |
| 435 | |
| 436 | image::images/user-review-ui-change-screen-download-commands-list.png[width=800, link="images/user-review-ui-change-screen-download-commands-list.png"] |
| 437 | |
Edwin Kempin | 811bd58 | 2014-05-05 13:39:24 +0200 | [diff] [blame] | 438 | [[included-in]] |
| 439 | === Included In |
| 440 | |
| 441 | For merged changes the `Included In` drop-down panel is available in |
| 442 | the change header. |
| 443 | |
| 444 | image::images/user-review-ui-change-screen-included-in.png[width=800, link="images/user-review-ui-change-screen-included-in.png"] |
| 445 | |
| 446 | The `Included In` drop-down panel shows the branches and tags in which |
| 447 | the change is included. E.g. if a change fixes a bug, this allows to |
| 448 | quickly see in which released versions the bug-fix is contained |
| 449 | (assuming that every release is tagged). |
| 450 | |
| 451 | image::images/user-review-ui-change-screen-included-in-list.png[width=800, link="images/user-review-ui-change-screen-included-in-list.png"] |
| 452 | |
Edwin Kempin | 981cc95 | 2014-05-05 14:04:08 +0200 | [diff] [blame] | 453 | [[star]] |
| 454 | === Star Change |
| 455 | |
| 456 | The star icon in the change header allows to mark the change as a |
| 457 | favorite. Clicking on the star icon again, unstars the change. |
| 458 | |
| 459 | image::images/user-review-ui-change-screen-star.png[width=800, link="images/user-review-ui-change-screen-star.png"] |
| 460 | |
| 461 | Starring a change turns on email notifications for this change. |
| 462 | |
| 463 | Starred changed are listed under `My` > `Starred Changes`. |
| 464 | and can be queried by the link:user-search.html#is[is:starred] search |
| 465 | operator. |
| 466 | |
Edwin Kempin | 8ab5b53 | 2014-05-05 17:10:31 +0200 | [diff] [blame] | 467 | [[related-changes]] |
| 468 | === Related Changes |
| 469 | |
| 470 | If there are changes that are related to the currently viewed change |
| 471 | they are displayed in the third column of the change screen. |
| 472 | |
| 473 | There are several lists of related changes and a tab control is used to |
| 474 | display each list of related changes in its own tab. |
| 475 | |
| 476 | The following tabs may be displayed: |
| 477 | |
| 478 | [[related-changes-tab]] |
| 479 | - `Related Changes`: |
| 480 | + |
| 481 | This tab page shows changes on which the current change depends |
| 482 | (ancestors) and open changes that depend on the current change |
| 483 | (descendants). For merge commits it also shows the closed changes that |
| 484 | will be merged into the destination branch by submitting the merge |
| 485 | commit. |
| 486 | + |
| 487 | The changes are sorted in the same way as the output of 'git log'. This |
| 488 | means the relationship between the changes can be inferred from the |
| 489 | position of the changes in the list. Changes listed above the current |
| 490 | change are descendants; changes below the current change are ancestors. |
| 491 | + |
| 492 | This tab is only available for open changes. |
| 493 | + |
| 494 | image::images/user-review-ui-change-screen-related-changes.png[width=800, link="images/user-review-ui-change-screen-related-changes.png"] |
| 495 | + |
| 496 | Related changes may be decorated with an icon to signify dependencies |
| 497 | on outdated patch sets, or commits that are not associated to changes |
| 498 | under review: |
| 499 | + |
| 500 | ** Orange Dot: |
| 501 | + |
| 502 | The selected patch set of the change is outdated; it is not the current |
| 503 | patch set of the change. |
| 504 | + |
| 505 | If an ancestor change is marked with an orange dot it means that the |
| 506 | currently viewed patch set depends on a outdated patch set of the |
| 507 | ancestor change. This is because a new patch set for the ancestor |
| 508 | change was uploaded in the meantime and as result the currently viewed |
| 509 | patch set now needs to be rebased. |
| 510 | + |
| 511 | If a descendant change is marked with an orange dot it means that an |
| 512 | old patch set of the descendant change depends on the currently viewed |
| 513 | patch set. It may be that the descendant was rebased in the meantime |
| 514 | and with the new patch set this dependency was removed. |
| 515 | |
| 516 | ** Green Tilde: |
| 517 | + |
| 518 | The selected patch set of the change is an indirect descendant of the |
| 519 | currently viewed patch set; it has a dependency to another patch set of |
| 520 | this change. E.g. this could mean that a new patch set was uploaded for |
| 521 | this change and the descendant change now needs to be rebased. Please |
| 522 | note that following the link to an indirect descendant change may |
| 523 | result in a completely different related changes listing. |
| 524 | |
| 525 | ** Black Dot: |
| 526 | + |
| 527 | Indicates a merged ancestor, e.g. the commit was directly pushed into |
| 528 | the repository bypassing code review, or the ancestor change was |
| 529 | reviewed and submitted on another branch. The latter may indicate that |
| 530 | the user has accidentally pushed the commit to the wrong branch, e.g. |
| 531 | the commit was done on `branch-a`, but was then pushed to |
| 532 | `refs/for/branch-b`. |
| 533 | |
| 534 | + |
| 535 | image::images/user-review-ui-change-screen-related-changes-indicators.png[width=800, link="images/user-review-ui-change-screen-related-changes-indicators.png"] |
| 536 | |
| 537 | - `Conflicts With`: |
| 538 | + |
| 539 | This tab page shows changes that conflict with the current change. |
| 540 | Non-mergeable changes are filtered out; only conflicting changes that |
| 541 | are mergeable are shown. |
| 542 | + |
| 543 | If this change is merged, its conflicting changes will have merge |
| 544 | conflicts and must be rebased. The rebase of the other changes with the |
| 545 | conflict resolution must then be done manually. |
| 546 | + |
| 547 | image::images/user-review-ui-change-screen-conflicts-with.png[width=800, link="images/user-review-ui-change-screen-conflicts-with.png"] |
| 548 | |
| 549 | - `Same Topic`: |
| 550 | + |
| 551 | This tab page shows changes that have the same topic as the current |
| 552 | change. Only open changes are included in the list. |
| 553 | + |
| 554 | image::images/user-review-ui-change-screen-same-topic.png[width=800, link="images/user-review-ui-change-screen-same-topic.png"] |
| 555 | |
| 556 | - `Cherry-Picks`: |
| 557 | + |
| 558 | This tab page shows changes with the same link:user-changeid.html[ |
| 559 | Change-Id] for the current project. |
| 560 | + |
| 561 | Abandoned changes are filtered out. |
| 562 | + |
| 563 | For each change in this list the destination branch is shown as a |
| 564 | prefix in front of the change subject. |
| 565 | + |
| 566 | image::images/user-review-ui-change-screen-cherry-picks.png[width=800, link="images/user-review-ui-change-screen-cherry-picks.png"] |
| 567 | |
| 568 | If there are no related changes for a tab, the tab is not displayed. |
| 569 | |
Edwin Kempin | c6cab61 | 2014-05-06 11:09:05 +0200 | [diff] [blame] | 570 | [[reply]] |
| 571 | === Reply |
| 572 | |
| 573 | The `Reply...` button in the change header allows to reply to the |
| 574 | currently viewed patch set; one can add a summary comment, publish |
| 575 | inline draft comments, and vote on the labels. |
| 576 | |
| 577 | image::images/user-review-ui-change-screen-reply.png[width=800, link="images/user-review-ui-change-screen-reply.png"] |
| 578 | |
| 579 | Clicking on the `Reply...` button opens a popup panel. |
| 580 | |
| 581 | A text box allows to type a summary comment for the currently viewed |
| 582 | patch set. |
| 583 | |
| 584 | If the current patch set is viewed, radio buttons are displayed for |
| 585 | each label on which the user is allowed to vote. Voting on non-current |
| 586 | patch sets is not possible. |
| 587 | |
| 588 | Typing "LGTM" (acronym for 'Looks Good To Me') in the summary comment |
| 589 | text box automatically selects the highest possible score for the |
| 590 | 'Code-Review' label. |
| 591 | |
| 592 | The inline draft comments that will be published are displayed in a |
| 593 | separate section so that they can be reviewed before publishing. There |
| 594 | are links to navigate to the inline comments which can be used if a |
| 595 | comment needs to be edited. |
| 596 | |
| 597 | The `Post` button publishes the comments and the votes. |
| 598 | |
| 599 | The `send email` checkbox controls whether the reply should trigger |
| 600 | email notifications for other users. Deselecting the checkbox means |
| 601 | that there will be no email notification about the change update to the |
| 602 | change author, the reviewers or any other user. |
| 603 | |
| 604 | image::images/user-review-ui-change-screen-replying.png[width=800, link="images/user-review-ui-change-screen-replying.png"] |
| 605 | |
| 606 | If a user can approve a label that is still required, a quick approve |
| 607 | button appears in the change header that allows to add this missing |
| 608 | approval by a single click. The quick approve button only appears if |
| 609 | there is a single label that is still required and can be approved by |
| 610 | the user. |
| 611 | |
| 612 | E.g. if a change requires approvals on the 'Code-Review' and the |
| 613 | 'Verified' labels, and there is already a '+1 Verified' vote, then |
| 614 | if the user is allowed to vote the max score on 'Code-Review', a |
| 615 | `Code-Review+2` quick approve button appears that approves the |
| 616 | 'Code-Review' label if clicked. |
| 617 | |
| 618 | Using the quick approve button also publishes all inline draft |
| 619 | comments; a summary comment is only added if the reply popup panel is |
| 620 | open when the quick approve button is clicked. |
| 621 | |
| 622 | image::images/user-review-ui-change-screen-quick-approve.png[width=800, link="images/user-review-ui-change-screen-quick-approve.png"] |
| 623 | |
Edwin Kempin | 7a68281 | 2014-05-06 14:45:01 +0200 | [diff] [blame] | 624 | [[history]] |
| 625 | === History |
| 626 | |
| 627 | The history of the change can be seen in the lower part of the screen. |
| 628 | |
| 629 | The history contains messages for all kinds of change updates, e.g. a |
| 630 | message is added when a new patch set is uploaded or when a review was |
| 631 | done. |
| 632 | |
| 633 | Messages with new comments from other users, that were published after |
| 634 | the current user last reviewed this change, are automatically expanded. |
| 635 | |
| 636 | image::images/user-review-ui-change-screen-history.png[width=800, link="images/user-review-ui-change-screen-history.png"] |
| 637 | |
| 638 | It is possible to directly reply to a change message by clicking on the |
| 639 | reply icon in the right upper corner of a change message. This opens |
| 640 | the reply popup panel and prefills the text box with the quoted comment. |
| 641 | Then the reply can be written below the quoted comment or inserted |
| 642 | inline. Lines starting with " > " will be rendered as a block quote. |
| 643 | Please note that for a correct rendering it is important to leave a blank |
| 644 | line between a quoted block and the reply to it. |
| 645 | |
| 646 | image::images/user-review-ui-change-screen-reply-to-comment.png[width=800, link="images/user-review-ui-change-screen-reply-to-comment.png"] |
| 647 | |
| 648 | Inline comments are directly displayed in the change history and there |
| 649 | are links to navigate to the inline comments. |
| 650 | |
| 651 | image::images/user-review-ui-change-screen-inline-comments.png[width=800, link="images/user-review-ui-change-screen-inline-comments.png"] |
| 652 | |
| 653 | The `Expand All` button expands all messages; the `Collapse All` button |
| 654 | collapses all messages. |
| 655 | |
Edwin Kempin | 772418f | 2014-05-06 15:45:35 +0200 | [diff] [blame] | 656 | [[update-notification]] |
| 657 | === Update Notification |
| 658 | |
| 659 | The change screen automatically polls for updates to the currently |
| 660 | viewed change. If there is an update the user is informed by a popup |
| 661 | panel in the bottom right corner. |
| 662 | |
| 663 | The polling frequency depends on the server configuration; by default |
| 664 | it is 30 seconds. Polling may also be completely disabled by the |
| 665 | administrator. |
| 666 | |
| 667 | image::images/user-review-ui-change-screen-change-update.png[width=800, link="images/user-review-ui-change-screen-change-update.png"] |
| 668 | |
Edwin Kempin | 41d9d30 | 2014-05-06 16:02:06 +0200 | [diff] [blame] | 669 | [[plugin-extensions]] |
| 670 | === Plugin Extensions |
| 671 | |
| 672 | Gerrit plugins may extend the change screen; they can add buttons for |
| 673 | additional actions to the change info block and display arbitrary UI |
| 674 | controls below the change info block. |
| 675 | |
| 676 | image::images/user-review-ui-change-screen-plugin-extensions.png[width=800, link="images/user-review-ui-change-screen-plugin-extensions.png"] |
| 677 | |
Edwin Kempin | ae57e18 | 2014-04-30 13:38:55 +0200 | [diff] [blame] | 678 | [[old-change-screen]] |
| 679 | === Old Change Screen |
| 680 | |
| 681 | In addition to the normal change screen, this Gerrit version still |
| 682 | includes the old change screen that was used in earlier Gerrit |
| 683 | versions. Users that want to continue using the old change screen can |
| 684 | configure it in their preferences under |
| 685 | `Settings` > `Preferences` > `Change View`: |
| 686 | |
| 687 | image::images/user-review-ui-change-view-preference.png[width=800, link="images/user-review-ui-change-view-preference.png"] |
| 688 | |
| 689 | [WARNING] |
| 690 | The old change screen will be removed in a later version of Gerrit. |
| 691 | |
Edwin Kempin | d38ddf5 | 2014-05-07 14:31:42 +0200 | [diff] [blame] | 692 | [[side-by-side]] |
| 693 | == Side-by-Side Diff Screen |
| 694 | |
| 695 | The side-by-side diff screen shows a single patch; the old file version |
| 696 | is displayed on the left side of the screen; the new file version is |
| 697 | displayed on the right side of the screen. |
| 698 | |
| 699 | This screen allows to review a patch and to comment on it. |
| 700 | |
| 701 | image::images/user-review-ui-side-by-side-diff-screen.png[width=800, link="images/user-review-ui-side-by-side-diff-screen.png"] |
| 702 | |
| 703 | In the screen header the project name and the name of the viewed patch |
| 704 | file are shown. |
| 705 | |
| 706 | If a Git web browser is configured on the server, the project name and |
| 707 | the file path are displayed as links to the project and the folder in |
| 708 | the Git web browser. |
| 709 | |
| 710 | image::images/user-review-ui-side-by-side-diff-screen-project-and-file.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-project-and-file.png"] |
| 711 | |
| 712 | The checkbox in front of the project name and the file name allows the |
Edwin Kempin | fe8ca4c | 2014-05-08 16:49:15 +0200 | [diff] [blame^] | 713 | patch to be marked as reviewed. The link:#mark-reviewed[Mark Reviewed] |
| 714 | diff preference allows to control whether the files should be |
| 715 | automatically marked as reviewed when they are viewed. |
Edwin Kempin | d38ddf5 | 2014-05-07 14:31:42 +0200 | [diff] [blame] | 716 | |
| 717 | image::images/user-review-ui-side-by-side-diff-screen-reviewed.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-reviewed.png"] |
| 718 | |
Edwin Kempin | d38ddf5 | 2014-05-07 14:31:42 +0200 | [diff] [blame] | 719 | The scrollbar shows patch diffs and inline comments as annotations. |
| 720 | This provides a good overview of the lines in the patch that are |
| 721 | relevant for reviewing. By clicking on an annotation one can quickly |
| 722 | navigate to the corresponding line in the patch. |
| 723 | |
| 724 | image::images/user-review-ui-side-by-side-diff-screen-scrollbar.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-scrollbar.png"] |
| 725 | |
Edwin Kempin | d8057e5 | 2014-05-08 13:52:32 +0200 | [diff] [blame] | 726 | [[patch-set-selection]] |
| 727 | In the header, on each side, the list of patch sets is shown. Clicking |
| 728 | on a patch set changes the selection for the patch set comparison and |
| 729 | the screen is refreshed to show the diff between the selected patch |
| 730 | sets. The currently selected patch set is highlighted by a light blue |
| 731 | background. |
| 732 | |
| 733 | On the left side `Base` can be selected to compare a patch set against |
| 734 | its base. For merge commits `Auto Merge` is available instead which |
| 735 | allows to compare the patch against the result of the auto merge. The |
| 736 | auto merge version may contain Git conflict markers and is useful for |
| 737 | reviewing how conflicts are resolved by a patch. |
| 738 | |
| 739 | Reviewers that are reviewing a patch for the first time look at its |
| 740 | diff against its base; reviewers that have reviewed an old patch |
| 741 | version before, may see what has changed since that version by |
| 742 | comparing the old patch against the current patch. |
| 743 | |
| 744 | image::images/user-review-ui-side-by-side-diff-screen-patch-sets.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-patch-sets.png"] |
| 745 | |
| 746 | The download icon next to the patch set list allows to download the |
| 747 | patch. Unless the mime type of the file is configured as safe, the |
| 748 | download file is a zip archive that contains the patch file. |
| 749 | |
Edwin Kempin | d37a134 | 2014-05-08 14:02:35 +0200 | [diff] [blame] | 750 | For navigating between the patches in a patch set there are navigation |
| 751 | buttons on the right side of the screen header. The left arrow button |
| 752 | navigates to the previous patch; the right arrow button navigates to |
| 753 | the next patch. The arrow up button leads back to the change screen. In |
| 754 | all cases the selection for the patch set comparison is kept. |
| 755 | |
| 756 | image::images/user-review-ui-side-by-side-diff-screen-navigation.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-navigation.png"] |
| 757 | |
Edwin Kempin | 004c347 | 2014-05-07 16:56:59 +0200 | [diff] [blame] | 758 | [[inline-comments]] |
| 759 | === Inline Comments |
| 760 | |
| 761 | Inline comments are displayed directly in the patch file under the code |
| 762 | that is commented. Inline comments can be placed on lines or on code |
| 763 | blocks. |
| 764 | |
| 765 | If an inline comment relates to a code block, this code block is |
| 766 | highlighted by a yellow background. |
| 767 | |
| 768 | Code blocks with comments may overlap. This means it is possible to |
| 769 | attach several comments to the same code. |
| 770 | |
| 771 | The lines of the patch file are linkable. To link to a certain line in |
| 772 | the patch file, '@<line-number>' must be appended to the patch link, |
| 773 | e.g. `http://host:8080/#/c/56857/2/Documentation/user-review-ui.txt@665`. |
| 774 | To link to a line in the old file version, '@a<line-number>' must be |
| 775 | appended to the patch link. These links can be used to directly link to |
| 776 | certain inline comments. |
| 777 | |
Edwin Kempin | fe8ca4c | 2014-05-08 16:49:15 +0200 | [diff] [blame^] | 778 | If the diff preference link:#expand-all-comments[Expand All Comments] |
| 779 | is set to `Expand`, all inline comments will be automatically expanded. |
Edwin Kempin | 004c347 | 2014-05-07 16:56:59 +0200 | [diff] [blame] | 780 | |
| 781 | image::images/user-review-ui-side-by-side-diff-screen-inline-comments.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-inline-comments.png"] |
| 782 | |
| 783 | In the header of the comment box, the name of the comment author and |
| 784 | the timestamp of the comment are shown. If avatars are configured on |
| 785 | the server, the avatar image of the comment author is displayed in the |
| 786 | top left corner. Below the actual comment there are buttons to reply to |
| 787 | the comment. |
| 788 | |
| 789 | image::images/user-review-ui-side-by-side-diff-screen-comment-box.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-comment-box.png"] |
| 790 | |
| 791 | Clicking on the `Reply` button opens an editor to type the reply. |
| 792 | |
| 793 | Quoting is supported, but only by manually copying & pasting the old |
| 794 | comment that should be quoted and prefixing every line by " > ". Please |
| 795 | note that for a correct rendering it is important to leave a blank line |
| 796 | between a quoted block and the reply to it. |
| 797 | |
| 798 | Clicking on the `Save` button saves the comment as a draft. To make it |
| 799 | visible to other users it must be published from the change screen by |
| 800 | link:#reply[replying] to the change. |
| 801 | |
| 802 | The `Cancel` button cancels the editing and discards any changes to the |
| 803 | draft comment. |
| 804 | |
| 805 | Clicking on the `Discard` button deletes the inline draft comment. |
| 806 | |
| 807 | image::images/user-review-ui-side-by-side-diff-screen-comment-reply.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-comment-reply.png"] |
| 808 | |
| 809 | Draft comments are marked by the text "Draft" in the header in the |
| 810 | place of the comment author. |
| 811 | |
| 812 | A draft comment can be edited by clicking on the `Edit` button, or |
| 813 | deleted by clicking on the `Discard` button. |
| 814 | |
| 815 | image::images/user-review-ui-side-by-side-diff-screen-comment-edit.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-comment-edit.png"] |
| 816 | |
| 817 | Clicking on the `Done` button is a quick way to reply with "Done" to a |
| 818 | comment. This is used to mark a comment as addressed by a follow-up |
| 819 | patch set. |
| 820 | |
| 821 | image::images/user-review-ui-side-by-side-diff-screen-comment-box.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-comment-box.png"] |
| 822 | |
| 823 | [[add-inline-comment]] |
| 824 | To add a new inline comment there are several possibilities: |
| 825 | |
| 826 | - select a code block and press 'c' |
| 827 | - select a code block and click on the popup comment icon |
| 828 | - go to a line, by clicking on it or by key navigation, and press 'c' |
| 829 | - click on a line number |
| 830 | |
| 831 | There are many ways to select code for commenting on it. The most |
| 832 | frequently used methods are: |
| 833 | |
| 834 | - by mouse: |
| 835 | ** click and drag with the mouse to select a block |
| 836 | ** double-click on a word to select it |
| 837 | ** double-click and drag with the mouse to select a code block word-wise |
| 838 | ** triple-click on a line to select it |
| 839 | ** triple-click and drag with the mouse to select a code block line-wise |
| 840 | |
| 841 | - by keys (the same keys that are used for visual selection in Vim): |
| 842 | ** press 'v' + arrow keys (or 'h', 'j', 'k', 'l') to select a block |
| 843 | ** press 'V' + arrow keys (or 'j', 'k') to select a code block line-wise |
| 844 | ** type 'bvw' to select a word |
| 845 | |
| 846 | Please note that double-click does *not* insert a new comment on a line |
| 847 | as it used to do in the old side-by-side diff screen; double-click is |
| 848 | used to select a word for commenting on it. |
| 849 | |
| 850 | image::images/user-review-ui-side-by-side-diff-screen-comment.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-comment.png"] |
| 851 | |
| 852 | For typing the new comment, a new comment box is shown under the code |
| 853 | that is commented. |
| 854 | |
| 855 | Clicking on the `Save` button saves the new comment as a draft. To make |
| 856 | it visible to other users it must be published from the change screen |
| 857 | by link:#reply[replying] to the change. |
| 858 | |
| 859 | Clicking on the `Discard` button deletes the new comment. |
| 860 | |
| 861 | image::images/user-review-ui-side-by-side-diff-screen-commented.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-commented.png"] |
| 862 | |
Edwin Kempin | 9df27ac | 2014-05-08 13:06:18 +0200 | [diff] [blame] | 863 | [[file-level-comments]] |
| 864 | === File Level Comments |
| 865 | |
| 866 | Comments that apply to a whole file can be added on file level. |
| 867 | |
| 868 | File level comments are added by clicking on the comment icon in the |
| 869 | header above the file. |
| 870 | |
| 871 | image::images/user-review-ui-side-by-side-diff-screen-file-level-comment.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-file-level-comment.png"] |
| 872 | |
| 873 | Clicking on the comment icon opens a comment box for typing the file |
| 874 | level comment. |
| 875 | |
| 876 | image::images/user-review-ui-side-by-side-diff-screen-file-level-commented.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-file-level-commented.png"] |
| 877 | |
Edwin Kempin | fe8ca4c | 2014-05-08 16:49:15 +0200 | [diff] [blame^] | 878 | [[diff-preferences]] |
| 879 | === Diff Preferences |
| 880 | |
| 881 | There are several options to control how patch diffs should be |
| 882 | rendered. Users can configure their preferences in the diff |
| 883 | preferences. The diff preferences can be accessed by clicking on the |
| 884 | settings icon in the screen header. |
| 885 | |
| 886 | image::images/user-review-ui-side-by-side-diff-screen-preferences.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-preferences.png"] |
| 887 | |
| 888 | The diff preferences popup allows to change the diff preferences. |
| 889 | By clicking on the `Save` button changes to the diff preferences are |
| 890 | saved permanently. Clicking on the `Apply` button applies the new |
| 891 | diff preferences to the current screen, but they are discarded when the |
| 892 | screen is refreshed. The `Save` button is only available if the user is |
| 893 | signed in. |
| 894 | |
| 895 | image::images/user-review-ui-side-by-side-diff-screen-preferences-popup.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-preferences-popup.png"] |
| 896 | |
| 897 | The following diff preferences can be configured: |
| 898 | |
| 899 | - `Theme`: |
| 900 | + |
| 901 | Controls the theme that is used to render the file content. |
| 902 | + |
| 903 | E.g. users could choose to work with a dark theme. |
| 904 | + |
| 905 | image::images/user-review-ui-side-by-side-diff-screen-dark-theme.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-dark-theme.png"] |
| 906 | |
| 907 | - `Ignore Whitespace`: |
| 908 | + |
| 909 | Controls whether differences in whitespace should be ignored or not. |
| 910 | + |
| 911 | ** `None`: |
| 912 | + |
| 913 | All differences in whitespace are highlighted. |
| 914 | + |
| 915 | ** `At Line End`: |
| 916 | + |
| 917 | Whitespace differences at the end of lines are ignored. |
| 918 | + |
| 919 | ** `Leading, At Line End`: |
| 920 | + |
| 921 | Whitespace differences at the beginning and end of lines are ignored. |
| 922 | + |
| 923 | ** `All`: |
| 924 | + |
| 925 | All differences in whitespace are ignored. |
| 926 | |
| 927 | - `Tab Width`: |
| 928 | + |
| 929 | Controls how many spaces should be displayed for a tab. |
| 930 | |
| 931 | - `Columns`: |
| 932 | + |
| 933 | Sets the preferred line length. At this position a vertical dashed line |
| 934 | is displayed so that one can easily detect lines the exceed the |
| 935 | preferred line length. |
| 936 | + |
| 937 | image::images/user-review-ui-side-by-side-diff-screen-column.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-column.png"] |
| 938 | |
| 939 | - `Lines Of Context`: |
| 940 | + |
| 941 | The number of context lines that should be displayed before and after |
| 942 | any diff. If the `entire file` checkbox is selected, the full file is |
| 943 | rendered. |
| 944 | + |
| 945 | Skipped common lines can be expanded by clicking on the placeholder for |
| 946 | the skipped lines. |
| 947 | + |
| 948 | Clicking on "... skipped <n> common lines ..." expands the complete |
| 949 | block of skipped lines. |
| 950 | + |
| 951 | If many lines are skipped there are additional links to expand the |
| 952 | context by ten lines before and after the skipped block. |
| 953 | + |
| 954 | image::images/user-review-ui-side-by-side-diff-screen-expand-skipped-lines.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-expand-skipped-lines.png"] |
| 955 | |
| 956 | - `Intraline Difference`: |
| 957 | + |
| 958 | Controls whether intraline differences should be highlighted. |
| 959 | + |
| 960 | image::images/user-review-ui-side-by-side-diff-screen-intraline-difference.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-intraline-difference.png"] |
| 961 | |
| 962 | - `Syntax Highlighting`: |
| 963 | + |
| 964 | Controls whether syntax highlighting should be enabled. |
| 965 | + |
| 966 | The language for the syntax highlighting is automatically detected from |
| 967 | the file extension. |
| 968 | + |
| 969 | image::images/user-review-ui-side-by-side-diff-screen-syntax-coloring.png[width=800, link="images/user-review-ui-side-by-side-diff-screen-syntax-coloring.png"] |
| 970 | |
| 971 | - `Whitespace Errors`: |
| 972 | + |
| 973 | Controls whether whitespace errors are highlighted. |
| 974 | |
| 975 | - `Show Tabs`: |
| 976 | + |
| 977 | Controls whether tabs are highlighted. |
| 978 | |
| 979 | - `Line Numbers`: |
| 980 | + |
| 981 | Controls whether line numbers are shown. |
| 982 | |
| 983 | - `Top Menu`: |
| 984 | + |
| 985 | Controls whether the top menu is shown. |
| 986 | |
| 987 | [[mark-reviewed]] |
| 988 | - `Mark Reviewed`: |
| 989 | + |
| 990 | Controls whether the files of the patch set should be automatically |
| 991 | marked as reviewed when they are viewed. |
| 992 | |
| 993 | [[expand-all-comments]] |
| 994 | - `Expand All Comments`: |
| 995 | + |
| 996 | Controls whether all comments should be automatically expanded. |
| 997 | |
| 998 | - `Render`: |
| 999 | + |
| 1000 | Controls how patch files that exceed the screen size are rendered. |
| 1001 | + |
| 1002 | If `Fast` is selected file contents which are outside of the visible |
| 1003 | area are not attached to the browser's DOM tree. This makes the |
| 1004 | rendering fast, but searching by `Ctrl+F` only finds content which is |
| 1005 | in the visible area. |
| 1006 | + |
| 1007 | If `Slow` is selected all file contents are attached to the browser's |
| 1008 | DOM tree, which makes the rendering slow for large files. The advantage |
| 1009 | of this setting is that `Ctrl+F` can be used to search in the complete |
| 1010 | file. |
| 1011 | |
Edwin Kempin | 4fd84c9 | 2014-04-30 13:23:15 +0200 | [diff] [blame] | 1012 | GERRIT |
| 1013 | ------ |
| 1014 | Part of link:index.html[Gerrit Code Review] |
| 1015 | |
| 1016 | SEARCHBOX |
| 1017 | --------- |