-
Notifications
You must be signed in to change notification settings - Fork 65
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
feat: Add workspace:create command instead of workspace:start #592
Conversation
|
|
@@ -123,6 +123,10 @@ | |||
exec-sh "^0.3.2" | |||
minimist "^1.2.0" | |||
|
|||
"@eclipse-che/api@latest": | |||
version "7.5.0-SNAPSHOT" |
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.
looks strange
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.
Hmm. It is really latest version... https://www.npmjs.com/package/@eclipse-che/api
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.
Nothing strange. I just used latest
in package json, so it was resolved to 7.5.0-SNAPSHOT
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.
Why do we need this at all?
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 think @mmorhun wants to use dts types
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 @AndrienkoAleksandr but I have no idea who is responsible now for @eclipse-che/api
. Try to ask in Eclipse Che MM channel tomorrow.
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 think it should a part of release process.
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.
Let's not use outdated version.
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 there were some major changes. But we need to raise this question.
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've create issue for this problem: eclipse-che/che#16436
src/commands/workspace/create.ts
Outdated
char: 'f', | ||
description: 'path or URL to a valid devfile', | ||
env: 'DEVFILE_PATH', | ||
required: true, |
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 can make it optional. If flag isn't set then let's use the devfile from the current directory
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.
ok
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.
Generally looks good for me. I hope that che-api lib will be updated.
try { | ||
response = await this.axios.post(endpoint, undefined, { headers }) | ||
} catch (error) { | ||
if (error.response && error.response.status === 404) { |
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.
getCheApiError
function actually catches 404 error (rebase on master pls)
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 want to handle 404 error in another way for this specific request.
Signed-off-by: Mykola Morhun <[email protected]>
Signed-off-by: Mykola Morhun <[email protected]>
…ory. Fixed workspace start for multiuser Signed-off-by: Mykola Morhun <[email protected]>
Signed-off-by: Mykola Morhun <[email protected]>
Rebased |
What does this PR do?
Adds new
workspace:create
command tochectl
, which is supposed to replaceworspace:start
which become deprecated.workspace:create
command has--start
option which starts the workspace right after creation.In case of using
workspace:start
command, deprecation warning will be shown:What issues does this PR fix or reference?
eclipse-che/che#14344