-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Deprecate workspaces with Devfile stored as workspace config #13588
Conversation
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
...space/src/main/java/org/eclipse/che/api/workspace/server/model/impl/devfile/DevfileImpl.java
Outdated
Show resolved
Hide resolved
...ace/src/main/java/org/eclipse/che/api/workspace/server/model/impl/devfile/ComponentImpl.java
Outdated
Show resolved
Hide resolved
…onfig Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
ci-test |
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 with 1 minor nitpick
...core-api-model/src/main/java/org/eclipse/che/api/core/model/workspace/devfile/Component.java
Show resolved
Hide resolved
// set factory attribute: | ||
let attrs = {factoryId: this.factory.id}; | ||
|
||
let creationPromise = this.cheAPI.getWorkspace().createWorkspaceFromDevfile(null, devfile, attrs); |
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.
add the the todo here as well just to be sure?
public FactoryDto withDevfile(DevfileDto devfileDto) { | ||
return factoryDto.withDevfile(devfileDto); | ||
} | ||
|
||
@Override | ||
public WorkspaceConfigDto getWorkspace() { |
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.
Please add @nullable and describe when it may be such. The same for workspace config field
core/che-core-api-model/src/main/java/org/eclipse/che/api/core/model/factory/Factory.java
Show resolved
Hide resolved
...elenium-core/src/main/java/org/eclipse/che/selenium/core/factory/TestFactoryInitializer.java
Show resolved
Hide resolved
One more issue I faced during manual testing: my repository had an incorrect devfile (apiVersion was 0.0.1 instead of 1.0.0) and I saw an exception from Che Server only on a phase of workspace starting, the factory was successfully accepted and in the result I had a created incorrect workspace that I was not able to start. |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
now behaviour of accepting direct URL factories will now go as follows:
also @l0rd and others, there would be slight regression, if I would attempt to use workspace from devfiles by default, for factories without devfile.yaml - there wouldn't be support for "keepDir" param for specifying subdirectory of a repository of a cloned project (devfile projects don't support "keepDir", while Since it's a feature only used by Che 6 factory, I'd suggest fixing "keepDir" in a separate issue (which would require changes to model, schemas, etc. and probably for Theia as well, which is something that @sunix should know about ) |
…ctory.json Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
@mkuznyetsov yes. please create issues for keepDir support |
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
…l or factory.json Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
…ile.yaml or factory.json Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
ci-test |
Results of automated E2E tests of Eclipse Che Multiuser on OCP: |
Selenium tests execution on Eclipse Che Multiuser on OCP (https://ci.codenvycorp.com/job/che-pullrequests-test-ocp/1888//Selenium_20tests_20report/) doesn't show any regression against this Pull Request. |
Signed-off-by: Mykhailo Kuznietsov mkuznets@redhat.com
What does this PR do?
Deprecate things related to storing workspace converted from devfile as a workspace config:
devfile
field, andworkspace
field became non-mandatory;What issues does this PR fix or reference?
#13423