Skip to content

Conversation

@24santoshr
Copy link
Contributor

Changes for Instance registry. Please let me know for any changes

@ghost ghost assigned 24santoshr Sep 5, 2018
@ghost ghost added the review label Sep 5, 2018
@codecov
Copy link

codecov bot commented Sep 5, 2018

Codecov Report

Merging #20 into develop will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@          Coverage Diff           @@
##           develop   #20    +/-   ##
======================================
  Coverage        0%    0%            
======================================
  Files            6    10     +4     
  Lines          500   612   +112     
  Branches         4    15    +11     
======================================
- Misses         500   612   +112
Impacted Files Coverage Δ
...ain/scala/de/upb/cs/swt/delphi/webapi/Server.scala 0% <0%> (ø) ⬆️
...ala/de/upb/cs/swt/delphi/webapi/StartupCheck.scala 0% <0%> (ø)
...pb/cs/swt/delphi/instancemanagement/Instance.scala 0% <0%> (ø)
...t/delphi/instancemanagement/InstanceRegistry.scala 0% <0%> (ø)
...la/de/upb/cs/swt/delphi/webapi/Configuration.scala 0% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ee037e9...cdad67c. Read the comment docs.

@johannesduesing johannesduesing changed the base branch from master to develop September 7, 2018 07:39
Copy link

@johannesduesing johannesduesing left a comment

Choose a reason for hiding this comment

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

This PR introduces some code style issues (that's why the one check is failing), namely there are some usages of .get on optional types. Please replace them with .getOrElse (have a look how it was done in the last commit of this PR delphi-hub/delphi-crawler#24) to keep the code quality up.

val f = (client.execute {
nodeInfo()
} map { i => {
if(configuration.usingInstanceRegistry) InstanceRegistry.sendMatchingResult(true, configuration)
Copy link
Member

Choose a reason for hiding this comment

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

As in the other PR: I would like to move this condition into the method.

Success(configuration)
}
} recover { case e => {
if(configuration.usingInstanceRegistry) InstanceRegistry.sendMatchingResult(false, configuration)
Copy link
Member

Choose a reason for hiding this comment

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

Same as above

@ghost ghost assigned johannesduesing Sep 11, 2018
@bhermann
Copy link
Member

This PR still has some open review comments.

@bhermann
Copy link
Member

bhermann commented Oct 5, 2018

In this PR, are there updates for me to review? Is it still work-in-progress?

@24santoshr
Copy link
Contributor Author

Hello Ben, please review the request and let me know if any changes are required.

@bhermann
Copy link
Member

bhermann commented Oct 8, 2018

@johannesduesing We also need your approval here. Please have a look.

johannesduesing
johannesduesing previously approved these changes Oct 8, 2018
@johannesduesing
Copy link

I'm happy with the changes, the PR looks good to me. Snyk reports 2 vulerabilities to DoS attacks trough spray-json, do you know if we can do something about that @bhermann ?

bhermann
bhermann previously approved these changes Oct 9, 2018
@bhermann bhermann dismissed stale reviews from johannesduesing and themself via cdad67c October 9, 2018 05:58
@ghost ghost assigned bhermann Oct 9, 2018
@bhermann bhermann merged commit 1677b67 into develop Oct 9, 2018
@bhermann bhermann deleted the feature/instanceregistry branch October 9, 2018 06:04
@ghost ghost removed the review label Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants