group.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. issueCategory: 'error',
  18. issueType: 'error',
  19. lastRelease: null,
  20. lastSeen: '2019-04-11T01:08:59Z',
  21. level: 'warning',
  22. logger: null,
  23. metadata: {function: 'fetchData', type: 'RequestError'},
  24. numComments: 0,
  25. participants: [],
  26. permalink: 'https://foo.io/organizations/foo/issues/1234/',
  27. platform: 'javascript',
  28. pluginActions: [],
  29. pluginContexts: [],
  30. pluginIssues: [],
  31. project: {
  32. platform: 'javascript',
  33. id: project.id,
  34. slug: project.slug,
  35. },
  36. seenBy: [],
  37. shareId: null,
  38. shortId: 'JAVASCRIPT-6QS',
  39. stats: {
  40. '24h': [
  41. [1517281200, 2],
  42. [1517310000, 1],
  43. ],
  44. '30d': [
  45. [1514764800, 1],
  46. [1515024000, 122],
  47. ],
  48. },
  49. status: 'unresolved',
  50. statusDetails: {},
  51. subscriptionDetails: null,
  52. // ex tag: {key: 'browser', name: 'Browser', totalValues: 1}
  53. tags: [],
  54. title: 'RequestError: GET /issues/ 404',
  55. type: 'error',
  56. userCount: 35097,
  57. userReportCount: 0,
  58. ...params,
  59. };
  60. }