Allow testing AI features after the cut_off date on Gitlab.com staging environment
The Staging is the same as .com and it doesnt communicate with CDOT at all. It is using the data from access_data.yml file.
We need a way to simulate/test how the system behaves after the cut_off date for new AI features on Staging.
We could introduce the dynamic feature flag per service name in BaseAvailableServiceData disable_free_acess_for_[service_name]
under the free_access?
method. Something like:
def free_access?
return true if Feature.enabled?("disable_free_access_for_#{name}", type: :ops)
cut_off_date.nil? || cut_off_date&.future?
end
Edited by Nikola Milojevic