auditLogs.ts 989 B

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