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

Feat/cart/cpc 1033/retrieve cart for client #623

Merged
merged 7 commits into from
Sep 16, 2024

Conversation

Hares-2088
Copy link
Collaborator

JIRA: https://champlainsaintlambert.atlassian.net/browse/CPC-1033

Context:

Retrieve the informations of a cart with all its products using a clientId

Changes

  • created the cart entity
  • implemented the get cart by cart id
  • added a domain client layer for a product client
  • added some tests
  • modified the application.yaml to integrate a mongo Database

Dev notes (Optional)

  • Still need to add it to the API gateway

@NtsoaElie
Copy link
Collaborator

Everything looks fine to me.

Copy link
Collaborator

@nic5694 nic5694 left a comment

Choose a reason for hiding this comment

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

Please check out the comment i left regarding the commented out test before merging into main.

Comment on lines +47 to +67
// @Test
// void findCartByCartId_withExistingId_thenReturnCart() {
// StepVerifier
// .create(cartRepository.save(cart1))
// .consumeNextWith(insertedCart -> {
// assertNotNull(insertedCart);
// assertEquals(cart1.getCartId(), insertedCart.getCartId());
// assertEquals(cart1.getCustomerId(), insertedCart.getCustomerId());
// })
// .verifyComplete();
//
// //act and assert
// StepVerifier
// .create(cartRepository.findCartByCartId(cart1.getCartId()))
// .consumeNextWith(foundCart -> {
// assertNotNull(foundCart);
// assertEquals(cart1.getCartId(), foundCart.getCartId());
// assertEquals(cart1.getCustomerId(), foundCart.getCustomerId());
// })
// .verifyComplete();
// }
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should not be pushing commented out code into main.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you. This will be fixed ASAP

Copy link
Collaborator

@Zako563 Zako563 left a comment

Choose a reason for hiding this comment

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

Looks good to me. I don't see any code that can occur an error. It mostly looks how the previous teams did.

@Zako563 Zako563 merged commit 2d1ae87 into main Sep 16, 2024
14 checks passed
@Zako563 Zako563 deleted the feat/CART/cpc-1033/retrieve-cart-for-client branch September 16, 2024 16:10
viktorkuts pushed a commit that referenced this pull request Sep 17, 2024
JIRA: https://champlainsaintlambert.atlassian.net/browse/CPC-1033
## Context:
Retrieve the informations of a cart with all its products using a
clientId
## Changes
 - created the cart entity
 - implemented the get cart by cart id
 - added a domain client layer for a product client
 - added some tests
 - modified the application.yaml to integrate a mongo Database
## Dev notes (Optional)
- Still need to add it to the API gateway

---------

Co-authored-by: NtsoaElie <[email protected]>
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.

4 participants