mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
38 lines
976 B
TypeScript
38 lines
976 B
TypeScript
import {UserFixture} from 'sentry-fixture/user';
|
|
|
|
import type {AuditLog} from 'sentry/types';
|
|
|
|
export function AuditLogsFixture(params: AuditLog[] = []): AuditLog[] {
|
|
return [
|
|
{
|
|
note: 'edited project ludic-science',
|
|
targetObject: 2,
|
|
targetUser: null,
|
|
data: {
|
|
status: 0,
|
|
slug: 'ludic-science',
|
|
public: false,
|
|
name: 'Ludic Science',
|
|
id: 2,
|
|
},
|
|
dateCreated: '2018-02-21T03:04:23.157Z',
|
|
ipAddress: '127.0.0.1',
|
|
id: '465',
|
|
actor: UserFixture({isSuperuser: true}),
|
|
event: 'project.edit',
|
|
},
|
|
{
|
|
note: 'edited the organization setting(s): accountRateLimit from 1000 to 0',
|
|
targetObject: 2,
|
|
targetUser: null,
|
|
data: {accountRateLimit: 'from 1000 to 0'},
|
|
dateCreated: '2018-02-16T23:45:59.813Z',
|
|
ipAddress: '127.0.0.1',
|
|
id: '408',
|
|
actor: UserFixture({isSuperuser: false}),
|
|
event: 'org.edit',
|
|
},
|
|
...params,
|
|
];
|
|
}
|