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

Dt 1157 #89

Merged
merged 3 commits into from
May 14, 2024
Merged

Dt 1157 #89

merged 3 commits into from
May 14, 2024

Conversation

preetamnpr
Copy link
Contributor

No description provided.

@preetamnpr preetamnpr requested a review from nt-gt May 6, 2024 12:37
Comment on lines 216 to 224
case RECEIVED -> then(
ScenarioType.DG.equals(scenarioType) || ScenarioType.REEFER.equals(scenarioType)?
shipper_GetBooking(bookingState).thenEither(
uc2_carrier_requestUpdateToBookingRequest().thenHappyPathFrom(PENDING_UPDATE, scenarioType),
uc5_carrier_confirmBookingRequest().thenHappyPathFrom(CONFIRMED, scenarioType)):
shipper_GetBooking(bookingState).then(
uc5_carrier_confirmBookingRequest().thenHappyPathFrom(CONFIRMED, scenarioType))
);
case START -> then(uc1_shipper_SubmitBookingRequest().thenHappyPathFrom(RECEIVED, scenarioType));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hard to read what is actually happening.

Also, I suspect the condition got inverted based on how scenarios are handled in eBL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Flavia wanted to have the Update booking for DG and REEFER. Hence I have added this condition.

✅ SupplyCSP [DG] - UC1 - GET - UC2 - GET - UC3 - GET - UC5 - GET - UC12 - GET
✅ SupplyCSP [DG] - UC1 - GET - UC5 - GET - UC12 - GET

✅ SupplyCSP [REEFER] - UC1 - GET - UC2 - GET - UC3 - GET - UC5 - GET - UC12 - GET
✅ SupplyCSP [REEFER] - UC1 - GET - UC5 - GET - UC12 - GET

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am saying "The code is unreadable" and your answer "Flavia wanted the change". I am 100% certain Flavia did not ask you do write it in the most unreadable way you could, so I feel you are just not answering my review comment.

Copy link
Contributor Author

@preetamnpr preetamnpr May 8, 2024

Choose a reason for hiding this comment

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

I misunderstood ur statement. I got it what you mean, probably I will rearrange the condition.

@preetamnpr preetamnpr merged commit c236897 into dev May 14, 2024
1 check passed
@jkosternl jkosternl deleted the DT-1157 branch August 20, 2024 07:19
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