Commit Graph

41 Commits (c19ccdcdee48d99437e15155612427417a638dcf)

Author SHA1 Message Date
Roman Nikitenko 4e6e8b30db CHE-6765. Prompt to generate ssh key at import private repo from github
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
2018-02-05 14:15:26 +02:00
Roman Nikitenko e70b1f9dfa CHE-8537. Fix displaying of list of organizations for GitHub account
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
2018-02-05 10:35:42 +02:00
Oleksii Orel db67256191 CHE-4927 fix light theme styles
Signed-off-by: Oleksii Orel <oorel@redhat.com>
2018-01-25 11:17:09 +02:00
Mykhailo Kuznietsov 2c2bd6637c
Set new year in license headers (#8244) 2018-01-11 16:04:49 +02:00
Max Shaposhnik 8ff1be36f5
Added support of Idenvity brokering mechanism of Keycloak for Multi-user Che 2017-12-21 17:50:03 +02:00
Artem Zatsarynnyi f15fbf1cb1
IDE agnostic way to launch GWT Super DevMode (#7084)
Adapted modules to gwt-lib/gwt-app lifecycle;
shared libs have been cleaned up from the GWT related stuff;
enabled launching Super DevMode with a reactor goal gwt:codeserver;
enabled launching Super DevMode inside a dev-machine (for Che in Che development);
separate compiling IDE GWT app from packaging IDE Web app.

Signed-off-by: Artem Zatsarynnyi <azatsary@redhat.com>
2017-10-31 15:27:22 +02:00
Florent BENOIT 3f262e620e Cleanup some Mockito deprecated usage (che6) (#6864)
* Cleanup some Mockito deprecated usage
org.mockito.Matchers —> org.mockito.ArgumentMatchers
org.mockito.runners.MockitoJUnitRunner —> org.mockito.junit.MockitoJUnitRunner

Change-Id: Icf7351cb58e0f42fa95885c2d2cf6b5e98206c35
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-21 09:07:43 +02:00
Florent BENOIT 6a95b6d74a Apply google format v1.4 https://github.com/google/google-java-format/releases/tag/google-java-format-1.4
Change-Id: I5df30c23165df1fd39eef4c57893bebd1d681c1d
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-19 22:23:04 +02:00
Sergii Kabashniuk e321ab00b1 Merge with master 2017-10-15 14:33:47 +03:00
Florent BENOIT 9581a9bbef Move to mockito 2.10
Some changes are required like
 - anyString() --> nullable(String.class) for many tests as in fact we provide null values
 - add class for VerificationMode as there are more than one method now (can't use lambdas)
 - remove cast on ArgumentMatcher (now we can use lambdas as there is generics)
 - remove unecessary stubbing (mockito is now reporting un-needed stubs)

Change-Id: I69c7ccc86bc85a4401d5e33671229ae0ce560dbb
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-15 10:34:15 +02:00
Sergii Kabashniuk ee01b2998f Multi-user Eclipse Che (#6441)
Multi-user Eclipse Che (#6441)
#### How to run it.
```docker run -it -e CHE_MULTIUSER=true -e CHE_HOST=<your ip> -e CHE_KEYCLOAK_AUTH-SERVER-URL=http://<your ip>:5050/auth -v /var/run/docker.sock:/var/run/docker.sock -v ~/.che-multiuser:/data eclipse/che:nightly start --skip:pull --skip:nightly```
#### How to manage it
 - Keycloak configured with two realms. ```Master``` and ```che```. Also we have one user admin/admin in both realm. Admin user in master realm is  - super admin. 
-  Eclipse Che configured for che realm
- We enabled user registration in ```Che``` realm
#### Known limitation
 - swagger would not work. We need to upgrade a version. to support openid authentification https://github.com/eclipse/che/issues/6015
- It's working on local docker. We are going to provide scalable version based on OpenShift on next versions.
- Invitation of non-existent users to Eclipse Che organization https://github.com/eclipse/che/issues/6335
#### How to run it when it is in a branch


To run an multiuser Che version, the following steps are required after building the branch:
 - Rebuild init, cli and che images (in the given sequence). To do that, proceed to folder _dockerfiles/<image_name>_ and run _build.sh_
 - Run Che in a  usual way using cli, with additional parameters:  `-e CHE_MULTIUSER=true` and `--skip:pull --skip:nightly`  
   Full command example:
   `docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/user/.che:/data -e CHE_MULTIUSER=true eclipse/che-cli:nightly start --skip:pull --skip:nightly`
 - MacOS users may need to edit _che.env_ file in the data folder, changing `CHE_HOST` and `CHE_KEYCLOAK_AUTH__SERVER__URL` values to their specific IP.
 
When start is succeeded, the following docker containers should be created:  
 - che, exposing 8080 port;
 - che_keycloak, exposing 5050 port;  
 - che_postgres, exposing 5432 port;
2017-10-06 17:27:27 +03:00
Sergii Leshchenko 108b3d832b Merge remote-tracking branch 'origin/che-multiuser' into spi-multiuser
# Conflicts:
#	assembly/assembly-wsmaster-war/src/main/java/org/eclipse/che/api/deploy/WsMasterModule.java
#	dockerfiles/init/manifests/che.env
#	plugins/plugin-docker/che-plugin-docker-machine/src/test/java/org/eclipse/che/plugin/docker/machine/MachineProviderImplTest.java
#	plugins/plugin-docker/pom.xml
#	plugins/plugin-github/che-plugin-github-pullrequest/src/main/java/org/eclipse/che/plugin/pullrequest/client/GitHubHostingService.java
#	pom.xml
#	wsagent/agent/src/main/java/org/eclipse/che/api/agent/WsAgentLauncher.java
#	wsagent/agent/src/test/java/org/eclipse/che/api/agent/WsAgentLauncherTest.java
#	wsmaster/che-core-api-machine/pom.xml
#	wsmaster/che-core-api-workspace/src/main/java/org/eclipse/che/api/workspace/server/model/impl/EnvironmentImpl.java
2017-09-28 12:33:07 +03:00
Sergii Kabashniuk d4f03cbc4a Ability to authenticate Oauth flow (#6326)
* Add keycloak token to oauth authenticate call

* fixup! Add keycloak token to oauth authenticate call

* fixup! Add keycloak token to oauth authenticate call

* Fix dashboard build

* fixup! Add keycloak token to oauth authenticate call

* fixup! Add keycloak token to oauth authenticate call

* Add security token for websocket url  (#6319)

* Add security token for websocket url

Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>

* Fix failed test (#6325)

Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
2017-09-18 18:42:49 +03:00
Sergii Kabashniuk ff76657a9f Used Google Java Codestyle 2017-08-18 17:28:50 +03:00
Sergii Kabashniuk 6e9825c699 Used Google Java Codestyle 2017-08-18 17:16:54 +03:00
Sergii Kabashniuk 5b373e6cf5 Used Google Java Codestyle (#5851) 2017-08-18 17:00:58 +03:00
Artem Zatsarynnyi a552e67a76 Merge branch 'master' into spi 2017-08-17 16:40:48 +03:00
Mykhailo Kuznietsov 69d5148385 Changed copyright owner to "Red Hat, Inc." in license headers (#5964)
Change license header contributor to Red Hat, Inc.
2017-08-11 10:46:58 +03:00
Artem Zatsarynnyi dd66566958 IDE API reorganization (#5867) 2017-08-01 18:16:59 +03:00
Artem Zatsarynnyi 32de1e7447 Rename methods (#5762)
AppContext#getMasterEndpoint -> AppContext#getMasterApiEndpoint
AppContext#getDevAgentEndpoint -> AppContext#getWsAgentServerApiEndpoint
2017-07-21 10:15:20 +03:00
Artem Zatsarynnyi cce79bf469 Merge branch 'master' into spi
# Conflicts:
#	assembly/assembly-wsmaster-war/pom.xml
#	infrastructures/docker/pom.xml
#	plugins/plugin-docker/che-plugin-docker-compose/pom.xml
#	plugins/plugin-github/che-plugin-github-pullrequest/src/main/java/org/eclipse/che/plugin/pullrequest/client/GitHubHostingService.java
#	plugins/plugin-testing-java/plugin-testing-junit/che-plugin-testing-junit-ide/src/main/java/org/eclipse/che/plugin/testing/junit/ide/action/RunAllTestAction.java
#	plugins/plugin-testing-java/plugin-testing-junit/che-plugin-testing-junit-ide/src/main/java/org/eclipse/che/plugin/testing/junit/ide/action/RunClassTestAction.java
#	plugins/plugin-testing-java/plugin-testing-testng/che-plugin-testing-testng-ide/src/main/java/org/eclipse/che/plugin/testing/testng/ide/action/RunAllTestAction.java
#	plugins/plugin-testing-java/plugin-testing-testng/che-plugin-testing-testng-ide/src/main/java/org/eclipse/che/plugin/testing/testng/ide/action/RunClassTestAction.java
#	plugins/plugin-testing-java/plugin-testing-testng/che-plugin-testing-testng-ide/src/main/java/org/eclipse/che/plugin/testing/testng/ide/action/RunTestXMLAction.java
#	pom.xml
#	wsmaster/che-core-api-machine/pom.xml
2017-06-15 10:35:47 +03:00
Igor Vinokur fe60e9f143 CHE-4007: Remove deprecated methods in GitHubClientService (#5322) 2017-06-13 09:26:24 +00:00
Artem Zatsarynnyi ad3bc4d739 Use Workdspace's and Factory's model objects in IDE (#5221) 2017-05-29 16:19:43 +03:00
Artem Zatsarynnyi 856ca353c2 clean-up IDE code 2017-05-13 16:58:12 +03:00
Vitalii Parfonov 88a1fa41ca Base URL to the master will be provided by AppContext (#3658)
Add ability to take base endpoint to thews master from AppContext
Mark RestContextProvider ad deprecated   


Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
2017-01-13 14:40:25 +02:00
Mihail Kuznyetsov 0e8b21ad3f Set new license year 2017-01-04 17:10:31 +02:00
Vitalii Parfonov 175e5e4cbc Fix possible NPE if GitHub repo don't have description (#1997)
Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
2016-07-29 18:37:45 +03:00
Yevhenii Voevodin d1aa2cfed7 User structural refactoring 2016-07-05 11:27:58 +03:00
Vladyslav Zhukovskyi d0277066ac Merge pull request #1383 from eclipse/projectManager
Resource management
2016-07-04 16:17:57 +03:00
Igor Vinokur 539bd823e7 CHE-1403: Fix clone with http url in JGit implementation
JGit does not support HTTP 301 redirects yet, it throws exception when
performing commands with remote using http url instead https.
Native git can do it.
2016-07-04 09:45:00 +03:00
Vladyslav Zhukovskii 001b4b87e8 Resource management
Signed-off-by: Vladyslav Zhukovskii <vzhukovskii@codenvy.com>
2016-07-02 18:15:33 +03:00
Igor Vinokur c638ebc138 CHE-394: Add ability to specify branch when cloning from GitHub 2016-06-30 09:55:11 +03:00
Igor Vinokur ffef620a82 CHE-1113: Add ability to clone project with submodules 2016-06-29 21:17:03 +03:00
Anatoliy Bazko b1cc055236 CHE-962: Add ability to store and use SSH keys for Subversion hosts (#1305) 2016-05-23 14:50:57 +03:00
Vitalii Parfonov a63a856970 CHE-1081: remove workspace id from services that deployed on wsagent (#1268)
remove workspace id from services that deployed on wsagent
remove workspace Id usage in wsagent services in dashboard
Add init params for websocket endpoint and eventbus end point It allow has different format of URL on wsmaster with ws-id like path param and on wsagent without it
Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
2016-05-18 10:18:05 +03:00
Vitaly Parfonov 826353e6ab CHE-781:Move all platform-api-client-gwt to the che-core-ide-api module
Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
2016-05-12 09:31:10 +03:00
Artem Zatsarynnyi 07d341f4e3 CHE-390: Simplify Editor API (#1197)
* CHE-390: Simplify Editor API by adding abstract EditorProvider

* Remove unused EditorTypeMapping

* Remove obsolete, useless classes

* Remove editor types

* Fix typo in interface name

* Remove EditorAdapter

* Refactor: EmbeddedTextEditorPresenter -> TextEditorPresenter

* Refactor code

* Clean-up

* Remove mime-types

* Refactor JsEditor

* Remove redundatnd dependency

* Rename codenvyDefaultEditor -> cheDefaultEditor
2016-05-06 16:54:34 +03:00
Roman Nikitenko 8d63d65d07 CHE-362. Add different display modes for StatusNotification
Signed-off-by: Roman Nikitenko <rnikitenko@codenvy.com>
2016-04-28 17:20:46 +03:00
Vitaly Parfonov 91f6a64e14 Remove usage of MachineExtensionProxyServlet
Add path to wsagent into wsagent server url to avoid doing that on client-side
Add class DevMachine on client-side what contain all needed information for communicate with wsagent and terminal
Remove @Named(cheExtensionPath)

Signed-off-by: Vitaly Parfonov <vparfonov@codenvy.com>
2016-04-18 15:22:57 +03:00
Mihail Kuznyetsov 56da67f73e CHE-260 Rename some factory parameters 2016-04-11 18:49:14 +03:00
Roman Nikitenko 15e3c6ae37 CHE-746. Split github plugin to several modules client/server/shared
Signed-off-by: Roman Nikitenko <rnikitenko@codenvy.com>
2016-03-31 17:12:53 +03:00