Creating a project in a group with many members can time out and lead to invalid permission cache
- Create a project in the
gitlab-com
group - The creation will time out
- Navigate back to the group page, notice the project has been created
- Go to the project
- Go to Settings
- Issues should be set to Only team members
- Issues won't be visible
- Explicitly add yourself to the Project as a Master, which will update the cache for your membership
- Issues should now be visible
- Remove yourself from the Project, falling back to your inherited group permission
- Issues should still be visible
I suspect the creation is timing out while transferring the group members into the project permissions, leaving the permissions cache in an invalid state. I verified this a bit on the console:
irb(main):001:0> p = Project.find_by_full_path('gitlab-com/swag-store')
irb(main):002:0> p.group.name
=> "GitLab.com"
irb(main):003:0> p.group.members.count
=> 175
irb(main):004:0> p.team.members.count
=> 3
Those three members are the ones we added manually, as per steps 8 and 10 above.
Compared to a project that's existed in the group for a long time:
irb(main):001:0> p2 = Project.find_by_full_path('gitlab-com/www-gitlab-com')
irb(main):004:0> p2.team.members.count
=> 173