Fix `Ci::Runner#belonging_to_group/belonging_to_group_or_project/belonging_to_parent_group_of_project` cross-join `groups`

From !62092 (closed) we have seen that Ci::Runner#belonging_to_group/belonging_to_group_or_project/belonging_to_parent_group_of_project needs to join between projects table and ci_* tables.

Options

  1. Use .ids to fetch ids and use two separate queries
  2. Change how the feature is being used, and remove this method all together
Edited by Thong Kuah