Skip to content

Improve the Insights feature availability check

Rémy Coutable requested to merge improve-insights-feature-check into master

What does this MR do?

This creates a new InsightsFeature module that provides a new #insights_available? method that encapsulate the feature flag check which is mandatory, and then if it's enabled, check the license.

What are the relevant issue numbers?

This builds upon https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9665.

Does this MR meet the acceptance criteria?

Merge request reports