-
Notifications
You must be signed in to change notification settings - Fork 62
refactor: refactor copybook download #2295
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
refactor: refactor copybook download #2295
Conversation
44fcae7
to
07f10d0
Compare
07f10d0
to
7652b58
Compare
7652b58
to
fbf99b4
Compare
clients/cobol-lsp-vscode-extension/src/services/copybook/CopybookDownloadService.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/util/ProfileUtils.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/ZoweExplorerDownloader.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/CopybookDownloader.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/DownloadStrategyResolver.ts
Outdated
Show resolved
Hide resolved
} | ||
|
||
protected handleError(e: any, profileName: string) { | ||
if (this.isInvalidCredentials(e)) { |
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.
Given the async nature of the caller, I don't think this really solves the account lock-out in the scenario of many concurrent requests like after re-opening a workspace.
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.
I still need to figure this out. will change this in next commit
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.
updated at 6f18d26
Concurrency level is reduced but the issue remains
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/CopybookDownloaderForDsn.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/CopybookDownloaderForUss.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/DownloadStrategyResolver.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/DownloadUtil.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/CopybookDownloadService.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/CopybookDownloadService.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/CopybookDownloadService.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/CopybookDownloader.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/CopybookDownloaderForDsn.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/ZoweExplorerDownloader.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/DownloadStrategyResolver.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/util/ProfileUtils.ts
Outdated
Show resolved
Hide resolved
63a5506
to
772f6c4
Compare
cd9304a
to
6f18d26
Compare
clients/cobol-lsp-vscode-extension/src/__tests__/commands/FetchCopybookCommandTest.spec.ts
Outdated
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/CopybookDownloaderForUss.ts
Show resolved
Hide resolved
clients/cobol-lsp-vscode-extension/src/__tests__/commands/FetchCopybookCommandTest.spec.ts
Outdated
Show resolved
Hide resolved
...bol-lsp-vscode-extension/src/__tests__/services/copybook/CopybookDownloadServiceTest.spec.ts
Outdated
Show resolved
Hide resolved
fd76850
to
4e83626
Compare
what is |
|
||
try { | ||
const profile = this.loadProfile(profileName, explorerAPI); | ||
await explorerAPI.getUssApi(profile).fileList("/"); |
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.
Does zowe API require the use to have access to USS? Is it possible to list/download datasets via zowe without the user having OMVS profile?
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.
I am under the impression that the profiles are same and shared across MVS and USS. Added a random USS call to check for the credentials validity.
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.
for the record: this is about OMVS segment in the user profile defined in the mainframe security product.
clients/cobol-lsp-vscode-extension/src/services/copybook/downloader/ZoweExplorerDownloader.ts
Outdated
Show resolved
Hide resolved
4e83626
to
ef76609
Compare
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.
pending testing.
Signed-off-by: Aman Prashant <[email protected]>
Signed-off-by: Aman Prashant <[email protected]>
ef76609
to
233b635
Compare
clients/cobol-lsp-vscode-extension/src/services/copybook/CopybookDownloadService.ts
Outdated
Show resolved
Hide resolved
…ookDownloadService.ts Co-authored-by: slavek-kucera <[email protected]>
* refactor: refactor copybook download Signed-off-by: Aman Prashant <[email protected]> Co-authored-by: slavek-kucera <[email protected]>
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: