Fix bug validating EE project features
The current class `ProjectFeature` validates that none of the project features have a value greater than `Featurable::ENABLED`, except for the `pages` feature. Nevertheless, we have an EE extension where we add more features to the `ProjectFeature` class. The current validator use only the constant `ProjectFeature::FEATURES` for the validation. This means that the `ProjectFeature::EE_FEATURES` are not included in the validation and we could set the `Featurable::PUBLIC` value. In this commit we fix that by including all features set in the `ProjectFeature` including both FOSS and EE ones. Changelog: fixed
上级
78684055
No related branches found
No related tags found
显示
- app/models/concerns/featurable.rb 21 个添加, 0 个删除app/models/concerns/featurable.rb
- app/models/project_feature.rb 4 个添加, 12 个删除app/models/project_feature.rb
- ee/spec/models/project_feature_spec.rb 4 个添加, 0 个删除ee/spec/models/project_feature_spec.rb
- spec/models/concerns/featurable_spec.rb 4 个添加, 1 个删除spec/models/concerns/featurable_spec.rb
- spec/models/project_feature_spec.rb 7 个添加, 10 个删除spec/models/project_feature_spec.rb
- spec/support/shared_examples/models/concerns/featurable_shared_examples.rb 12 个添加, 0 个删除...ed_examples/models/concerns/featurable_shared_examples.rb
加载中
想要评论请 注册 或 登录