Skip to content

Set integration timestamps correctly during bulk create and update

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 to BaseDataFields
  • 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.

Merge request reports

Loading