groups.ts 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import {GroupFixture} from 'sentry-fixture/group';
  2. import {ProjectFixture} from 'sentry-fixture/project';
  3. import {GroupStatus} from 'sentry/types/group';
  4. export function GroupsFixture() {
  5. const project = ProjectFixture({name: 'Internal', slug: 'project-slug', id: '123'});
  6. return [
  7. GroupFixture({
  8. lastSeen: '2017-07-25T02:22:19Z',
  9. userCount: 1,
  10. culprit: 'Constructor.onSimilarUpdate(app/views/groupSimilar/groupingMergedList)',
  11. title: 'ReferenceError: unmergedList is not defined',
  12. id: '274',
  13. logger: 'javascript',
  14. metadata: {type: 'ReferenceError', value: 'unmergedList is not defined'},
  15. subscriptionDetails: null,
  16. shortId: 'INTERNAL-4K',
  17. shareId: '312e323734',
  18. firstSeen: '2017-07-25T02:21:52Z',
  19. count: '2',
  20. permalink: 'http://localhost:8000/sentry/project-slug/issues/274/',
  21. level: 'error',
  22. isSubscribed: true,
  23. project,
  24. }),
  25. GroupFixture({
  26. lastSeen: '2017-07-25T02:20:35Z',
  27. userCount: 1,
  28. culprit: 'size(app/views/groupSimilar/groupingMergedList)',
  29. title: "TypeError: Cannot read property 'size' of undefined",
  30. id: '275',
  31. logger: 'javascript',
  32. metadata: {type: 'TypeError', value: "Cannot read property 'size' of undefined"},
  33. subscriptionDetails: null,
  34. hasSeen: true,
  35. shortId: 'INTERNAL-4M',
  36. shareId: '312e323735',
  37. firstSeen: '2017-07-25T02:20:35Z',
  38. count: '1',
  39. permalink: 'http://localhost:8000/sentry/project-slug/issues/275/',
  40. level: 'error',
  41. isSubscribed: true,
  42. project,
  43. }),
  44. GroupFixture({
  45. lastSeen: '2017-07-24T23:41:44Z',
  46. userCount: 3,
  47. culprit: 'length(app/views/groupSimilar/groupSimilarView)',
  48. title: "TypeError: Cannot read property 'length' of undefined",
  49. id: '271',
  50. logger: 'javascript',
  51. metadata: {
  52. type: 'TypeError',
  53. value: "Cannot read property 'length' of undefined",
  54. },
  55. status: GroupStatus.RESOLVED,
  56. subscriptionDetails: null,
  57. shortId: 'INTERNAL-4G',
  58. shareId: '312e323731',
  59. firstSeen: '2017-07-10T18:32:43Z',
  60. count: '90',
  61. permalink: 'http://localhost:8000/sentry/project-slug/issues/271/',
  62. level: 'error',
  63. isSubscribed: true,
  64. project,
  65. }),
  66. GroupFixture({
  67. lastSeen: '2017-07-25T23:21:19Z',
  68. userCount: 1,
  69. culprit: 'stale(app/views/groupDetails)',
  70. title: "TypeError: Cannot read property 'stale' of undefined",
  71. id: '216',
  72. assignedTo: {
  73. id: '1',
  74. name: 'illy@sentry.io',
  75. type: 'user',
  76. email: 'billy@sentry.io',
  77. },
  78. logger: 'javascript',
  79. metadata: {type: 'TypeError', value: "Cannot read property 'stale' of undefined"},
  80. subscriptionDetails: {reason: 'changed_status'},
  81. hasSeen: true,
  82. shortId: 'INTERNAL-2S',
  83. shareId: '312e323136',
  84. firstSeen: '2017-07-25T02:20:35Z',
  85. count: '15',
  86. permalink: 'http://localhost:8000/sentry/project-slug/issues/216/',
  87. level: 'error',
  88. isSubscribed: true,
  89. project,
  90. }),
  91. ];
  92. }