Redirect to view blob page after replace/delete
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
- Enable the Blob Viewer Refactor feature flag
Feature.enable(:refactor_blob_viewer)
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #349953 (closed)
Edited by Jacques Erasmus