Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Register GitHub Authentication provider for the vscode GitHub PR plugin #841

Merged
merged 4 commits into from
Oct 9, 2020

Conversation

vinokurig
Copy link
Contributor

@vinokurig vinokurig commented Aug 26, 2020

What does this PR do?

  • Register authentication provider via the authentication plugin API based on the Che GitHub oAuth, so the native command Github sign in from the PR plugin calls the registered provider.
  • Remove the temporary command that injects the GitHub token to the vscode PR plugin settings and ask to reload the browser page.
  • Update the GitHub Plugin API with getUser() function which returns GitHub user info.

depends on eclipse-che/che-plugin-registry#640

What issues does this PR fix or reference?

fixes eclipse-che/che#17684
depends on eclipse-theia/theia#8402

Release Notes

Docs PR

Happy Path Channel

HAPPY_PATH_CHANNEL=stable

@che-bot
Copy link
Contributor

che-bot commented Aug 26, 2020

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:841
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:841

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

ℹ️ Use comment "crw-ci-test" to rerun happy path E2E test.

@vinokurig vinokurig changed the title Register GitHub Authentication provider for the vscode GitHub PR plugin [WIP] Register GitHub Authentication provider for the vscode GitHub PR plugin Aug 28, 2020
@che-bot
Copy link
Contributor

che-bot commented Aug 31, 2020

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:841
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:841

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

ℹ️ Use comment "crw-ci-test" to rerun happy path E2E test.

@azatsarynnyy
Copy link
Member

depends on eclipse-che/che#17550

@vinokurig
Copy link
Contributor Author

depends on eclipse-che/che#16741

@che-bot
Copy link
Contributor

che-bot commented Sep 23, 2020

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:841
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:841

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

ℹ️ Use comment "crw-ci-test" to rerun happy path E2E test.

@che-bot
Copy link
Contributor

che-bot commented Sep 23, 2020

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:841
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:841

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

ℹ️ Use comment "crw-ci-test" to rerun happy path E2E test.

@vinokurig vinokurig changed the title [WIP] Register GitHub Authentication provider for the vscode GitHub PR plugin Register GitHub Authentication provider for the vscode GitHub PR plugin Oct 7, 2020
Signed-off-by: Igor Vinokur <ivinokur@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Oct 7, 2020

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:841
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:841

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

ℹ️ Use comment "[crw-ci-test]" to rerun happy path E2E test.

@vinokurig
Copy link
Contributor Author

[crw-ci-test]

@che-bot
Copy link
Contributor

che-bot commented Oct 7, 2020

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:841
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:841

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

ℹ️ Use comment "[crw-ci-test]" to rerun happy path E2E test.

const githubUser = await che.github.getUser();
session = {
id: 'github-session',
accessToken: await che.github.getToken(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happen on fresh install, I'm not sure che.github.getToken() or che.github.getUser() is returning something ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case the GitHub authentication page appears:
https://github.com/eclipse/che-theia/blob/2f11124e7de0e50feed25fddf91a9058c37a2a1b/extensions/eclipse-che-theia-plugin-ext/src/browser/oauth-utils.ts#L101-L117
Then if user authenticates it the GitHub token is setup and these functions work as expected.

@che-bot
Copy link
Contributor

che-bot commented Oct 7, 2020

❌ E2E Happy path tests failed ❗

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:841
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:841

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

ℹ️ Use comment "[crw-ci-test]" to rerun happy path E2E test.

@vinokurig
Copy link
Contributor Author

[crw-ci-test]

@che-bot
Copy link
Contributor

che-bot commented Oct 7, 2020

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:841
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:841

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

ℹ️ Use comment "[crw-ci-test]" to rerun happy path E2E test.

@@ -164,4 +164,4 @@
"path": "../examples/assembly/compile.tsconfig.json"
}
]
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, revert it to have the checks passed

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thank you!

@che-bot
Copy link
Contributor

che-bot commented Oct 7, 2020

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:841
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:841

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

ℹ️ Use comment "[crw-ci-test]" to rerun happy path E2E test.

@che-bot
Copy link
Contributor

che-bot commented Oct 9, 2020

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia docker.io/maxura/che-theia:841
che-theia-endpoint-runtime-binary docker.io/maxura/che-theia-endpoint-runtime-binary:841

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

ℹ️ Use comment "[crw-ci-test]" to rerun happy path E2E test.

@vinokurig vinokurig merged commit 010cef7 into master Oct 9, 2020
@vinokurig vinokurig deleted the che-17684 branch October 9, 2020 12:36
@che-bot che-bot added this to the 7.21 milestone Oct 9, 2020
@l0rd l0rd added the new&noteworthy For new and/or noteworthy issues that deserve a blog post, new docs, or emphasis in release notes label Oct 12, 2020
vinokurig pushed a commit that referenced this pull request Apr 6, 2021
Signed-off-by: Sun Tan <sutan@redhat.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new&noteworthy For new and/or noteworthy issues that deserve a blog post, new docs, or emphasis in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Align the GitHub authentication plugin with the latest vscode GitHub PR plugin
5 participants