Skip to content

Fix missing RSS feed events

André Hänsel requested to merge AndreKR/gitlab:fix-event-collection into master

This is a continuation of gitlab-foss!32774 (closed) after the move to a single codebase.

The EventCollection can load events from the database, for example for the activity log or the RSS feed. It can take an ActiveRecord::Relation of projects to restrict loading of events to those projects. If this Relation contained a limit clause, the query returned wrong results.

This change removes any limit clause from the project Relation before using it to filter events.

Fixes #24227 (closed) Fixes #29990 (closed)

Edited by André Hänsel

Merge request reports