gitlab-org--gitlab-foss/app/views/events
Yorick Peterse 631801674f
Reuse authors when rendering event Atom feeds
Previously we'd use "event.author_email" which translates to
"event.author.email". This would result in an extra query being executed
_for every event_ just to get the same author's Email address.

Instead of doing all this useless work we can just pass the User object
returned by "event.author" since:

1. This allows us to re-use the user object's Email address.
2. Authors are eager-loaded, so this doesn't cause any N+1 queries.
2017-11-28 17:10:12 +01:00
..
event Resolve "DashboardController#activity.json is slow due to SQL" 2017-11-06 16:52:56 +00:00
_commit.html.haml Migrate events into a new format 2017-08-10 17:45:44 +02:00
_event.atom.builder Reuse authors when rendering event Atom feeds 2017-11-28 17:10:12 +01:00
_event.html.haml
_event_issue.atom.haml
_event_merge_request.atom.haml
_event_note.atom.haml Resolve "DashboardController#activity.json is slow due to SQL" 2017-11-06 16:52:56 +00:00
_event_push.atom.haml Fix display of push events for removed refs 2017-08-22 20:15:45 +02:00
_event_scope.html.haml
_events.html.haml