[MM-56339] Audit logs: on login add UserId and SessionId to audit's Actor field (#27446)
* on login add UserId and SessionId to audit's Actor field to match logout * lint * simplify to add only userId and sessionId * AddToEventActor -> AddUser/SessionToEventActor * fill in missing session data when logging the audit record * why did it bump that? reverting. * make modules-tidy * trigger build * add more context to the comment
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9f312f48b5
Коммит
9b2f20210b
@@ -1104,6 +1104,18 @@ func TestMergeWithVeryComplexStruct(t *testing.T) {
|
||||
assert.Equal(t, patch, *merged)
|
||||
})
|
||||
|
||||
t.Run("blank string in patch overwrites base string b/c empty string is not nil", func(t *testing.T) {
|
||||
setupStructs(t)
|
||||
|
||||
patch.S = ""
|
||||
|
||||
merged, err := mergeTestStructs(base, patch)
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.NotEqual(t, base, *merged)
|
||||
assert.Equal(t, patch, *merged)
|
||||
})
|
||||
|
||||
t.Run("nil values in patch are ignored", func(t *testing.T) {
|
||||
setupStructs(t)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user