Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Propagate id and version to Che Server #15

Merged
merged 2 commits into from
Nov 21, 2018
Merged

Conversation

sleshchenko
Copy link
Member

@sleshchenko sleshchenko commented Nov 19, 2018

What does this PR do?

Adds propagating of id and version field to Che Server.
Che Server parses objects published by Plugin Broker as Che Plugins which has id, version and name field. But previosly Plugin Broker didn't publish id, version and name fields and Che Server doesn't have an ability to match received configuration with Che Plugin. It may be needed like for resolving Che Plugin Commands, or containers names evaluation.

This PR doesn't add propagation of Che Plugin name because Che 7 workspace won't work since names of some of plugins doesn't suite name format which Che Server requires. Example of such plugin https://github.com/eclipse/che-plugin-registry/blob/master/plugins/che-machine-exec-plugin/0.0.1/meta.yaml#L4
So, propagation of plugin name should be uncommented when eclipse-che/che#11479 will be fixed.

What issues does this PR fix or reference?

It is related to eclipse-che/che#9546

@skabashnyuk
Copy link
Contributor

CC @l0rd

@l0rd
Copy link
Contributor

l0rd commented Nov 19, 2018

@sleshchenko @skabashnyuk just keep in mind that I am working on eclipse-che/che-plugin-registry#63

Copy link
Contributor

@skabashnyuk skabashnyuk left a comment

Choose a reason for hiding this comment

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

The code is ok for me. But I would like to see some tests with the code as well. Up to @garagatyi and @sleshchenko to decide if we can merge this pr without a test.
guys wdyt?

@sleshchenko
Copy link
Member Author

@skabashnyuk Added tests for setStatus/addTolling/Tolling methods in Storage. I think my changes really affects only these places. Please approve if you OK with that.

@sleshchenko sleshchenko merged commit e65ac22 into master Nov 21, 2018
@sleshchenko sleshchenko deleted the idVersionPropagation branch November 21, 2018 07:09
metlos pushed a commit to metlos/che-plugin-broker that referenced this pull request Jun 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants