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

Improve extensibility of model server formats and codecs #60 #61

Merged
merged 2 commits into from
Jan 15, 2021
Merged

Improve extensibility of model server formats and codecs #60 #61

merged 2 commits into from
Jan 15, 2021

Conversation

vhemery
Copy link
Contributor

@vhemery vhemery commented Jan 12, 2021

Use Map binding for codecs and format. Also give the possibility to
specify a preferred format (json by default).
The Model Server Client now has overrideable methods so that it can
change the accepteable formats when necessary.

Signed-off-by: vhemery vincent.hemery@csgroup.eu

Use Map binding for codecs and format. Also give the possibility to
specify a preferred format (json by default).
The Model Server Client now has overrideable methods so that it can
change the accepteable formats when necessary.

Signed-off-by: vhemery <vincent.hemery@csgroup.eu>
@vhemery
Copy link
Contributor Author

vhemery commented Jan 12, 2021

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.1.0:check (default) on project org.eclipse.emfcloud.modelserver.common: Failed during checkstyle execution: Failed during checkstyle configuration: unable to parse configuration stream: Server returned HTTP response code: 502 for URL: https://checkstyle.org/dtds/configuration_1_3.dtd -> [Help 1]

@martin-fleck-at Looks like a network temp issue... Can someone try and respin the build ? (or give me a hint on what else is going south)
PS: no new plugin here, only existing classes modifications...

@martin-fleck-at
Copy link
Contributor

@vhemery I re-triggered the CI, seems you were just unlucky. Build went through now ;-)

Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

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

Hello @vhemery, thank you very much for your change! I especially like that you considered backwards compatibility and also added some JavaDoc comments ;-) As far as I can tell, everything still works as expected and the tests also run through.

I do have some minor comments which you can incorporate. My main "concern" is that we add a binding based on a class (Codecs), something we aim to get rid of. So I would prefer it if we could add an interface for that and simply bind the Codecs class as the implementation of that interface. What do you think? Of course, this would not prevent this change from merging but it would be change I would probably tackle as part of the DI cleanup.

Changes review : let user the possibility to override Codecs
implementation.

Signed-off-by: vhemery <vincent.hemery@csgroup.eu>
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

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

Thank you very much @vhemery for the quick update! I re-tested the change and everything still works great and is much more extensible. Great work!

@martin-fleck-at martin-fleck-at merged commit 381b6ea into eclipse-emfcloud:master Jan 15, 2021
@vhemery vhemery deleted the Improve_extensibility_of_model_server_formats_and_codecs_#60 branch February 17, 2021 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants