Fix audit log recording full_path instead of ID
Newly created projects (and other objects) were storing the full_path in target_id instead of the project's primary key. This commit refactors some of the helper methods in AuditEventService to rectify this.
Showing
- ee/app/services/ee/audit_event_service.rb 13 additions, 12 deletionsee/app/services/ee/audit_event_service.rb
- ee/changelogs/unreleased/12599-escalated-audit-logging-implement-consistent-types-for-target_id-fi.yml 5 additions, 0 deletions...t-logging-implement-consistent-types-for-target_id-fi.yml
- ee/spec/services/audit_event_service_spec.rb 3 additions, 3 deletionsee/spec/services/audit_event_service_spec.rb
- ee/spec/services/ee/users/create_service_spec.rb 1 addition, 1 deletionee/spec/services/ee/users/create_service_spec.rb
- ee/spec/services/ee/users/destroy_service_spec.rb 1 addition, 1 deletionee/spec/services/ee/users/destroy_service_spec.rb
- ee/spec/services/groups/create_service_spec.rb 1 addition, 1 deletionee/spec/services/groups/create_service_spec.rb
- ee/spec/services/groups/destroy_service_spec.rb 1 addition, 1 deletionee/spec/services/groups/destroy_service_spec.rb
- ee/spec/services/projects/create_service_spec.rb 1 addition, 1 deletionee/spec/services/projects/create_service_spec.rb
- ee/spec/services/projects/destroy_service_spec.rb 1 addition, 1 deletionee/spec/services/projects/destroy_service_spec.rb
Please register or sign in to comment