Skip to content

Populate note.namespace_id with bulk inserts

What does this MR do and why?

Populate note.namespace_id with bulk inserts

We need to set namespace_id ourselves since these skip the callbacks when saving the record

In !130918 (merged), we added an ActiveRecord hook to set a note's namespace_id. This MR covers cases where we use bulk insert to create notes.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #416127 (closed)

Edited by Heinrich Lee Yu

Merge request reports