-
Notifications
You must be signed in to change notification settings - Fork 39
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
Java spring cinema booking quickstart #1916
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Brent Eritou <[email protected]>
Co-authored-by: Brent Eritou <[email protected]>
Co-authored-by: Brent Eritou <[email protected]>
Co-authored-by: Brent Eritou <[email protected]>
Co-authored-by: Brent Eritou <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a first pass. Left some comments here and there. We need to align with the decisions we took about how to organise the code.
Also, since this sample was originally build for a blog post and not for a quickstart, we need reconsider the amount of code we are producing here.
I would try to bring it to a minimal. For example, having three different methods abstracting away a call to UUID.random is not adding value. We need to be a little more pragmatic and produce only what is needed.
samples/java-spring-cinema-booking-choreography/images/cinema-show-usecase.png
Outdated
Show resolved
Hide resolved
...pring-cinema-booking-choreography/src/main/java/com/example/cinema/model/CinemaApiModel.java
Outdated
Show resolved
Hide resolved
...pring-cinema-booking-choreography/src/main/java/com/example/cinema/model/CinemaApiModel.java
Outdated
Show resolved
Hide resolved
...pring-cinema-booking-choreography/src/main/java/com/example/cinema/model/CinemaApiModel.java
Outdated
Show resolved
Hide resolved
...pring-cinema-booking-choreography/src/main/java/com/example/cinema/model/CinemaApiModel.java
Outdated
Show resolved
Hide resolved
...les/java-spring-cinema-booking-choreography/src/main/java/com/example/cinema/model/Show.java
Outdated
Show resolved
Hide resolved
...les/java-spring-cinema-booking-choreography/src/main/java/com/example/cinema/model/Show.java
Outdated
Show resolved
Hide resolved
...les/java-spring-cinema-booking-choreography/src/main/java/com/example/cinema/model/Show.java
Outdated
Show resolved
Hide resolved
...va-spring-cinema-booking-choreography/src/test/java/com/example/cinema/DomainGenerators.java
Outdated
Show resolved
Hide resolved
...es/java-spring-cinema-booking-choreography/src/test/java/com/example/cinema/ShowBuilder.java
Outdated
Show resolved
Hide resolved
docs/Makefile
Outdated
@@ -91,6 +91,7 @@ bundles: | |||
bin/bundle.sh --zip "${java_managed_attachments}/java-spring-customer-registry-quickstart.zip" ../samples/java-spring-customer-registry-quickstart | |||
bin/bundle.sh --zip "${java_managed_attachments}/java-spring-customer-registry-views-quickstart.zip" ../samples/java-spring-customer-registry-views-quickstart | |||
bin/bundle.sh --zip "${java_managed_attachments}/java-spring-shopping-cart-quickstart.zip" ../samples/java-spring-shopping-cart-quickstart | |||
bin/bundle.sh --zip "${java_managed_attachments}/java-spring-cinema-booking-choreography.zip" ../samples/java-spring-cinema-booking-choreography |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suffix it with -quickstart
samples/java-spring-cinema-booking-choreography/src/it/java/com/example/cinema/ShowCalls.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left some comments for starters
...-booking-choreography/src/it/java/com/example/cinema/ShowSeatReservationIntegrationTest.java
Outdated
Show resolved
Hide resolved
...ng-choreography/src/it/java/com/example/cinema/ShowsByAvailableSeatsViewIntegrationTest.java
Outdated
Show resolved
Hide resolved
...pring-cinema-booking-choreography/src/main/java/com/example/cinema/model/CinemaApiModel.java
Outdated
Show resolved
Hide resolved
...les/java-spring-cinema-booking-choreography/src/main/java/com/example/cinema/model/Show.java
Outdated
Show resolved
Hide resolved
Map<String, FinishedReservation> finishedReservations, int availableSeats) { | ||
|
||
public static Show create(ShowEvent.ShowCreated showCreated) { | ||
List<Tuple2<Integer, Seat>> seats = showCreated.seats().stream().map(seat -> new Tuple2<>(seat.number(), seat)).toList(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, but maybe they added sth in the mean time.
...les/java-spring-cinema-booking-choreography/src/main/java/com/example/cinema/model/Show.java
Outdated
Show resolved
Hide resolved
...les/java-spring-cinema-booking-choreography/src/main/java/com/example/cinema/model/Show.java
Outdated
Show resolved
Hide resolved
...les/java-spring-cinema-booking-choreography/src/main/java/com/example/cinema/model/Show.java
Outdated
Show resolved
Hide resolved
…d applyReserved to onCommand and onEvent
* docs: choreography saga quickstart * Minor text updates * Update samples/java-spring-choreography-saga-quickstart/pom.xml Co-authored-by: Enno Runne <[email protected]> --------- Co-authored-by: Enno Runne <[email protected]>
* feat: reading the collector endpoint from the ProxyInfo
* docs: choreography saga quickstart * Minor text updates * Update samples/java-spring-choreography-saga-quickstart/pom.xml Co-authored-by: Enno Runne <[email protected]> --------- Co-authored-by: Enno Runne <[email protected]>
* chore: bump scala tooling version 2.12.15 -> 2.12.18 * missing bump
…tbend#1895) * Use image name kalix-runtime (was kalix-proxy) * Adapt Runtime version updating helpers * Rename Docker compose services * Kalix Runtime 1.1.25 * More safe renames * Missed a few versions * Service name in DockerComposeUtilsSpec * Found even more, sigh * Make TestContainers wait for the new message * Use Runtime 1.1.26 * some more proxy > runtime renaming * Kalix Runtime 1.1.27 * delegate from old update script name * typo --------- Co-authored-by: Renato Cavalcanti <[email protected]>
* Apply suggestions from code review Co-authored-by: Renato Cavalcanti <[email protected]> --------- Co-authored-by: Renato Cavalcanti <[email protected]>
…d applyReserved to onCommand and onEvent
* docs: choreography saga quickstart * Minor text updates * Update samples/java-spring-choreography-saga-quickstart/pom.xml Co-authored-by: Enno Runne <[email protected]> --------- Co-authored-by: Enno Runne <[email protected]>
… java-spring-cinema-booking # Conflicts: # docs/Makefile # samples/java-spring-cinema-booking-choreography/src/main/java/com/example/cinema/Show.java
No description provided.