-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error correlator and troubleshoot webview #3243
Conversation
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
…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]>
This reverts commit 53e9518. Signed-off-by: Trae Yelovich <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM! 😋
left a small question/suggestion, but feel free to ignore if it doesn't make much sense 😋
@@ -83,6 +83,7 @@ export class AuthUtils { | |||
const correlation = ErrorCorrelator.getInstance().correlateError(moreInfo?.apiType ?? ZoweExplorerApiType.All, errorDetails, { | |||
profileType: profile?.type, | |||
...Object.keys(moreInfo).reduce((all, k) => (typeof moreInfo[k] === "string" ? { ...all, [k]: moreInfo[k] } : all), {}), | |||
templateArgs: { ...(moreInfo.templateArgs ?? {}), profileName: profile?.name ?? "" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, dumb question...
if a profile name is provided in the templateArgs and profile == null
, aren't we overwriting the profile name with ""
Also, we should be able to spread the templateArgs without the need for a ?? {}
check 😋
templateArgs: { ...(moreInfo.templateArgs ?? {}), profileName: profile?.name ?? "" }, | |
templateArgs: profile ? { ...moreInfo.templateArgs, profileName: profile.name } : { ...moreInfo.templateArgs }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have access to the profile at the time of the errorHandling
call, it should be passed into moreInfo
as the profile
property. The template args are essentially key/value pairs of strings and are passed right into Handlebars. Your suggestion highlighted that changing the spread to come after profileName
would prevent this overwrite. I'll introduce that change.
I think it would be cleaner and less error-prone to use optional chaining to spread the template args, so I'll update that.
Signed-off-by: Trae Yelovich <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @traeok! Left a few questions
Signed-off-by: Billie Simmons <[email protected]>
Signed-off-by: Trae Yelovich <[email protected]>
Hi all, sorry for the confusion but unfortunately the error in #3289 will not be resolved with this work. Once this is resolved, the "Try again" button in the editor will work as it will use the updated creds. We should not prompt here as extenders will use I can address the prompt bugs in a separate PR since this one already has a bunch of commits/feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @traeok!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: Trae Yelovich <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still LGTM! 😋
Proposed changes
If a correlation is found:
After clicking more info:
If a correlation is not found:
If "Troubleshoot" is clicked in the dialogs:
Click to reveal troubleshoot screenshot
Release Notes
Milestone: 3.1.0
Changelog:
ZE:
ZE API:
Types of changes
Checklist
General
yarn workspace vscode-extension-for-zowe vscode:prepublish
pnpm --filter vscode-extension-for-zowe vscode:prepublish
Code coverage
Deployment
](https://github.com/user-attachments/assets/1fab54b3-d641-465a-a5de-ac0b15563739)