Redirect UISI autorageshakes to separate repo and add more labels for filtering (#7598)
This adds a new key `uisi_autorageshake_app` to config.json, holding an optional custom app name for UISI autorageshakes so that the rageshake server can file them separately from user-submitted rageshakes.
This commit is contained in:
parent
2f209c4346
commit
31e6b942f2
3 changed files with 13 additions and 8 deletions
|
@ -28,10 +28,11 @@ import SettingsStore from "../settings/SettingsStore";
|
|||
import SdkConfig from "../SdkConfig";
|
||||
|
||||
interface IOpts {
|
||||
label?: string;
|
||||
labels?: string[];
|
||||
userText?: string;
|
||||
sendLogs?: boolean;
|
||||
progressCallback?: (s: string) => void;
|
||||
customApp?: string;
|
||||
customFields?: Record<string, string>;
|
||||
}
|
||||
|
||||
|
@ -67,7 +68,7 @@ async function collectBugReport(opts: IOpts = {}, gzipLogs = true) {
|
|||
|
||||
const body = new FormData();
|
||||
body.append('text', opts.userText || "User did not supply any additional text.");
|
||||
body.append('app', 'element-web');
|
||||
body.append('app', opts.customApp || 'element-web');
|
||||
body.append('version', version);
|
||||
body.append('user_agent', userAgent);
|
||||
body.append('installed_pwa', installedPWA);
|
||||
|
@ -120,8 +121,10 @@ async function collectBugReport(opts: IOpts = {}, gzipLogs = true) {
|
|||
}
|
||||
}
|
||||
|
||||
if (opts.label) {
|
||||
body.append('label', opts.label);
|
||||
if (opts.labels) {
|
||||
for (const label of opts.labels) {
|
||||
body.append('label', label);
|
||||
}
|
||||
}
|
||||
|
||||
// add labs options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue