Geo: Pruning the event log does not prune Updated/Deleted/Created/etc tables
Summary
The Geo::PruneEventLogWorker
seems to be removing rows from the Geo::EventLog
, but the Geo::RepositoryUpdatedEvent
, Geo::RepositoryDeletedEvent
, Geo::RepositoryRenamedEvent
, and Geo::RepositoryCreatedEvent
tables are not pruned.
Steps to reproduce
- Enable the
Geo::PruneEventLogWorker
What is the current bug behavior?
Event log is pruned. Other event tables aren't.
What is the expected correct behavior?
All tables are pruned.
Relevant logs and/or screenshots
irb> Geo::RepositoryUpdatedEvent.minimum(:id)
=> 1
irb> Geo::RepositoryCreatedEvent.minimum :id
=> 1
irb> Geo::RepositoryDeletedEvent.minimum(:id)
=> 1
irb> Geo::RepositoryRenamedEvent.minimum(:id)
=> 1
irb> Geo::EventLog.minimum(:id)
=> 4403870
irb> Geo::EventLog.where(repository_updated_event_id: 1)
=> #<ActiveRecord::Relation []>