Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Error correlator and troubleshoot webview (#3243)
* wip: ErrorCorrelator facility and work on error handling Signed-off-by: Trae Yelovich <[email protected]> * chore: add typedoc to ErrorCorrelation; details -> summary Signed-off-by: Trae Yelovich <[email protected]> * wip: Error prompts and webview PoC Signed-off-by: Trae Yelovich <[email protected]> * feat: Troubleshoot webview, move PersistentVSCodeAPI Signed-off-by: Trae Yelovich <[email protected]> * refactor: Move TipList into component file, troubleshoot format Signed-off-by: Trae Yelovich <[email protected]> * wip: set up test cases and rename function Signed-off-by: Trae Yelovich <[email protected]> * tests: impl ErrorCorrelator.displayError test cases Signed-off-by: Trae Yelovich <[email protected]> * tests: ErrorCorrelator.correlateError test cases Signed-off-by: Trae Yelovich <[email protected]> * wip: Add more error correlations; test data set error handling Signed-off-by: Trae Yelovich <[email protected]> * wip(ErrorCorrelator): collapsible error section, Copy Details btn Signed-off-by: Trae Yelovich <[email protected]> * copy details button, fix summary toggle state Signed-off-by: Trae Yelovich <[email protected]> * update copied content for copy details button Signed-off-by: Trae Yelovich <[email protected]> * feat: support template args in error summaries Signed-off-by: Trae Yelovich <[email protected]> * wip: update AuthUtils.errorHandling to use correlator Signed-off-by: Trae Yelovich <[email protected]> * wip: update AuthUtils.errorHandling signature and update calls Signed-off-by: Trae Yelovich <[email protected]> * pass template args from error context, add mvs error correlation Signed-off-by: Trae Yelovich <[email protected]> * wip: separate function to display correlation Signed-off-by: Trae Yelovich <[email protected]> * wip: add params to AuthUtils.errorHandling for correlator Signed-off-by: Trae Yelovich <[email protected]> * tests: Resolve failing test cases Signed-off-by: Trae Yelovich <[email protected]> * refactor: Use API type, then profile type for narrowing Signed-off-by: Trae Yelovich <[email protected]> * wip: Prompt for creds when opening DS Signed-off-by: Trae Yelovich <[email protected]> * fix(api): Fix profile references being lost when cache is refreshed (#3248) * fix(api): Fix profile references being lost when cache is refreshed Signed-off-by: Timothy Johnson <[email protected]> * fix: Pass profile instead of profile name for updating creds Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Timothy Johnson <[email protected]> Signed-off-by: Trae Yelovich <[email protected]> Co-authored-by: Trae Yelovich <[email protected]> * Revert "wip: Prompt for creds when opening DS" This reverts commit 53e9518. Signed-off-by: Trae Yelovich <[email protected]> * refactor: Add back error correlator changes Signed-off-by: Trae Yelovich <[email protected]> * refactor: fix tests to handle new format Signed-off-by: Trae Yelovich <[email protected]> * tests: TroubleshootError webview class Signed-off-by: Trae Yelovich <[email protected]> * refactor: rename TroubleshootError.setErrorData -> sendErrorData Signed-off-by: Trae Yelovich <[email protected]> * remaining TroubleshootError cases, add log for unknown cmd Signed-off-by: Trae Yelovich <[email protected]> * refactor: NetworkError -> CorrelatedError; cleanup class, fix type guard Signed-off-by: Trae Yelovich <[email protected]> * impl. correlator for FSP fns; update correlator tests Signed-off-by: Trae Yelovich <[email protected]> * tests: resolve failing test cases Signed-off-by: Trae Yelovich <[email protected]> * refactor: throw errs instead of return; update tests Signed-off-by: Trae Yelovich <[email protected]> * fix delete & stat error tests, run prepublish Signed-off-by: Trae Yelovich <[email protected]> * error handling cases for stat Signed-off-by: Trae Yelovich <[email protected]> * refactor _handleError, avoid use of await for errors Signed-off-by: Trae Yelovich <[email protected]> * wip: add coverage to DataSet FSP Signed-off-by: Trae Yelovich <[email protected]> * wip: more ds/uss test cases Signed-off-by: Trae Yelovich <[email protected]> * BaseProvider._handleError test cases Signed-off-by: Trae Yelovich <[email protected]> * jobs test cases for error handling Signed-off-by: Trae Yelovich <[email protected]> * chore: update changelogs Signed-off-by: Trae Yelovich <[email protected]> * expose error correlator in extender API Signed-off-by: Trae Yelovich <[email protected]> * chore: address changelog feedback Signed-off-by: Trae Yelovich <[email protected]> * fix circular dep Signed-off-by: Trae Yelovich <[email protected]> * allow extenders to contribute resources for errors Signed-off-by: Trae Yelovich <[email protected]> * handle errors when listing files in virtual workspaces Signed-off-by: Trae Yelovich <[email protected]> * remove check for handleError mock in listFiles test Signed-off-by: Trae Yelovich <[email protected]> * skip dialog if no correlation found, fix missing info in webview Signed-off-by: Trae Yelovich <[email protected]> * fix tests, update logic for returning selection Signed-off-by: Trae Yelovich <[email protected]> * offer show log opt in first dialog if correlation not found Signed-off-by: Trae Yelovich <[email protected]> * omit profile details from log, update failing tests Signed-off-by: Trae Yelovich <[email protected]> * restore changes to ZoweTreeNode Signed-off-by: Trae Yelovich <[email protected]> * move HandleErrorOpts to fs/types/abstract Signed-off-by: Trae Yelovich <[email protected]> * remove export from ErrorContext interface Signed-off-by: Trae Yelovich <[email protected]> * revert changes to ZoweTreeNode tests Signed-off-by: Trae Yelovich <[email protected]> * make IApiExplorerExtender.getErrorCorrelator optional Signed-off-by: Trae Yelovich <[email protected]> * update command count, run l10n prepublish Signed-off-by: Trae Yelovich <[email protected]> * address duplicate errors, pass profileName as template arg Signed-off-by: Trae Yelovich <[email protected]> * resolve failing tests from changes Signed-off-by: Trae Yelovich <[email protected]> * refactor: use optional chaining to spread templateArgs Signed-off-by: Trae Yelovich <[email protected]> * refactor: use dsName instead of path; rm handling in autoDetectEncoding Signed-off-by: Trae Yelovich <[email protected]> * run package Signed-off-by: Billie Simmons <[email protected]> * fix: propagate USS listFiles error Signed-off-by: Trae Yelovich <[email protected]> --------- Signed-off-by: Trae Yelovich <[email protected]> Signed-off-by: Timothy Johnson <[email protected]> Signed-off-by: Billie Simmons <[email protected]> Co-authored-by: Timothy Johnson <[email protected]> Co-authored-by: Billie Simmons <[email protected]> Co-authored-by: Billie Simmons <[email protected]>
- Loading branch information