Skip to content

Refactor license template finder in jh

What does this MR do and why?

This MR refactors !904 (merged) by apply suggestion from songhuang

English version of suggestion:
The change relies on more code from global, and if global refactored that part of the code, it could cause our functionality to fail. So it is recommended to write a MR to global that refactors this part of the code in global into a separate method.

def available_license
  Licensee::License.all(featured: popular_only?)
end

and then we can just prepend that method.

upstream tracker: gitlab!98623(merged)

Describe in detail what your merge request does and why.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Xueyuan Lin 编辑于

合并请求报告

加载中