Commit 7b4d0635 authored by Krasimir Angelov's avatar Krasimir Angelov

Update contributions calendar UNION query

Explicitly list columns to be selected, to avoid PG::UndefinedColumn
error when column on `Event` is ignored.

See
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/69337#note_667082434.
parent aeadad8d
......@@ -33,6 +33,7 @@ module Gitlab
.having(action: :commented)
events = Event
.select(:project_id, :target_type, :action, :date, :total_amount)
.from_union([repo_events, issue_events, mr_events, note_events])
.map(&:attributes)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment