Skip to content

Redirect to view blob page after replace/delete

Jacques Erasmus requested to merge 349953-redirect-to-blob into master

What does this MR do and why?

When a user does not have access to a project and attempts to replace/delete a file, they should get redirected to the view blob page instead of the WebIDE.

In this MR we also remove the stubs in the feature specs for replace/delete and update the specs to use the new modal.

Screenshots or screen recordings

replace delete
replace delete

How to set up and validate locally

  1. Enable the Blob Viewer Refactor feature flag
Feature.enable(:refactor_blob_viewer)
  1. Open a file in the repository file browser

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 #349953 (closed)

Edited by Jacques Erasmus

Merge request reports

Loading