Set integration timestamps correctly during bulk create and update
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 and updated_at to current time.
- When bulk updating, set only the updated_at to current time (and not change the existing created_at value).
Refactors:
- (
#to_database_hash
) for data fields moved toBaseDataFields
- ZentaoTrackerData to
include BaseDataFields
Changelog: fixed
Related to #360898 (closed)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
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.