Skip to content

Crud operations#8

Merged
MohammmedAhmed8 merged 48 commits intodevfrom
Crud-Operations
May 18, 2025
Merged

Crud operations#8
MohammmedAhmed8 merged 48 commits intodevfrom
Crud-Operations

Conversation

@MohammmedAhmed8
Copy link
Contributor

No description provided.

MohammmedAhmed8 and others added 30 commits May 2, 2025 22:15
1. Added Swagger and Logger Dependencies in pom.xml
2. Added Global Exception Handler to handle Exceptions in OrderService
3. Used Swagger and Logger for endpoints in OrderController
- Added models for StockReservationRequest and StockReservationResponse
- Added OrderPlaced event model for communicating with warehouse and ERP
- Implemented RabbitMQ producer and consumer for messaging
- Added RabbitMQ configuration and dependency setup
@MohammmedAhmed8 MohammmedAhmed8 requested review from Aelmeky, NourAlPha, YehiaFarghaly, Copilot and oaly2 and removed request for Copilot and oaly2 May 18, 2025 15:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements CRUD operations for orders by updating order cancellation logic, adding new order statuses, and enhancing messaging for order events.

  • Enhanced order cancellation logic with additional status checks and integration of order product items into the cancellation event.
  • Updated order status enum to include new statuses and renamed an existing status for clarity.
  • Added handling for OrderDeliveryFailedEvent in the messaging component and updated dependency version in pom.xml.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/main/java/com/podzilla/order/service/OrderService.java Adds a condition for canceling orders based on status and maps order products to order items for cancellation events.
src/main/java/com/podzilla/order/model/OrderStatus.java Renames an order status and adds new statuses to support expanded order lifecycle handling.
src/main/java/com/podzilla/order/messaging/OrderConsumer.java Introduces handling for failed order delivery events and updates status usage for courier assignment.
pom.xml Upgrades the version of podzilla-utils-lib to support the updated functionality.

@MohammmedAhmed8 MohammmedAhmed8 merged commit 3fad09e into dev May 18, 2025
5 checks passed
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.

3 participants