Skip to content

Display fork suggestion when editing blob

Jacques Erasmus requested to merge 336052-display-fork-suggestion-component into master

What does this MR do and why?

Displays a fork suggestion component when a user with minimal access tries to edit a file.

Changes in this MR is part of a bigger effort to refactor the blob viewer

description MR
Add fork suggestion component !71177 (merged)
Display fork message when user with minimal access tries to edit a file This MR

Screenshots or screen recordings

Screenshot_2021-10-04_at_10.08.10

How to set up and validate locally

Example below:

  1. Enable the FF
    Feature.enable(:refactor_blob_viewer)
  2. Add a member with minimal access to a project
  3. Log in as the user with minimal access
  4. Try to edit a file
  5. The fork suggestion should appear

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #336052 (closed)

Edited by Jacques Erasmus

Merge request reports