Skip to content
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

Added MachineTokenProvider interface with different implementations #6700

Merged
merged 5 commits into from
Oct 13, 2017

Conversation

sleshchenko
Copy link
Member

What does this PR do?

Adds MachineTokenProvider interface. There are different implementations for single and multiuser packagings. With these changes, there is no necessity to override anything for implementations of infrastructures in che multiuser assembly.

It also contains minor cleaning up of jpa tests and OpenShift provisioning.

What issues does this PR fix or reference?

#6587

@sleshchenko sleshchenko added kind/task Internal things, technical debt, and to-do tasks to be performed. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. target/branch Indicates that a PR will be merged into a branch other than master. labels Oct 12, 2017
@sleshchenko sleshchenko self-assigned this Oct 12, 2017
@codenvy-ci
Copy link

Build # 4122 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/4122/ to view the results.

@sleshchenko sleshchenko force-pushed the CHE-6587 branch 2 times, most recently from f9b7581 to 7ba51ef Compare October 13, 2017 07:09
@codenvy-ci
Copy link

this.runtimeIdentity = runtimeIdentity;
this.machineName = machineName;
this.servers = servers;
this.serverCheckerFactory = serverCheckerFactory;
this.timer = new Timer("ServerReadinessChecker", true);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you align string constant with the new new name

Copy link

@garagatyi garagatyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In overall looks good. I would try to avoid interceptor, but since it is not your code we can discuss it separately.
Please, make sure that it is tested on different infrastructures and deployments.

RuntimeIdentity runtimeIdentity,
String machineName,
Map<String, ? extends Server> servers,
ServerCheckerFactory serverCheckerFactory) {
@Assisted MachineTokenProvider machineTokenProvider) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I wrong that assisted annotation should be on other arguments, but not on this one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're correct. I've already fixed it locally.

@sleshchenko sleshchenko merged commit 95aa8bd into eclipse-che:che6 Oct 13, 2017
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Oct 13, 2017
@codenvy-ci
Copy link

Build # 4139 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/4139/ to view the results.

@skabashnyuk skabashnyuk added this to the 6.0.0-M1 milestone Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed. target/branch Indicates that a PR will be merged into a branch other than master.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants