added /diagnostics page for installation / org list visibility#241
added /diagnostics page for installation / org list visibility#241MattG57 wants to merge 1 commit into
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
| timestamp: new Date().toISOString(), | ||
| appConnected: !!app.github.app, | ||
| totalInstallations: app.github.installations.length, | ||
| installations: [] as any[], |
Check failure
Code scanning / ESLint
Disallow the `any` type Error
| totalInstallations: app.github.installations.length, | ||
| installations: [] as any[], | ||
| errors: [] as string[], | ||
| appInfo: null as any, |
Check failure
Code scanning / ESLint
Disallow the `any` type Error
| suspendedAt: installation.suspended_at, | ||
| suspendedBy: installation.suspended_by, | ||
| hasOctokit: !!octokit, | ||
| octokitTest: null as any, |
Check failure
Code scanning / ESLint
Disallow the `any` type Error
| installationDiag.octokitTest = { | ||
| success: true, | ||
| appName: authTest.data?.name || 'Unknown', | ||
| appOwner: (authTest.data?.owner as any)?.login || 'Unknown', |
Check failure
Code scanning / ESLint
Disallow the `any` type Error
| diagnostics.appInfo = { | ||
| name: appInfo.data?.name || 'Unknown', | ||
| description: appInfo.data?.description || 'No description', | ||
| owner: (appInfo.data?.owner as any)?.login || 'Unknown', |
Check failure
Code scanning / ESLint
Disallow the `any` type Error
| }) | ||
| export class MainDiagnosticsComponent { | ||
| isLoading = false; | ||
| lastResult: any = null; |
Check failure
Code scanning / ESLint
Disallow the `any` type Error
| export class InstallationDiagnosticsDialogComponent { | ||
| constructor( | ||
| public dialogRef: MatDialogRef<InstallationDiagnosticsDialogComponent>, | ||
| @Inject(MAT_DIALOG_DATA) public data: any |
Check failure
Code scanning / ESLint
Disallow the `any` type Error
| } | ||
|
|
||
| validateInstallations() { | ||
| return this.http.get<any>(`${this.apiUrl}/validate-installations`); |
Check failure
Code scanning / ESLint
Disallow the `any` type Error
created Diagnostics page to confirm installation and account list details