Skip to content
代码片段 群组 项目
提交 57e3f1f2 编辑于 作者: Joe Woodward's avatar Joe Woodward 提交者: Joe Woodward
浏览文件

Standardize path and lfs file locking syncing logic

When LFS files are locked, we create a PathLock, similarly, when a path
is locked which is an LFS file, we create an LfsFileLock.

Previously this logic was duplicated in the PathLock controller and the
GraphQL mutation.

This change moves the syncing logic into the services where it belongs.

It also updates the LFS locking and unlocking services to ensure we
don't have circular logic. When a path lock service calls an lfs
service, we tell the lfs service not to create/destroy the path lock
after creating/destroying the lfs file lock. Similarly, the lfs services
do the same in the opposite direction.

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/512677
上级 6bc0eac1
加载中
显示
255 个添加104 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册