Skip to content

Feat/trk 005 tracking event log - #61

Merged
hajk1 merged 11 commits into
hajk1:masterfrom
paka-ops:feat/TRK-005-Tracking-Event-Log
Mar 19, 2026
Merged

Feat/trk 005 tracking event log#61
hajk1 merged 11 commits into
hajk1:masterfrom
paka-ops:feat/TRK-005-Tracking-Event-Log

Conversation

@paka-ops

@paka-ops paka-ops commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Tracking Events Implementation

Implemented the core business logic, automated logging, and REST endpoints for freight order visibility and audit trails.

Tasks completed:

  • Data Model: Created TrackingEvent.java entity (extending BaseEntity) with support for automated status changes, gate scans, and manual notes.
  • Business Logic: Updated OrderTrackingResponse and FreightOrderService.java to automatically persist a STATUS_CHANGE event with descriptive metadata whenever an order status is updated.
  • Data Transfer Objects: Developed TrackingEventRequest.java and updated the tracking response to include a chronologically sorted events array.
  • Controller: Implemented TrackingEventController.java with endpoints for manual event logging (POST) and event retrieval (GET) for specific orders.

Verification:

  • Local tests passed: Verified that status changes trigger event creation and manual scans are correctly persisted.
  • Code formatted: (mvn fmt:format) Applied project styling standards to all new classes.
  • Closes TRK-005 — Tracking Event Log 🟠 #33

@hajk1
hajk1 merged commit 9b1f41f into hajk1:master Mar 19, 2026
1 check passed
hajk1 added a commit that referenced this pull request Mar 19, 2026
* init changes for TRK 004

* fixing test issues

* fixing test issues

* fixing test issues

* Feat/trk 005 tracking event log (#61)

* adding TrackingEvent entity

* creating TrackingEventRepository

* creating TrackingEvent entity,service,updating FreightOrderController and FreightOrderService

* adding an arrayList of events on traking orderResponse,updating freightOrder class by adding an one to many association to TrakingEvent

* test writting

* creating test for trakingEvent in FreightOrderContollerTest and TrackingControllerTest

* creating test for trakingEvent in FreightOrderContollerTest and TrackingControllerTest

* creating test for trakingEvent in FreightOrderContollerTest and TrackingControllerTest

* test bug fixing

* test bug fixing

* test bug fixing

* fixing transactional issue

* init changes for TRK 004

* fixing test issues

* fixing test issues

* fixing test issues

* fixing transactional issue

* fixing test issues

* fixing test issues

---------

Co-authored-by: Essosolim Joël PAKA <pakawess@gmail.com>
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.

TRK-005 — Tracking Event Log 🟠

2 participants