group.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import {Project} from './project';
  2. export function Group(params = {}) {
  3. const project = Project();
  4. return {
  5. activity: [],
  6. annotations: [],
  7. assignedTo: null,
  8. count: '327482',
  9. culprit: 'fetchData(app/components/group/suggestedOwners/suggestedOwners)',
  10. firstRelease: null,
  11. firstSeen: '2019-04-05T19:44:05.963Z',
  12. hasSeen: false,
  13. id: '1',
  14. isBookmarked: false,
  15. isPublic: false,
  16. isSubscribed: false,
  17. lastRelease: null,
  18. lastSeen: '2019-04-11T01:08:59Z',
  19. level: 'warning',
  20. logger: null,
  21. metadata: {function: 'fetchData', type: 'RequestError'},
  22. numComments: 0,
  23. participants: [],
  24. permalink: 'https://foo.io/organizations/foo/issues/1234/',
  25. platform: 'javascript',
  26. pluginActions: [],
  27. pluginContexts: [],
  28. pluginIssues: [],
  29. project: {
  30. platform: 'javascript',
  31. id: project.id,
  32. slug: project.slug,
  33. },
  34. seenBy: [],
  35. shareId: null,
  36. shortId: 'JAVASCRIPT-6QS',
  37. stats: {
  38. '24h': [
  39. [1517281200, 2],
  40. [1517310000, 1],
  41. ],
  42. '30d': [
  43. [1514764800, 1],
  44. [1515024000, 122],
  45. ],
  46. },
  47. status: 'unresolved',
  48. statusDetails: {},
  49. subscriptionDetails: null,
  50. // ex tag: {key: 'browser', name: 'Browser', totalValues: 1}
  51. tags: [],
  52. title: 'RequestError: GET /issues/ 404',
  53. type: 'error',
  54. userCount: 35097,
  55. userReportCount: 0,
  56. ...params,
  57. };
  58. }