merge_request updated_at should be updated when assignees changed
When the assignees of a merge request are changed, the update_at of the merge request should be updated also. Likely, when multiple assignees were allowed and moved to a separate table, the merge_requests record's updated_at was no longer updated upon assignee change (which is why I'm submitting this as a bug/regression rather than a feature request!)
We have tools that depend on a merge requests updated_at column in the API to know if a change has been made.
The fix is very simple:
In https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/models/merge_request_assignee.rb#L4,
- belongs_to :merge_request
+ belongs_to :merge_request, touch: true
Edited by Patrick Herlihy