Projects contributed to List is wrong
the "Projects contributed to" List is far to long and shows projects i never even heard of, let alone contributed to.
The List should only display 2 projects for me, but it displays ~100.
I'm unable to reproduce this on my dev setup and the list seems to contain projects without any events....
For example https://gitlab.com/raymondhoagland/Parking_App
That would mean the author_id check here doesn't work correctly:
https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/models/user.rb#L612
@dzaporozhets I'm stumped. The code works fine in my dev environment. I have no idea what could cause this behaviour. Do you have any Ideas?
edit: statements from my dev setup look correct as well. i don't understand where these other projects come from on gitlab.com
Event Load (1.4ms) SELECT DISTINCT(project_id) FROM "events" WHERE ("events"."author_id" IS NOT NULL) AND "events"."author_id" = 1 AND (created_at > '2014-02-19 13:03:49.663403') AND "events"."action" = 5 ORDER BY "events"."project_id" DESC
Project Load (1.1ms) SELECT "projects".* FROM "projects" WHERE "projects"."id" IN (2) ORDER BY "projects"."created_at" DESC, "projects"."id" DESC