Skip to content
代码片段 群组 项目
提交 c9cf677e 编辑于 作者: Stan Hu's avatar Stan Hu
浏览文件

Remove ambiguity in Group class causing build failures

上级 e1ffd6a2
No related branches found
No related tags found
无相关合并请求
...@@ -90,7 +90,7 @@ def builds_for_project_runner ...@@ -90,7 +90,7 @@ def builds_for_project_runner
def builds_for_group_runner def builds_for_group_runner
# Workaround for weird Rails bug, that makes `runner.groups.to_sql` to return `runner_id = NULL` # Workaround for weird Rails bug, that makes `runner.groups.to_sql` to return `runner_id = NULL`
groups = Group.joins(:runner_namespaces).merge(runner.runner_namespaces) groups = ::Group.joins(:runner_namespaces).merge(runner.runner_namespaces)
hierarchy_groups = Gitlab::GroupHierarchy.new(groups).base_and_descendants hierarchy_groups = Gitlab::GroupHierarchy.new(groups).base_and_descendants
projects = Project.where(namespace_id: hierarchy_groups) projects = Project.where(namespace_id: hierarchy_groups)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册