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

Upgrade to Spring Cloud Finchley #72 #80

Merged
merged 13 commits into from
Jul 14, 2018

Conversation

arey
Copy link
Member

@arey arey commented Jun 6, 2018

This pull request upgrades the application to Spring Boot Finchley based on Spring Boot 2.
Local deployment is working.
Docker deployment is working.

By waiting a patch of Spring Boot 2, I have to add the below line into the application.yml of the spring-petclinic-microservices-config module:

# Temporary hack required by Spring Boot 2
# Waiting issue https://github.com/spring-projects/spring-boot/issues/13042
spring.cloud.refresh.refreshable: false

For my point of view, the feature/Finchley branch is complete and could be merge into the master. branch. Are you ok?

arey added 12 commits April 11, 2018 18:26

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was signed with the committer’s verified signature.
arey Antoine Rey

Verified

This commit was signed with the committer’s verified signature.
arey Antoine Rey

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
… 2.0.2, Sleuth 2.0.0.RC2, Zipkin Server 2.8.4

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…equired

Verified

This commit was signed with the committer’s verified signature.
arey Antoine Rey

Verified

This commit was signed with the committer’s verified signature.
arey Antoine Rey

Verified

This commit was signed with the committer’s verified signature.
arey Antoine Rey
…ialization
@arey arey requested a review from mszarlinski July 4, 2018 06:33
Copy link
Collaborator

@mszarlinski mszarlinski left a comment

Choose a reason for hiding this comment

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

@arey thanks for PR, please answer my comments :)

@@ -27,19 +28,20 @@
* @author Maciej Szarlinski
*/
@Data
@NoArgsConstructor
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need no-args constructor?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't remember why I have to add the @NoArgsConstructor annotation. I will try to remove it.

@@ -74,7 +75,11 @@ public Owner findOwner(@PathVariable("ownerId") int ownerId) {
@PutMapping(value = "/{ownerId}")
@Monitored
public Owner updateOwner(@PathVariable("ownerId") int ownerId, @Valid @RequestBody Owner ownerRequest) {
final Owner ownerModel = ownerRepository.findOne(ownerId);
final Optional<Owner> owner = ownerRepository.findById(ownerId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

orElseThrow?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's better. Thanks



private Pet findPetById(int petId) {
Optional<Pet> pet = petRepository.findById(petId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

orElseThrow?

@arey
Copy link
Member Author

arey commented Jul 11, 2018

Changes applied into the 50231b1 commit

Copy link
Collaborator

@mszarlinski mszarlinski left a comment

Choose a reason for hiding this comment

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

Thanks for fixes :)

@mszarlinski mszarlinski merged commit ba03bfe into spring-petclinic:feature/Finchley Jul 14, 2018
@arey
Copy link
Member Author

arey commented Jul 15, 2018

@mszarlinski may I merge the Fishley branch into master? I've already done a release (and a tag) for the current master version.

@mszarlinski
Copy link
Collaborator

👍

talha-01 pushed a commit to talha-01/microservices-ci-cd-pipeline-with-petclinic-app that referenced this pull request Nov 13, 2020
…c#80)

* spring-petclinic#72 Upgrade to Spring Cloud Finchley M9

* spring-petclinic#72 Upgrade to Spring Boot 2.0.1

* spring-petclinic#72 Remove @deprecated API usage

* spring-petclinic#72 Upgrade to Spring Cloud Finchley RC2, Spring Boot 2.0.2, Sleuth 2.0.0.RC2, Zipkin Server 2.8.4

* spring-petclinic#72 Registering the index ViewController is no more required

* For logging, implement the toString() method of the Pet entity

* spring-petclinic#72 Upgrade to Spring Boot Admin 2.0.0

* spring-petclinic#72 Add @NoArgsConstructor required for Jackson deserialization

* spring-petclinic#72 Upgrade to Spring Boot 2.0.3

* spring-petclinic#72 Upgrade to Spring Cloud Finchley RELEASE

* Change Zipkin local host URL

* spring-petclinic#72 changes requested by the @mszarlinski code review
@arey arey deleted the feature/Finchley branch August 2, 2024 08:11
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.

None yet

2 participants