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

Java spring cinema booking quickstart #1916

Open
wants to merge 51 commits into
base: main
Choose a base branch
from

Conversation

aklikic
Copy link

@aklikic aklikic commented Dec 13, 2023

No description provided.

@github-actions github-actions bot added Documentation Improvements or additions to the documentation java-sdk kalix-runtime Runtime and SDKs sub-team labels Dec 13, 2023
Copy link
Member

@octonato octonato left a 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.

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
Copy link
Member

Choose a reason for hiding this comment

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

suffix it with -quickstart

Copy link
Contributor

@aludwiko aludwiko left a 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

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();
Copy link
Contributor

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.

aklikic and others added 30 commits January 12, 2024 11:19
* 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]>
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to the documentation kalix-runtime Runtime and SDKs sub-team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants