Skip to content

Fix FE license limitation of real_lines_of_code

Baodong请求将fix-license-limitation-loc-fe合并到main-jh

Related issue link: https://jihulab.com/gitlab-cn/gitlab/-/issues/1581

What does this MR do and why?

Fix FE license limitation of real_lines_of_code.

If users enables the feature flag lines_of_code, but they doesn't have license permission of real_lines_of_code,

them will see errors like NaN 行 NaN 有效行.

The root reason is the checking of license key should have pushed to Gon variables, but not now.

ScreenShots

Before(Bug) After(fixed)
截屏2022-08-15_13.28.09 截屏2022-08-15_13.56.11

cc EM @prajnamas

合并请求报告

加载中