Show lock icon in blob viewer
What does this MR do and why?
- proxy lock information from blob controls and from directory lock button to the header app
- renders a lock icon if a directory or a file is locked
- does not render a lock icon on a root directory
- includes author's name in the tooltip
References
Screenshots or screen recordings
Before | After |
---|---|
![]() ![]() |
Screen_Recording_2025-04-10_at_16.19.09 |
How to set up and validate locally
- Make sure your GDK runs in EE mode and you login as the root user.
- In rails console enable the feature flag
Feature.enable(:blob_repository_vue_header_app) Feature.enable(:blob_overflow_menu) Feature.enable(:repository_lock_information)
- Go to Project / Repository
- Open one of the folders and click Lock and confirm the action in the modal.
- After reload, the name of the directory should have a lock icon button that triggers a tooltip with lock author's name.
- On the same directory click Unlock. After confirming, make sure the icon is no longer rendered.
- Open one of the files and click ellipsis button (Actions), select Lock from the dropdown and confirm the action in the modal.
- The name of the file should have a lock icon button that triggers a tooltip with lock author's name.
- On the same file clock Unlock. After confirming, make sure the icon is no longer rendered.
- Go to the root directory of the folder. Make sure the icon is not rendered, even when one of the subfolders is locked.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #224475 (closed)
Edited by Paulina Sedlak-Jakubowska