Commit 8348a3d4 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch '217941-stop-writing-to-updated-at-on-audit-events' into 'master'

Stop writing to update_at on audit_events

See merge request gitlab-org/gitlab!35697
parents 3eafef37 345c4e64
...@@ -4,7 +4,7 @@ class AuditEvent < ApplicationRecord ...@@ -4,7 +4,7 @@ class AuditEvent < ApplicationRecord
include CreatedAtFilterable include CreatedAtFilterable
include IgnorableColumns include IgnorableColumns
ignore_column :updated_at, remove_with: '13.3', remove_after: '2020-08-22' ignore_column :updated_at, remove_with: '13.4', remove_after: '2020-09-22'
serialize :details, Hash # rubocop:disable Cop/ActiveRecordSerialize serialize :details, Hash # rubocop:disable Cop/ActiveRecordSerialize
......
...@@ -16,7 +16,6 @@ module EE ...@@ -16,7 +16,6 @@ module EE
def attributes def attributes
base_payload.merge(type: SecurityEvent.to_s, base_payload.merge(type: SecurityEvent.to_s,
created_at: DateTime.current, created_at: DateTime.current,
updated_at: DateTime.current,
details: @details.to_yaml) details: @details.to_yaml)
end end
......
...@@ -22,7 +22,6 @@ RSpec.describe EE::AuditEvents::BulkInsertService do ...@@ -22,7 +22,6 @@ RSpec.describe EE::AuditEvents::BulkInsertService do
entity_type: entity_type, entity_type: entity_type,
type: 'SecurityEvent', type: 'SecurityEvent',
created_at: timestamp, created_at: timestamp,
updated_at: timestamp,
details: { details: {
updated_ref: 'master', updated_ref: 'master',
author_name: user.name, author_name: user.name,
......
...@@ -24,7 +24,6 @@ RSpec.describe EE::AuditEvents::RepositoryPushAuditEventService do ...@@ -24,7 +24,6 @@ RSpec.describe EE::AuditEvents::RepositoryPushAuditEventService do
entity_type: entity_type, entity_type: entity_type,
type: 'SecurityEvent', type: 'SecurityEvent',
created_at: timestamp, created_at: timestamp,
updated_at: timestamp,
ip_address: '127.0.0.1', ip_address: '127.0.0.1',
details: { details: {
updated_ref: updated_ref, updated_ref: updated_ref,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment