-
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
Workspace loader #8838
Workspace loader #8838
Conversation
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 see unit tests of the loader ?
<url-pattern>/loader/*</url-pattern> | ||
</servlet-mapping> | ||
|
||
<security-role> |
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 suppose we could remove security-role
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.
Done
workspace-loader/tsconfig.json
Outdated
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ | ||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ | ||
} | ||
} |
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.
Could we have more strict checking ? like variables not used, emit only if there is no error in the code
workspace-loader/webpack.common.js
Outdated
@@ -0,0 +1,36 @@ | |||
/******************************************************************************* | |||
* Copyright (c) 2015-2018 Red Hat, Inc. |
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.
it should be only 2018, in 2015 this loader didn't exist
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.
How it will be for pom.xml? 2018?
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.
@vitaliy-guliy I would say yes
just specify correct inception year like https://github.com/eclipse/che/blob/master/dashboard/pom.xml#L27
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.
Then we will have following
Copyright (c) 2018-2018 Red Hat, Inc.
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.
you may want to add
<properties>
<license_years>2018</license_years>
</properties>
to have only
Copyright (c) 2018 Red Hat, Inc.
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.
Done.
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 decide. We have only 2018 or period 2018-2018.
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.
up to you
workspace-loader/webpack.common.js
Outdated
] | ||
}, | ||
resolve: { | ||
extensions: ['.tsx', '.ts', '.js'] |
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 .tsx on this project ?
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.
Removed.
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
|
||
module.exports = merge(common, { | ||
devtool: 'inline-source-map', |
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.
sourcemap is working if not enabled in tsconfig ?
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 have just tested when disabled in tsconfig. It works but when debugging source files have a lot of extra information.
workspace-loader/webpack.dev.js
Outdated
}, | ||
devServer: { | ||
contentBase: './dist', | ||
port: 3050, |
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.
any reason to use 3050 instead of classical 3000 ?
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.
Just a historical reason. Changed to 3000.
workspace-loader/webpack.prod.js
Outdated
@@ -0,0 +1,44 @@ | |||
/******************************************************************************* | |||
* Copyright (c) 2015-2018 Red Hat, Inc. |
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.
2018
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.
Done
is it also possible to have a docker build like for dashboard app, so if ppl don't have the expected nodejs version it's still fine |
<parent> | ||
<artifactId>che-assembly-parent</artifactId> | ||
<groupId>org.eclipse.che</groupId> | ||
<version>6.1.0-SNAPSHOT</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.
version here is incorrect
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.
Fixed.
workspace-loader/pom.xml
Outdated
<name>Che Workspace Loader :: Web App</name> | ||
<inceptionYear>2018</inceptionYear> | ||
<dependencies> | ||
<dependency> |
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.
could you please explain why we're having this dependency ?
AFAIK this module is not using it.
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.
Removed as unused. Thanks.
workspace-loader/pom.xml
Outdated
<exclude>**/*.eot</exclude> | ||
<exclude>**/*.css</exclude> | ||
<exclude>**/*.woff</exclude> | ||
</excludes> |
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.
is that the list of excludes is accurate ? it seems some of the files are not there so maybe the whole configuration can be removed
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.
Removed
workspace-loader/pom.xml
Outdated
<artifactId>maven-source-plugin</artifactId> | ||
<configuration> | ||
<includePom>true</includePom> | ||
<includes> |
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 suppose this is a copy from dashboard module but then I'm not sure the include are expected
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.
Removed
could you please also list CQsof new dependencies in the description of the PR ? |
Docker build is added |
workspace-loader/karma.conf.js
Outdated
@@ -0,0 +1,77 @@ | |||
// Karma configuration |
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.
it will require copyright headers
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.
not actual
workspace-loader/karma.conf.js
Outdated
@@ -0,0 +1,77 @@ | |||
// Karma configuration | |||
// Generated on Thu Feb 22 2018 15:39:12 GMT+0200 (EET) |
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.
maybe we could delete this generated line
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.
not actual anymore
workspace-loader/karma.conf.js
Outdated
config.set({ | ||
webpack: webpackConfig, | ||
mime: { | ||
'text/x-typescript': ['ts','tsx'] |
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 have tsx ?
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.
not actual anymore
about the tests, I think that karma/mocha can be replaced in favor of jest
|
workspace-loader/tsconfig.json
Outdated
"src" | ||
], | ||
"compilerOptions": { | ||
/* Basic Options */ |
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.
JSON is not allowing comments, so all comments should be removed
you may check on any online JSON validator
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.
Done
Babel, karma and jasmine have been removed. |
@benoitf Do we need to pass tests while compiling the app? |
I would say it's better so PR build will fail if someone broke the tests |
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.
maybe new CQs are required for the tests ?
@vitaliy-guliy could you add the version of jest in CQ and append it with "and later version" so we can easily update version without new CQs |
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
bce7100
to
cddb76f
Compare
Adding workspace loader application.
Adding workspace loader application.
Adding workspace loader application.
What does this PR do?
Adds an application for starting a workspace and loading corresponding IDE.
What issues does this PR fix or reference?
#8556
#8682
Release Notes