Groups and subgroups seeding rake task is broken
Description
While working on adding requirement for Organizations, I ran into an issue with the group seed rake task.
First issue was a validation issue that could be fixed by adding a path to the user factory
# spec/factories/users.rb:24
user.assign_personal_namespace(create(:organization, path: "org-for-#{user.name.parameterize}")) if assign_ns
But then, another error shows up which is more complicated:
NoMethodError: undefined method
flat_map' for #<Project id:22 4g9dz/gitlab-testcc2hjuntp3>`
Seems like the Project
object is not a ApplicationRecord
.