Skip to content

WIP: displaying one file at a time when reviewing code

Osher requested to merge osherdp/gitlab:feature/file-by-file-review into master

What does this MR do?

When reviewing code, only one file is being displayed at a time. Selecting files is available via the sidebar files-tree, as always.

The reasons I think it's should usually be preferred are:

  • very long loading time when we're dealing with PRs with lots of files. You almost can't fix that in any other way, as you have no control over the browser's environment performance (except by dynamically loading files while scrolling, which is less easy to implement and navigate through).
  • a crucial part of the Zen-mode, users should have a focused look on code changes.

Currently, this is the major advantage of Crucible over GitLab. Other minor advantages are multiline comments and revisions-slider, both I want to try to implement next.

Any changes and suggestions are welcome, just through it on me.

Related to:

Screenshots

Screenshot_from_2020-01-04_13-38-17

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

It should only have a positive impact on performance. A test that checks navigation between files should be changed or added.

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Daniel Gruesso

Merge request reports