@intuitionrobotics/bug-report 0.40.23 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/app-backend/api/v1/bug-reports/reports.js +1 -2
  2. package/app-backend/api/v1/bug-reports/reports.js.map +1 -1
  3. package/app-backend/core/module-pack.d.ts +1 -1
  4. package/app-backend/core/module-pack.js +5 -1
  5. package/app-backend/core/module-pack.js.map +1 -1
  6. package/app-backend/modules/AdminBRModule.d.ts +1 -2
  7. package/app-backend/modules/BugReportModule.d.ts +1 -1
  8. package/app-backend/modules/BugReportModule.js +9 -10
  9. package/app-backend/modules/BugReportModule.js.map +1 -1
  10. package/app-backend/modules/JiraBugReportIntegrator.d.ts +2 -2
  11. package/app-backend/modules/JiraBugReportIntegrator.js +4 -1
  12. package/app-backend/modules/JiraBugReportIntegrator.js.map +1 -1
  13. package/app-backend/modules/SlackBugReportIntegrator.d.ts +11 -0
  14. package/app-backend/modules/SlackBugReportIntegrator.js +109 -0
  15. package/app-backend/modules/SlackBugReportIntegrator.js.map +1 -0
  16. package/app-frontend/modules/BugReportModule.d.ts +1 -1
  17. package/app-frontend/modules/BugReportModule.js +8 -6
  18. package/app-frontend/modules/BugReportModule.js.map +1 -1
  19. package/app-frontend/ui/BugReport.js +3 -2
  20. package/app-frontend/ui/BugReport.js.map +1 -1
  21. package/app-frontend/ui/{Dialog_Success.d.ts → Dialog_JiraOpened.d.ts} +1 -1
  22. package/app-frontend/ui/{Dialog_Success.js → Dialog_JiraOpened.js} +10 -10
  23. package/app-frontend/ui/Dialog_JiraOpened.js.map +1 -0
  24. package/backend.d.ts +2 -0
  25. package/backend.js +2 -0
  26. package/backend.js.map +1 -1
  27. package/package.json +17 -16
  28. package/shared/api.d.ts +3 -1
  29. package/shared/api.js +3 -0
  30. package/shared/api.js.map +1 -1
  31. package/app-frontend/ui/Dialog_Success.js.map +0 -1
@@ -84,8 +84,7 @@ var ServerApi_SendReport = /** @class */ (function (_super) {
84
84
  case 0: return [4 /*yield*/, backend_1.dispatch_queryRequestInfo.dispatchModuleAsync([request])];
85
85
  case 1:
86
86
  resp = _d.sent();
87
- userId = ((_b = (_a = resp.find(function (e) { return e.key === 'AccountsModule'; })) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.email) || ((_c = resp.find(function (e) { return e.key === 'RemoteProxy'; })) === null || _c === void 0 ? void 0 : _c.data.email);
88
- console.log('this is the email: ', userId);
87
+ userId = ((_b = (_a = resp.find(function (e) { return e.key === 'AccountsModule'; })) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.email) || ((_c = resp.find(function (e) { return e.key === 'RemoteProxy'; })) === null || _c === void 0 ? void 0 : _c.data);
89
88
  return [4 /*yield*/, _imports_1.BugReportModule.saveFile(body, userId)];
90
89
  case 2: return [2 /*return*/, _d.sent()];
91
90
  }
@@ -1 +1 @@
1
- {"version":3,"file":"reports.js","sourceRoot":"","sources":["../../../../../src/main/app-backend/api/v1/bug-reports/reports.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,mEAKiD;AACjD,uCAIoB;AAEpB,yEAAyE;AAEzE;IACS,wCAA4B;IAEpC;eACC,kBAAM,QAAQ,CAAC;IAChB,CAAC;IAEe,sCAAO,GAAvB,UAAwB,OAAuB,EAAE,QAAqB,EAAE,WAAe,EAAE,IAAuB;;;;;;4BAClG,qBAAM,mCAAyB,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,CAAC,EAAA;;wBAArE,IAAI,GAAG,SAA8D;wBACrE,MAAM,GAAuB,aAAA,IAAI,CAAC,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,GAAG,KAAK,gBAAgB,EAA1B,CAA0B,CAAC,0CAAE,IAAI,0CAAE,KAAK,YAAI,IAAI,CAA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AA;4BAAnD,sBAAO,SAA4C,EAAC;;;;KACpD;IACF,2BAAC;AAAD,CAAC,AAbD,CACS,wBAAc,GAYtB;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,oBAAoB,EAAE,CAAC"}
@@ -1 +1 @@
1
- export declare const Backend_ModulePack_BugReport: (import("../modules/BugReportModule").BugReportModule_Class | import("../modules/AdminBRModule").AdminBRModule_Class | import("@intuitionrobotics/jira").JiraModule_Class | import("../modules/JiraBugReportIntegrator").JiraBugReportIntegrator_Class)[];
1
+ export declare const Backend_ModulePack_BugReport: (import("../modules/BugReportModule").BugReportModule_Class | import("../modules/AdminBRModule").AdminBRModule_Class | import("@intuitionrobotics/jira").JiraModule_Class | import("../modules/JiraBugReportIntegrator").JiraBugReportIntegrator_Class | import("@intuitionrobotics/storm/slack").SlackModule_Class | import("../modules/SlackBugReportIntegrator").SlackBugReportIntegrator_Class)[];
@@ -23,10 +23,14 @@ var BugReportModule_1 = require("../modules/BugReportModule");
23
23
  var AdminBRModule_1 = require("../modules/AdminBRModule");
24
24
  var JiraBugReportIntegrator_1 = require("../modules/JiraBugReportIntegrator");
25
25
  var jira_1 = require("@intuitionrobotics/jira");
26
+ var SlackBugReportIntegrator_1 = require("../modules/SlackBugReportIntegrator");
27
+ var slack_1 = require("@intuitionrobotics/storm/slack");
26
28
  exports.Backend_ModulePack_BugReport = [
27
29
  BugReportModule_1.BugReportModule,
28
30
  AdminBRModule_1.AdminBRModule,
29
31
  JiraBugReportIntegrator_1.JiraBugReportIntegrator,
30
- jira_1.JiraModule
32
+ jira_1.JiraModule,
33
+ SlackBugReportIntegrator_1.SlackBugReportIntegrator,
34
+ slack_1.SlackModule
31
35
  ];
32
36
  //# sourceMappingURL=module-pack.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-pack.js","sourceRoot":"","sources":["../../../src/main/app-backend/core/module-pack.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,8DAA2D;AAC3D,0DAAuD;AACvD,8EAA2E;AAC3E,gDAAmD;AAEtC,QAAA,4BAA4B,GAAG;IAC3C,iCAAe;IACf,6BAAa;IACb,iDAAuB;IACvB,iBAAU;CACV,CAAC"}
1
+ {"version":3,"file":"module-pack.js","sourceRoot":"","sources":["../../../src/main/app-backend/core/module-pack.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,8DAA2D;AAC3D,0DAAuD;AACvD,8EAA2E;AAC3E,gDAAmD;AACnD,gFAA6E;AAC7E,wDAA2D;AAG9C,QAAA,4BAA4B,GAAG;IAC3C,iCAAe;IACf,6BAAa;IACb,iDAAuB;IACvB,iBAAU;IACV,mDAAwB;IACxB,mBAAW;CACX,CAAC"}
@@ -1,12 +1,11 @@
1
1
  import { Module } from "@intuitionrobotics/ts-common";
2
2
  import { DB_BugReport, Paths } from "../../shared/api";
3
- import { FirestoreCollection } from "@intuitionrobotics/firebase/backend";
4
3
  declare type Config = {
5
4
  projectId: string;
6
5
  bucket?: string;
7
6
  };
8
7
  export declare class AdminBRModule_Class extends Module<Config> {
9
- bugReport: FirestoreCollection<DB_BugReport>;
8
+ private bugReport;
10
9
  private storage;
11
10
  protected init(): void;
12
11
  getFilesFirebase: () => Promise<DB_BugReport[]>;
@@ -8,7 +8,7 @@ declare type Config = {
8
8
  projectId?: string;
9
9
  bucket?: string;
10
10
  };
11
- declare type TicketCreatorApi = (bugReport: Request_BugReport, logs: ReportLogFile[], email?: string) => Promise<TicketDetails>;
11
+ declare type TicketCreatorApi = (bugReport: Request_BugReport, logs: ReportLogFile[], email?: string) => Promise<TicketDetails | undefined>;
12
12
  export declare class BugReportModule_Class extends Module<Config> {
13
13
  private bugReport;
14
14
  private storage;
@@ -105,16 +105,16 @@ var BugReportModule_Class = /** @class */ (function (_super) {
105
105
  });
106
106
  }); };
107
107
  _this.saveFile = function (bugReport, email) { return __awaiter(_this, void 0, void 0, function () {
108
- var _id, logs, instance, _a;
108
+ var _id, logs, instance, tickets;
109
109
  var _this = this;
110
- var _b;
111
- return __generator(this, function (_c) {
112
- switch (_c.label) {
110
+ var _a;
111
+ return __generator(this, function (_b) {
112
+ switch (_b.label) {
113
113
  case 0:
114
114
  _id = ts_common_1.generateHex(16);
115
115
  return [4 /*yield*/, Promise.all(bugReport.reports.map(function (report) { return _this.saveLog(report, _id); }))];
116
116
  case 1:
117
- logs = _c.sent();
117
+ logs = _b.sent();
118
118
  instance = {
119
119
  _id: _id,
120
120
  subject: bugReport.subject,
@@ -122,16 +122,15 @@ var BugReportModule_Class = /** @class */ (function (_super) {
122
122
  reports: logs,
123
123
  _audit: ts_common_1.auditBy(email || "bug-report"),
124
124
  };
125
- if ((_b = this.config) === null || _b === void 0 ? void 0 : _b.bucket)
125
+ if ((_a = this.config) === null || _a === void 0 ? void 0 : _a.bucket)
126
126
  instance.bucket = this.config.bucket;
127
- console.log('configs in BR: ', this.config);
128
- _a = instance;
129
127
  return [4 /*yield*/, Promise.all(this.ticketCreatorApis.map(function (api) { return api(bugReport, logs, email); }))];
130
128
  case 2:
131
- _a.tickets = _c.sent();
129
+ tickets = _b.sent();
130
+ instance.tickets = ts_common_1.filterInstances(tickets);
132
131
  return [4 /*yield*/, this.bugReport.insert(instance)];
133
132
  case 3:
134
- _c.sent();
133
+ _b.sent();
135
134
  return [2 /*return*/, instance.tickets];
136
135
  }
137
136
  });
@@ -1 +1 @@
1
- {"version":3,"file":"BugReportModule.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/BugReportModule.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0DAOsC;AAEtC,+DAI6C;AAS7C,6BAA+B;AAY/B;IACS,yCAAc;IADvB;QAAA,qEAuDC;QAlDQ,uBAAiB,GAAuB,EAAE,CAAC;QAanD,aAAO,GAAG,UAAO,MAAiB,EAAE,EAAU;;;;;;wBACvC,GAAG,GAAG,I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,CAAC,kBAAkB,EAAE,CAAC;QACzD,IAAM,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;QAC9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,aAAa,CAAe,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9E,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC;IAC1C,CAAC;IAED,gDAAgB,GAAhB,UAAiB,aAA+B;QAC/C,0BAAc,CAAC,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IACvD,CAAC;IAuCF,4BAAC;AAAD,CAAC,AAvDD,CACS,kBAAM,GAsDd;AAvDY,sDAAqB;AAyDrB,QAAA,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Module } from "@intuitionrobotics/ts-common";
2
- import { JiraProject, IssueType, LabelType } from "@intuitionrobotics/jira";
2
+ import { IssueType, JiraProject, LabelType } from "@intuitionrobotics/jira";
3
3
  import { ReportLogFile, Request_BugReport } from "../..";
4
4
  import { TicketDetails } from "./BugReportModule";
5
5
  declare type Config = {
@@ -10,7 +10,7 @@ declare type Config = {
10
10
  export declare class JiraBugReportIntegrator_Class extends Module<Config> {
11
11
  setIssueTitleProcessor(parser: (name: string) => string): void;
12
12
  private parser;
13
- openTicket: (bugReport: Request_BugReport, logs: ReportLogFile[], reporter?: string | undefined) => Promise<TicketDetails>;
13
+ openTicket: (bugReport: Request_BugReport, logs: ReportLogFile[], reporter?: string | undefined) => Promise<TicketDetails | undefined>;
14
14
  }
15
15
  export declare const JiraBugReportIntegrator: JiraBugReportIntegrator_Class;
16
16
  export {};
@@ -70,6 +70,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
70
70
  exports.JiraBugReportIntegrator = exports.JiraBugReportIntegrator_Class = void 0;
71
71
  var ts_common_1 = require("@intuitionrobotics/ts-common");
72
72
  var jira_1 = require("@intuitionrobotics/jira");
73
+ var __1 = require("../..");
73
74
  var JiraBugReportIntegrator_Class = /** @class */ (function (_super) {
74
75
  __extends(JiraBugReportIntegrator_Class, _super);
75
76
  function JiraBugReportIntegrator_Class() {
@@ -80,6 +81,8 @@ var JiraBugReportIntegrator_Class = /** @class */ (function (_super) {
80
81
  return __generator(this, function (_a) {
81
82
  switch (_a.label) {
82
83
  case 0:
84
+ if (bugReport.platforms && !bugReport.platforms.includes(__1.Platform_Jira))
85
+ return [2 /*return*/];
83
86
  if (!this.config.jiraProject)
84
87
  throw new ts_common_1.ImplementationMissingException("missing Jira project in bug report configurations");
85
88
  description = logs.reduce(function (carry, log, i) {
@@ -91,7 +94,7 @@ var JiraBugReportIntegrator_Class = /** @class */ (function (_super) {
91
94
  return [4 /*yield*/, jira_1.JiraModule.issue.create(this.config.jiraProject, this.config.issueType, this.parser(bugReport.subject), description, this.config.label.label)];
92
95
  case 1:
93
96
  issue = _a.sent();
94
- return [2 /*return*/, { platform: "jira", issueId: issue.url }];
97
+ return [2 /*return*/, { platform: __1.Platform_Jira, issueId: issue.url }];
95
98
  }
96
99
  });
97
100
  }); };
@@ -1 +1 @@
1
- {"version":3,"file":"JiraBugReportIntegrator.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/JiraBugReportIntegrator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0DAGsC;AACtC,gDAMiC;AAajC;IACS,iDAAc;IADvB;QAAA,qEAwBC;QAjBQ,YAAM,GAAG,UAAC,IAAY,IAAK,OAAA,UAAQ,IAAM,EAAd,CAAc,CAAC;QAElD,gBAAU,GAAG,UAAO,SAA4B,EAAE,IAAqB,EAAE,QAAiB;;;;;wBACzF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW;4BAC3B,MAAM,IAAI,0CAA8B,CAAC,mDAAmD,CAAC,CAAC;wBAEzF,WAAW,GAAG,IAAI,CA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AuBF,oCAAC;AAAD,CAAC,AA5BD,CACS,kBAAM,GA2Bd;AA5BY,sEAA6B;AA8B7B,QAAA,uBAAuB,GAAG,IAAI,6BAA6B,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { Module } from "@intuitionrobotics/ts-common";
2
+ import { ReportLogFile, Request_BugReport } from "../..";
3
+ import { TicketDetails } from "./BugReportModule";
4
+ declare type Config = {
5
+ channel: string;
6
+ };
7
+ export declare class SlackBugReportIntegrator_Class extends Module<Config> {
8
+ openTicket: (bugReport: Request_BugReport, logs: ReportLogFile[], reporter?: string | undefined) => Promise<TicketDetails | undefined>;
9
+ }
10
+ export declare const SlackBugReportIntegrator: SlackBugReportIntegrator_Class;
11
+ export {};
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ /*
3
+ * Permissions management system, define access level for each of
4
+ * your server apis, and restrict users by giving them access levels
5
+ *
6
+ * Copyright (C) 2020 Intuition Robotics
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing, software
15
+ * distributed under the License is distributed on an "AS IS" BASIS,
16
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ * See the License for the specific language governing permissions and
18
+ * limitations under the License.
19
+ */
20
+ var __extends = (this && this.__extends) || (function () {
21
+ var extendStatics = function (d, b) {
22
+ extendStatics = Object.setPrototypeOf ||
23
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
24
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
25
+ return extendStatics(d, b);
26
+ };
27
+ return function (d, b) {
28
+ extendStatics(d, b);
29
+ function __() { this.constructor = d; }
30
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
31
+ };
32
+ })();
33
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
34
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
35
+ return new (P || (P = Promise))(function (resolve, reject) {
36
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
37
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
38
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
40
+ });
41
+ };
42
+ var __generator = (this && this.__generator) || function (thisArg, body) {
43
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
44
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
45
+ function verb(n) { return function (v) { return step([n, v]); }; }
46
+ function step(op) {
47
+ if (f) throw new TypeError("Generator is already executing.");
48
+ while (_) try {
49
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
50
+ if (y = 0, t) op = [op[0] & 2, t.value];
51
+ switch (op[0]) {
52
+ case 0: case 1: t = op; break;
53
+ case 4: _.label++; return { value: op[1], done: false };
54
+ case 5: _.label++; y = op[1]; op = [0]; continue;
55
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
56
+ default:
57
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
58
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
59
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
60
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
61
+ if (t[2]) _.ops.pop();
62
+ _.trys.pop(); continue;
63
+ }
64
+ op = body.call(thisArg, _);
65
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
66
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
67
+ }
68
+ };
69
+ Object.defineProperty(exports, "__esModule", { value: true });
70
+ exports.SlackBugReportIntegrator = exports.SlackBugReportIntegrator_Class = void 0;
71
+ var ts_common_1 = require("@intuitionrobotics/ts-common");
72
+ var __1 = require("../..");
73
+ var slack_1 = require("@intuitionrobotics/storm/slack");
74
+ var SlackBugReportIntegrator_Class = /** @class */ (function (_super) {
75
+ __extends(SlackBugReportIntegrator_Class, _super);
76
+ function SlackBugReportIntegrator_Class() {
77
+ var _this = _super !== null && _super.apply(this, arguments) || this;
78
+ _this.openTicket = function (bugReport, logs, reporter) { return __awaiter(_this, void 0, void 0, function () {
79
+ var description, slackMessage;
80
+ return __generator(this, function (_a) {
81
+ switch (_a.label) {
82
+ case 0:
83
+ if (bugReport.platforms && !bugReport.platforms.includes(__1.Platform_Slack))
84
+ return [2 /*return*/];
85
+ if (!this.config.channel)
86
+ throw new ts_common_1.ImplementationMissingException("Missing Slack Channel in bug report configurations");
87
+ description = logs.reduce(function (carry, log, i) {
88
+ return carry + "\n" + ("<" + log.path + "|Click to view logs (" + i + ")>");
89
+ }, bugReport.subject + "\n" + bugReport.description);
90
+ if (reporter)
91
+ description += "\nReported by: " + reporter;
92
+ slackMessage = {
93
+ text: description,
94
+ channel: this.config.channel
95
+ };
96
+ return [4 /*yield*/, slack_1.SlackModule.postMessage(slackMessage)];
97
+ case 1:
98
+ _a.sent();
99
+ return [2 /*return*/, { platform: __1.Platform_Slack, issueId: ts_common_1.generateHex(32) }];
100
+ }
101
+ });
102
+ }); };
103
+ return _this;
104
+ }
105
+ return SlackBugReportIntegrator_Class;
106
+ }(ts_common_1.Module));
107
+ exports.SlackBugReportIntegrator_Class = SlackBugReportIntegrator_Class;
108
+ exports.SlackBugReportIntegrator = new SlackBugReportIntegrator_Class();
109
+ //# sourceMappingURL=SlackBugReportIntegrator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlackBugReportIntegrator.js","sourceRoot":"","sources":["../../../src/main/app-backend/modules/SlackBugReportIntegrator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0DAIsC;AACtC,2BAIe;AAEf,wDAA2D;AAM3D;IACS,kDAAc;IADvB;QAAA,qEAwBC;QArBA,gBAAU,GAAG,UAAO,SAA4B,EAAE,IAAqB,EAAE,QAAiB;;;;;wBACzF,IAAG,SAAS,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,kBAAc,CAAC;4BACtE,sBAAO;wBAER,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO;4BACvB,MAAM,IAAI,0CAA8B,CAAC,oDAAoD,CAAC,CAAC;wBAE5F,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,UAAC,KAAa,EAAE,GAAkB,EAAE,CAAS;4BAC1E,OAAO,KAAK,GAAG,IAAI,IAAG,MAAI,GAAG,CAAC,IAAI,6BAAwB,CAAC,OAAI,CAAA,CAAC;wBACjE,CAAC,EAAE,SAAS,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,WAAW,CAAC,CAAC;wBAErD,IAAI,QAAQ;4BACX,WAAW,IAAI,iBAAiB,GAAG,QAAQ,CAAC;wBAEvC,YAAY,GAAG;4BACpB,IAAI,EAAE,WAAW;4BACjB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO;yBAC5B,CAAC;wBACF,qBAAM,mBAAW,CAAC,WAAW,CAAC,YAAY,CAAC,EAAA;;wBAA3C,SAA2C,CAAA;wBAC3C,sBAAO,EAAC,QAAQ,EAAE,kBAAc,EAAE,OAAO,EAAE,uBAAW,CAAC,EAAE,CAAC,EAAC,EAAC;;;aAC5D,CAAC;;IACH,CAAC;IAAD,qCAAC;AAAD,CAAC,AAxBD,CACS,kBAAM,GAuBd;AAxBY,wEAA8B;AA0B9B,QAAA,wBAAwB,GAAG,IAAI,8BAA8B,EAAE,CAAC"}
@@ -4,6 +4,6 @@ export declare class BugReportModule_Class extends Module {
4
4
  private readonly reports;
5
5
  constructor();
6
6
  protected init(): void;
7
- sendBugReport: (subject: string, description: string) => void;
7
+ sendBugReport: (subject: string, description: string, platforms?: string[] | undefined) => void;
8
8
  }
9
9
  export declare const BugReportModule: BugReportModule_Class;
@@ -35,28 +35,30 @@ exports.BugReportModule = exports.BugReportModule_Class = exports.RequestKey_Bug
35
35
  var ts_common_1 = require("@intuitionrobotics/ts-common");
36
36
  var frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
37
37
  var thunderstorm_1 = require("@intuitionrobotics/thunderstorm");
38
- var Dialog_Success_1 = require("../ui/Dialog_Success");
38
+ var api_1 = require("../../shared/api");
39
+ var Dialog_JiraOpened_1 = require("../ui/Dialog_JiraOpened");
39
40
  exports.RequestKey_BugReportApi = "BugReport";
40
41
  var BugReportModule_Class = /** @class */ (function (_super) {
41
42
  __extends(BugReportModule_Class, _super);
42
43
  function BugReportModule_Class() {
43
44
  var _this = _super.call(this) || this;
44
45
  _this.reports = [];
45
- _this.sendBugReport = function (subject, description) {
46
+ _this.sendBugReport = function (subject, description, platforms) {
46
47
  var body = {
47
48
  subject: subject,
48
49
  description: description,
49
50
  reports: _this.reports.map(function (report) { return ({ log: report.buffers, name: report.name }); }),
50
- createTicket: true
51
+ platforms: platforms
51
52
  };
52
53
  frontend_1.XhrHttpModule
53
54
  .createRequest(thunderstorm_1.HttpMethod.POST, exports.RequestKey_BugReportApi)
54
55
  .setJsonBody(body)
55
56
  .setRelativeUrl("/v1/bug-reports/report")
56
- .setOnError("Error updating the report")
57
- .setOnSuccessMessage("Bug report sent!")
57
+ .setOnError(function () { return _this.logWarning("Error updating the report"); })
58
58
  .execute(function (response) {
59
- response.map(function (_url) { return Dialog_Success_1.Dialog_Success.show(_url.issueId); });
59
+ var jiraTicket = response.find(function (ticket) { return ticket.platform === api_1.Platform_Jira; });
60
+ if (jiraTicket)
61
+ Dialog_JiraOpened_1.Dialog_JiraOpened.show(jiraTicket.issueId);
60
62
  });
61
63
  };
62
64
  ts_common_1.addItemToArray(_this.reports, new ts_common_1.LogClient_MemBuffer("default"));
@@ -1 +1 @@
1
- {"version":3,"file":"BugReportModule.js","sourceRoot":"","sources":["../../../src/main/app-frontend/modules/BugReportModule.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,0DAOsC;AACtC,qEAAuE;AACvE,gEAA2D;AAK3D,uDAAoD;AAEvC,QAAA,uBAAuB,GAAG,WAAW,CAAC;AAEnD;IACS,yCAAM;IAId;QAAA,YACC,iBAAO,SAIP;QAPgB,aAAO,GAA0B,EAAE,CAAC;QAarD,mBAAa,GAAG,UAAC,OAAe,EAAE,WAAmB;YACpD,IAAM,IAAI,GAAsB;gBAC/B,OAAO,SAAA;gBACP,WAAW,aAAA;gBACX,OAAO,EAAE,KAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,CAAC,EAAC,GAAG,EAAE,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAC,CAAC,EAA1C,CAA0C,CAAC;gBAC/E,YAAY,EAAE,IAAI;aAClB,CAAC;YAEF,wBAAa;iBACX,aAAa,CAAe,yBAAU,CAAC,IAAI,EAAE,+BAAuB,CAAC;iBACrE,WAAW,CAAC,IAAI,CAAC;iBACjB,cAAc,CAAC,wBAAwB,CAAC;iBACxC,UAAU,CAAC,2BAA2B,CAAC;iBACvC,mBAAmB,CAAC,kBAAkB,CAAC;iBACvC,OAAO,CAAC,UAAC,QAAQ;gBACjB,QAAQ,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,+BAAc,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO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kCd;AAnCY,sDAAqB;AAqCrB,QAAA,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC"}
@@ -36,6 +36,7 @@ var React = require("react");
36
36
  var BugReportModule_1 = require("../modules/BugReportModule");
37
37
  var frontend_1 = require("@intuitionrobotics/thunderstorm/frontend");
38
38
  var ts_common_1 = require("@intuitionrobotics/ts-common");
39
+ var api_1 = require("../../shared/api");
39
40
  var style = {
40
41
  cursor: "pointer",
41
42
  display: "flex",
@@ -62,7 +63,7 @@ var BugReport = /** @class */ (function (_super) {
62
63
  return frontend_1.ToastModule.toastError('you must first add a subject');
63
64
  if (!_this.state.description)
64
65
  return frontend_1.ToastModule.toastError('you must first add a description');
65
- BugReportModule_1.BugReportModule.sendBugReport(_this.state.subject, _this.state.description || '');
66
+ BugReportModule_1.BugReportModule.sendBugReport(_this.state.subject, _this.state.description || '', [api_1.Platform_Jira]);
66
67
  _this.setState({ subject: undefined, description: undefined });
67
68
  frontend_1.DialogModule.close();
68
69
  };
@@ -89,7 +90,7 @@ var BugReport = /** @class */ (function (_super) {
89
90
  return _this;
90
91
  }
91
92
  BugReport.prototype.componentDidCatch = function (error, errorInfo) {
92
- BugReportModule_1.BugReportModule.sendBugReport("Automatic submission", "these logs were triggered by a UI failure");
93
+ BugReportModule_1.BugReportModule.sendBugReport("Automatic submission", "these logs were triggered by a UI failure", [api_1.Platform_Slack]);
93
94
  this.setState({
94
95
  error: error,
95
96
  errorInfo: errorInfo
@@ -1 +1 @@
1
- {"version":3,"file":"BugReport.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/BugReport.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;AAEH,6BAA+B;AAC/B,8DAA2D;AAC3D,qEAQkD;AAClD,0DAAyD;AAKzD,IAAM,KAAK,GAAwB;IAClC,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAA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E,SAAS;SACpB,CAAC,CAAC;IAClB,CAAC;IAqDD,0BAAM,GAAN;QACC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;YACzB,OAAO,CACN;gBACC,wDAA8B;gBAC9B,iCAAS,KAAK,EAAE,EAAC,UAAU,EAAE,UAAU,EAAC;oBACtC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE;oBAChD,+BAAK;oBACJ,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,cAAc,CAC3B;gBACV,gCAAQ,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,cAAM,OAAA,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAxB,CAAwB,cAAkB,CAC1E,CACN,CAAC;SACF;QAED,OAAO,CACN;YACE,IAAI,CAAC,KAAK,CAAC,QAAQ;YACpB,6BACC,OAAO,EAAE,IAAI,CAAC,gCAAgC,IAC7C,IAAI,CAAC,KAAK,CAAC,SAAS;gBACrB,gCAAQ,KAAK,EAAE,KAAK,QAAY,CAC3B,CACJ,CACH,CAAC;IACH,CAAC;IACF,gBAAC;AAAD,CAAC,AA7FD,CACS,KAAK,CAAC,SAAS,GA4FvB;AA7FY,8BAAS;AA6FrB,CAAC"}
@@ -2,7 +2,7 @@ import { BaseComponent } from "@intuitionrobotics/thunderstorm/app-frontend/core
2
2
  declare type Props = {
3
3
  url: string;
4
4
  };
5
- export declare class Dialog_Success extends BaseComponent<Props, {}> {
5
+ export declare class Dialog_JiraOpened extends BaseComponent<Props, {}> {
6
6
  constructor(props: Props);
7
7
  static show(url: string): void;
8
8
  redirectToJira: () => void;
@@ -13,13 +13,13 @@ var __extends = (this && this.__extends) || (function () {
13
13
  };
14
14
  })();
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.Dialog_Success = void 0;
16
+ exports.Dialog_JiraOpened = void 0;
17
17
  var DialogModule_1 = require("@intuitionrobotics/thunderstorm/app-frontend/modules/dialog/DialogModule");
18
18
  var BaseComponent_1 = require("@intuitionrobotics/thunderstorm/app-frontend/core/BaseComponent");
19
19
  var React = require("react");
20
- var Dialog_Success = /** @class */ (function (_super) {
21
- __extends(Dialog_Success, _super);
22
- function Dialog_Success(props) {
20
+ var Dialog_JiraOpened = /** @class */ (function (_super) {
21
+ __extends(Dialog_JiraOpened, _super);
22
+ function Dialog_JiraOpened(props) {
23
23
  var _this = _super.call(this, props) || this;
24
24
  _this.redirectToJira = function () {
25
25
  if (_this.props.url)
@@ -27,12 +27,12 @@ var Dialog_Success = /** @class */ (function (_super) {
27
27
  };
28
28
  return _this;
29
29
  }
30
- Dialog_Success.show = function (url) {
31
- new DialogModule_1.Dialog_Builder(React.createElement(Dialog_Success, { url: url }))
30
+ Dialog_JiraOpened.show = function (url) {
31
+ new DialogModule_1.Dialog_Builder(React.createElement(Dialog_JiraOpened, { url: url }))
32
32
  .setAllowIndirectClosing(true)
33
33
  .show();
34
34
  };
35
- Dialog_Success.prototype.render = function () {
35
+ Dialog_JiraOpened.prototype.render = function () {
36
36
  var _this = this;
37
37
  return React.createElement("div", { className: 'll_v_s fill', style: { width: 344 } },
38
38
  React.createElement("div", { className: 'll_v_s', style: { flex: 1, position: 'relative' } },
@@ -51,7 +51,7 @@ var Dialog_Success = /** @class */ (function (_super) {
51
51
  right: '35%'
52
52
  }, onClick: function () { return _this.redirectToJira(); } }, "Take me to jira"))));
53
53
  };
54
- return Dialog_Success;
54
+ return Dialog_JiraOpened;
55
55
  }(BaseComponent_1.BaseComponent));
56
- exports.Dialog_Success = Dialog_Success;
57
- //# sourceMappingURL=Dialog_Success.js.map
56
+ exports.Dialog_JiraOpened = Dialog_JiraOpened;
57
+ //# sourceMappingURL=Dialog_JiraOpened.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog_JiraOpened.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/Dialog_JiraOpened.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;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AE;4BAChB,QAAQ,EAAE,MAAM;4BAChB,KAAK,EAAE,eAAe;4BACtB,QAAQ,EAAE,UAAU;4BACpB,KAAK,EAAE,KAAK;yBACZ,EACD,OAAO,EAAE,cAAM,OAAA,KAAI,CAAC,cAAc,EAAE,EAArB,CAAqB,sBAE/B,CACD,CACD,CACD,CAAC;IACR,CAAC;IACF,wBAAC;AAAD,CAAC,AA7CD,CACS,6BAAa,GA4CrB;AA7CY,8CAAiB"}
package/backend.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export * from "./app-backend/core/module-pack";
2
2
  export * from "./app-backend/modules/AdminBRModule";
3
3
  export * from "./app-backend/modules/BugReportModule";
4
+ export * from "./app-backend/modules/JiraBugReportIntegrator";
5
+ export * from "./app-backend/modules/SlackBugReportIntegrator";
package/backend.js CHANGED
@@ -31,4 +31,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
31
31
  __exportStar(require("./app-backend/core/module-pack"), exports);
32
32
  __exportStar(require("./app-backend/modules/AdminBRModule"), exports);
33
33
  __exportStar(require("./app-backend/modules/BugReportModule"), exports);
34
+ __exportStar(require("./app-backend/modules/JiraBugReportIntegrator"), exports);
35
+ __exportStar(require("./app-backend/modules/SlackBugReportIntegrator"), exports);
34
36
  //# sourceMappingURL=backend.js.map
package/backend.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"backend.js","sourceRoot":"","sources":["../src/main/backend.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,iEAA+C;AAE/C,sEAAoD;AACpD,wEAAsD"}
1
+ {"version":3,"file":"backend.js","sourceRoot":"","sources":["../src/main/backend.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;AAEH,iEAA+C;AAE/C,sEAAoD;AACpD,wEAAsD;AACtD,gFAA8D;AAC9D,iFAA+D"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@intuitionrobotics/bug-report",
3
- "version": "0.40.23",
3
+ "version": "0.41.0",
4
4
  "description": "Bug Report",
5
5
  "keywords": [
6
- "TacB0sS",
6
+ "IR",
7
7
  "express",
8
8
  "infra",
9
9
  "bug-report",
@@ -20,36 +20,37 @@
20
20
  "url": "git+ssh://git@github.com:intuition-robotics/bug-report.git"
21
21
  },
22
22
  "license": "Apache-2.0",
23
- "author": "TacB0sS",
24
- "main": "./dist/index.js",
25
- "types": "dist/index.d.ts",
23
+ "author": "IR",
24
+ "main": "./index.js",
25
+ "types": "./index.d.ts",
26
26
  "scripts": {
27
27
  "build": "tsc"
28
28
  },
29
29
  "dependencies": {
30
- "@intuitionrobotics/ts-common": "~0.40.0",
30
+ "@intuitionrobotics/ts-common": "~0.41.0",
31
+ "@intuitionrobotics/firebase": "~0.41.0",
32
+ "@intuitionrobotics/storm": "~0.41.0",
33
+ "@intuitionrobotics/testelot": "~0.41.0",
34
+ "@intuitionrobotics/thunderstorm": "~0.41.0",
35
+ "@intuitionrobotics/user-account": "~0.41.0",
36
+ "@intuitionrobotics/jira": "~0.41.0",
37
+ "express": "^4.16.4",
38
+ "firebase": "^9.6.1",
39
+ "firebase-admin": "^10.0.1",
31
40
  "jszip": "^3.3.0",
41
+ "request": "^2.88.0",
32
42
  "moment": "^2.24.0",
33
43
  "use-strict": "^1.0.1"
34
44
  },
35
45
  "devDependencies": {
36
- "@intuitionrobotics/firebase": "~0.40.0",
37
- "@intuitionrobotics/testelot": "~0.40.0",
38
- "@intuitionrobotics/thunderstorm": "~0.40.0",
39
- "@intuitionrobotics/user-account": "~0.40.0",
40
- "@intuitionrobotics/jira": "~0.40.0",
41
46
  "@types/express": "^4.16.1",
42
47
  "@types/file-saver": "^2.0.1",
43
48
  "@types/history": "^4.7.2",
44
49
  "@types/jszip": "^3.1.7",
45
50
  "@types/react": "^16.8.7",
46
51
  "@types/request": "^2.48.1",
47
- "express": "^4.16.4",
48
- "firebase": "^8.0.0",
49
- "firebase-admin": "^9.3.0",
50
52
  "module-alias": "^2.2.0",
51
- "react": "^16.8.1",
52
- "request": "^2.88.0",
53
+ "react": "^16.0.0",
53
54
  "ts-node": "^8.6.2",
54
55
  "tslint": "^5.16.0",
55
56
  "typescript": "~4.1.0"
package/shared/api.d.ts CHANGED
@@ -8,11 +8,13 @@ export declare type BugReport = {
8
8
  name: string;
9
9
  log: string[];
10
10
  };
11
+ export declare const Platform_Jira = "jira";
12
+ export declare const Platform_Slack = "slack";
11
13
  export declare type Request_BugReport = {
12
14
  subject: string;
13
15
  description: string;
14
16
  reports: BugReport[];
15
- createTicket: boolean;
17
+ platforms?: string[];
16
18
  };
17
19
  export declare type ReportMetaData = {
18
20
  description: string;
package/shared/api.js CHANGED
@@ -18,4 +18,7 @@
18
18
  * limitations under the License.
19
19
  */
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
+ exports.Platform_Slack = exports.Platform_Jira = void 0;
22
+ exports.Platform_Jira = "jira";
23
+ exports.Platform_Slack = "slack";
21
24
  //# sourceMappingURL=api.js.map
package/shared/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/main/shared/api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/main/shared/api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAkBU,QAAA,aAAa,GAAG,MAAM,CAAC;AACvB,QAAA,cAAc,GAAG,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Dialog_Success.js","sourceRoot":"","sources":["../../../src/main/app-frontend/ui/Dialog_Success.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yGAAwG;AACxG,iGAA8F;AAC9F,6BAA+B;AAO/B;IACS,kCAAwB;IAGhC,wBAAY,KAAW;QAAvB,YACC,kBAAM,KAAK,CAAC,SACZ;QAQD,oBAAc,GAAG;YAChB,IAAI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