Skip to content

chore: Apply Che GitHub authentication provider instead of built-in - #39

Merged
vinokurig merged 5 commits into
mainfrom
che-21206
Apr 13, 2022
Merged

vinokurig merged 5 commits into
mainfrom
che-21206

Conversation

@vinokurig

Copy link
Copy Markdown
Contributor
  • Remove the built-in github-authentication extention.
  • Add Che specific github-authentication extension.
    Signed-off-by: Igor Vinokur [email protected]

@benoitf

benoitf commented Apr 7, 2022

Copy link
Copy Markdown
Contributor

hello, is there a way to let the other plug-in in the source code but not enable it ?
like specifying it there:
https://github.com/che-incubator/che-code/blob/main/code/build/lib/extensions.ts#L235-L242 (+ counterpart in extensions.js)

I think it might break the automatic rebase to have it removed while if it's just excluded it's safer/easier to maintain.

@github-actions

github-actions Bot commented Apr 7, 2022

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-39-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-39-dev-amd64

@github-actions

github-actions Bot commented Apr 8, 2022

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-39-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-39-dev-amd64

1 similar comment
@github-actions

github-actions Bot commented Apr 8, 2022

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-39-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-39-dev-amd64

@vinokurig

Copy link
Copy Markdown
Contributor Author

@benoitf

hello, is there a way to let the other plug-in in the source code but not enable it ?
like specifying it there:
https://github.com/che-incubator/che-code/blob/main/code/build/lib/extensions.ts#L235-L242 (+ counterpart in extensions.js)

I think it might break the automatic rebase to have it removed while if it's just excluded it's safer/easier to maintain.

Excluding the original github-authentication extension in the code/build/lib/extensions files doesn't prevent the extension from start, moreover, an error appears:

Activating extension 'vscode.github-authentication' failed: Cannot find module '/Users/ivinokur/projects/tmp/che-code/code/extensions/github-authentication/out/extension.js' Require stack: - /Users/ivinokur/projects/tmp/che-code/code/out/vs/loader.js - /Users/ivinokur/projects/tmp/che-code/code/out/bootstrap-amd.js - /Users/ivinokur/projects/tmp/che-code/code/out/bootstrap-fork.js.

Is there another way to exclude the extension?

@benoitf

benoitf commented Apr 11, 2022

Copy link
Copy Markdown
Contributor

@vinokurig you may try there

private async _scanBuiltinExtensions(language: string): Promise<IExtensionDescription[]> {
const scannedExtensions = await this._extensionsScannerService.scanSystemExtensions({ language, useCache: true });
return scannedExtensions.map(e => toExtensionDescription(e, false));

https://github.com/che-incubator/che-code/blob/5c33cee7ef4ca81d85cac6a0642dd2822cb910ec/code/src/vs/workbench/services/extensionManagement/browser/builtinExtensionsScannerService.ts

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-39-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-39-dev-amd64

@vinokurig

Copy link
Copy Markdown
Contributor Author

@benoitf
Hello, I added some tests for the new extension and a filter of excluded extensions to the extensionsScannerService.ts
Could you please take a look?

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-39-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-39-dev-amd64

@benoitf

benoitf commented Apr 13, 2022

Copy link
Copy Markdown
Contributor

@vinokurig I don't see any changes to a file named extensionsScannerService in that PR ?

@vinokurig

Copy link
Copy Markdown
Contributor Author

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-39-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-39-dev-amd64

@vinokurig
vinokurig force-pushed the che-21206 branch 2 times, most recently from ca83401 to 07c4d9a Compare April 13, 2022 18:24
@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-39-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-39-dev-amd64

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-39-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-39-dev-amd64

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-39-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-39-dev-amd64

@benoitf

benoitf commented Apr 13, 2022

Copy link
Copy Markdown
Contributor

@vinokurig thanks !

you can probably enable auto-merge so once all tests are green it'll be auto-merged

@github-actions

Copy link
Copy Markdown
Contributor

Pull Request images published ✨
image: quay.io/che-incubator-pull-requests/che-code:pr-39-amd64
Dev image: quay.io/che-incubator-pull-requests/che-code-dev:pr-39-dev-amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants