Skip to content

Allows JH to independently control the feature license level

Baodong请求将jh/license_feature合并到main-jh

Issue link

#727 (closed)

Dependency

Upstream MR:

Proposal

Add prepend methods to Features and License to let JH read the new license configuration.

  • project level check
  • namespace level check
  • global level check

The core method is licensed_feature_available? (feature_available?).

How to test

Ensure that previous behavior is unchanged

  • Users with low level license can not use high level features
  • Users with license can use current license level features

Ensure that new behavior is expected

  • JH customized license takes effect.

In Upstream, external_audit_events is in Ultimate level; in JH, it's in Premium level.

Reference

https://docs.gitlab.com/ee/development/licensed_feature_availability.html

https://docs.gitlab.com/ee/subscriptions

Baodong 编辑于

合并请求报告

加载中