Skip to content
代码片段 群组 项目
提交 5dd2e678 编辑于 作者: Jan Provaznik's avatar Jan Provaznik
浏览文件

Merge branch 'bmarjanovic/fix-potential-bc' into 'master'

No related branches found
No related tags found
无相关合并请求
......@@ -23,8 +23,8 @@ def user_allowed?
end
def active_code_suggestions_purchase?(project_id)
return false unless project_id
return true unless ::Feature.enabled?(:purchase_code_suggestions)
return false unless project_id
cache_key = format(PROJECT_CODE_SUGGESTIONS_ADD_ON_CACHE_KEY, project_id: project_id)
Rails.cache.fetch(cache_key, expires_in: 1.hour) do
......
......@@ -333,7 +333,7 @@
stub_feature_flags(purchase_code_suggestions: false)
end
include_examples 'a not found response'
it_behaves_like 'code completions endpoint'
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册