Enabling implicit feature flag for individual group/project shoudln't disable it elsewhere
Background
When we do a licence check for a feature with feature_available?
there is also a check for an implicit feature flag.
Additionally feature flags can be enabled for individual actors such as groups or projects.
Problem
Enabling a flag for an individual group/project can cause the ::Feature.enabled?(feature, default_enabled: true)
check in feature_enabled?
to return false for every other group/project. This can end up in a feature such as epics/dast/group_saml being disabled site wide when attempting to make sure it is enabled for an individual group.
This hit us on staging with group_saml
in https://gitlab.slack.com/archives/CLM1D8QR0/p1567590857002200, and wasn't easy to diagnose as we didn't initially think about the implicit feature flag.
Edited by James Edwards-Jones