Skip to content

Use "nil?" to judge project is deleted or not

路志远请求将fix-wiki-cvs-about-1st-image合并到main-jh

What does this MR do and why?

Issue: https://jihulab.com/gitlab-cn/internal/content-security-backend/-/issues/42#note_4808318

What

当前在 Wiki 中上传的第一张图片不会被审核。

Why

代码中用 container.blank? 判断 ProjectWiki 是否存在(container 就是 ProjectWiki 对象),但当 ProjectWiki 存在且为空时,container.blank? 会返回 true,被误认为不存在。

How

container.blank? 改为 container.nil? 即可。

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

路志远 编辑于

合并请求报告

加载中