-
Notifications
You must be signed in to change notification settings - Fork 111
Implement remote plugin resources retrieving #430
Conversation
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
extensions/eclipse-che-theia-plugin-remote/src/node/hosted-plugin-remote.ts
Outdated
Show resolved
Hide resolved
extensions/eclipse-che-theia-plugin-remote/src/node/plugin-reader-extension.ts
Outdated
Show resolved
Hide resolved
@@ -214,6 +221,32 @@ to pick-up automatically a free port`)); | |||
return; | |||
} | |||
|
|||
// asked to send plugin resource | |||
if (jsonParsed.internal.method === 'getResource') { |
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.
Sorry, for stop method we have one more check:
jsonParsed.internal.method && jsonParsed.internal.method === 'stop'
Maybe you need to apply jsonParsed.internal.method
to your code too?
=> if (jsonParsed.internal.method && jsonParsed.internal.method === 'getResource'
) {
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 don't think so. We are sure that jsonParsed.internal
is present. Then we need to check jsonParsed.internal.method
field. Of course, we can firstly check for undefined and then compare to method name, but I see no point because we may just check equality. If method
field is undefined it is definitely not equal to getResource
.
extensions/eclipse-che-theia-plugin-remote/src/node/plugin-reader-extension.ts
Show resolved
Hide resolved
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
crw-ci-test |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:
|
extensions/eclipse-che-theia-plugin-remote/src/node/hosted-plugin-remote.ts
Show resolved
Hide resolved
'pluginId': pluginId, | ||
'path': resourcePath | ||
} | ||
})); |
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.
Do we need to call resolve()
somewhere in the promise?
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.
We have to call resolve, but not here. It is called here.
extensions/eclipse-che-theia-plugin-remote/src/node/hosted-plugin-remote.ts
Show resolved
Hide resolved
extensions/eclipse-che-theia-plugin-remote/src/node/hosted-plugin-remote.ts
Show resolved
Hide resolved
crw-ci-test |
E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:
|
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
…430) * CRW-653 support optional extra processing to check backup registries; tweak console output to report digest and source image when passing, and which image failed if skipping Change-Id: Ieee4cca1344b2dd4f86c10b9e4ceae2eb02dcdd8 Signed-off-by: nickboldt <nboldt@redhat.com> * disable shellcheck SC1091 Change-Id: I1f0a4139ae2aad3359f3fc9c30fa08dc328d893a Signed-off-by: nickboldt <nboldt@redhat.com> * shellcheck disable SC1090 too Change-Id: I798d8146e67bdb1619242f1c1d2c803b05dde3ee Signed-off-by: nickboldt <nboldt@redhat.com> * externalize SCRIPT_DIR and make shellcheck happy too Change-Id: I3e8cfb96e79de1b8dd441075a6f56e8fa9a604fc Signed-off-by: nickboldt <nboldt@redhat.com>
Signed-off-by: Mykola Morhun mmorhun@redhat.com
What does this PR do?
Adds PluginReaderExtension class which handles case when requested resource is not found locally and in such cases sends request to corresponding sidecar where plugin resources are actually stored.
This PR does not handle resources for remote plugin webview because they are handles in a different way than usual plugin resources. Created issue for that problem: eclipse-che/che#14444
Changelog
Added support for remote plugins resources on Che Theia frontend side.
Release Notes
Added support for remote plugins resources on Che Theia frontend side.
Screenshots
Two remote plugins are loaded: Kubernetes plugins and Git UI Tools plugin (last two items in left sidebar)
Fixes eclipse-che/che#13750
Depends on: eclipse-theia/theia#6126