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 Differentiate between event types 2017-04-03 08:34:36 -05:00
_event_issue.atom.haml HAMLLint: Fix `SpaceInsideHashAttributes` offences 2016-12-31 11:58:36 +05:30
_event_merge_request.atom.haml HAMLLint: Fix `SpaceInsideHashAttributes` offences 2016-12-31 11:58:36 +05:30
_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 Hide namespace and project name on project activity page (!5068) 2016-07-14 19:04:59 +02:00
_events.html.haml Add starred projects page to dashboard 2015-03-09 14:12:03 -07:00