auditLogs.tsx 949 B

1234567891011121314151617181920212223242526272829303132333435
  1. import type {AuditLog as AuditLogType} from 'sentry/types';
  2. export function AuditLogs(params: AuditLogType[] = []): AuditLogType[] {
  3. return [
  4. {
  5. note: 'edited project ludic-science',
  6. targetObject: 2,
  7. targetUser: null,
  8. data: {
  9. status: 0,
  10. slug: 'ludic-science',
  11. public: false,
  12. name: 'Ludic Science',
  13. id: 2,
  14. },
  15. dateCreated: '2018-02-21T03:04:23.157Z',
  16. ipAddress: '127.0.0.1',
  17. id: '465',
  18. actor: TestStubs.User({isSuperuser: true}),
  19. event: 'project.edit',
  20. },
  21. {
  22. note: 'edited the organization setting(s): accountRateLimit from 1000 to 0',
  23. targetObject: 2,
  24. targetUser: null,
  25. data: {accountRateLimit: 'from 1000 to 0'},
  26. dateCreated: '2018-02-16T23:45:59.813Z',
  27. ipAddress: '127.0.0.1',
  28. id: '408',
  29. actor: TestStubs.User({isSuperuser: false}),
  30. event: 'org.edit',
  31. },
  32. ...params,
  33. ];
  34. }