Set timestamps correctly when propagating
requested to merge 360898-set-created_at-and-updated_at-correctly-when-propagating-integrations into master
What does this MR do and why?
When bulk creating or bulk updating integrations, we were previously
copying the inherited integrations created_at
and updated_at
timestamps overtop of the group or project-level integration's
timestamps. And similarly for the data fields.
Changes:
- When bulk creating, set
created_at
andupdated_at
to current time. - When bulk updating, set only the
updated_at
to current time (and not change the existingcreated_at
value).
Refactors:
- (
#to_database_hash
) for data fields moved toBaseDataFields
- ZentaoTrackerData to
include BaseDataFields
Related to #360898 (closed)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Luke Duncalfe