activityFeed.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. export function ActivityFeed(params = {}) {
  2. return {
  3. data: {text: 'Very interesting comment'},
  4. dateCreated: '2019-04-29T21:43:32.280Z',
  5. project: {
  6. status: 'active',
  7. features: [
  8. 'releases',
  9. 'sample-events',
  10. 'minidump',
  11. 'rate-limits',
  12. 'similarity-indexing',
  13. 'similarity-view',
  14. 'data-forwarding',
  15. ],
  16. color: '#bf873f',
  17. isInternal: true,
  18. isPublic: false,
  19. dateCreated: '2019-03-09T06:52:19.832Z',
  20. id: '1',
  21. slug: 'internal',
  22. name: 'Internal',
  23. hasAccess: true,
  24. isBookmarked: false,
  25. platform: null,
  26. firstEvent: '2019-03-09T06:56:15Z',
  27. avatar: {avatarUuid: null, avatarType: 'letter_avatar'},
  28. isMember: true,
  29. },
  30. user: {
  31. username: 'billy@sentry.io',
  32. lastLogin: '2019-04-23T00:10:19.787Z',
  33. isSuperuser: true,
  34. emails: [{is_verified: false, id: '1', email: 'billy@sentry.io'}],
  35. isManaged: false,
  36. lastActive: '2019-04-30T01:39:05.659Z',
  37. identities: [],
  38. id: '1',
  39. isActive: true,
  40. has2fa: false,
  41. name: 'billy@sentry.io',
  42. avatarUrl:
  43. 'https://secure.gravatar.com/avatar/7b544e8eb9d08ed777be5aa82121155a?s=32&d=mm',
  44. dateJoined: '2019-03-09T06:52:42.836Z',
  45. options: {
  46. timezone: 'America/Los_Angeles',
  47. stacktraceOrder: -1,
  48. language: 'en',
  49. clock24Hours: false,
  50. },
  51. flags: {newsletter_consent_prompt: false},
  52. avatar: {avatarUuid: null, avatarType: 'letter_avatar'},
  53. hasPasswordAuth: true,
  54. email: 'billy@sentry.io',
  55. },
  56. type: 'note',
  57. issue: {
  58. platform: 'javascript',
  59. lastSeen: '2019-04-26T16:34:12.288Z',
  60. numComments: 3,
  61. userCount: 1,
  62. culprit: '/organizations/:orgId/issues/:groupId/feedback/',
  63. title: 'Error: user efedback',
  64. id: '524',
  65. assignedTo: null,
  66. logger: null,
  67. type: 'error',
  68. annotations: [],
  69. metadata: {type: 'Error', value: 'user efedback', filename: '<anonymous>'},
  70. status: 'unresolved',
  71. subscriptionDetails: {reason: 'commented'},
  72. isPublic: false,
  73. hasSeen: true,
  74. shortId: 'INTERNAL-DW',
  75. shareId: null,
  76. firstSeen: '2019-04-26T16:34:12.288Z',
  77. count: '1',
  78. permalink: 'http://localhost:8000/organizations/sentry/issues/524/?project=1',
  79. level: 'error',
  80. isSubscribed: true,
  81. isBookmarked: false,
  82. project: {platform: null, slug: 'internal', id: '1', name: 'Internal'},
  83. statusDetails: {},
  84. },
  85. id: '48',
  86. ...params,
  87. };
  88. }