Fixes #14503 - don't join reports with the logs and resources explicitly in API
Using `.includes(:logs => [:message, :source])` in the search scope for reports caused serious performance issues (ending up with server taking all of its memory). I've found no reason for the `includes` to actually be there (we don't render the logs in the views) and should be safe to just remove it.
Related issues
Bug #14503: Listing reports for a host via API/hammer consumes large amount of memory
Fixes #14503 - don't join reports with the logs and resources explicitly in API
Using `.includes(:logs => [:message, :source])` in the search scope
for reports caused serious performance issues (ending up with server
taking all of its memory). I've found no reason for the `includes` to
actually be there (we don't render the logs in the views) and should
be safe to just remove it.