atlp-rwanda / knights-ecomm-be

Knights ecommerce backend APIs
https://knights-ecomm-be-lcdh.onrender.com
0 stars 0 forks source link

Feat-Notification-Management #110

Closed Calebgisa72 closed 5 months ago

Calebgisa72 commented 5 months ago

What does this PR do? This PR introduces the in-app notifications feature with real-time functionality using Socket.io, enabling users to receive immediate updates about specific events as they occur within the application. The main functionalities include fetching all notifications for a user, deleting a notification, and sending notifications in real-time.

Description of Task: In-App Notifications Feature:

  1. Fetch Notifications Endpoint:
  1. Delete Notification Endpoint:
  1. Send Notification Function:

How should this be manually tested?

coveralls commented 5 months ago

Pull Request Test Coverage Report for Build 9364131248

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/entities/Notification.ts 19 20 95.0%
src/services/couponServices/buyerApplyCoupon.ts 8 9 88.89%
src/services/notificationServices/getNotifications.ts 11 12 91.67%
src/utils/sendNotification.ts 26 27 96.3%
src/services/notificationServices/deleteNotification.ts 38 40 95.0%
src/services/notificationServices/updateNotification.ts 45 47 95.74%
src/utils/getNotifications.ts 9 11 81.82%
src/services/orderServices/updateOrderService.ts 7 10 70.0%
<!-- Total: 242 255 94.9% -->
Files with Coverage Reduction New Missed Lines %
src/startups/dbConnection.ts 1 87.5%
src/services/feedbackServices/createFeedback.ts 1 73.68%
<!-- Total: 2 -->
Totals Coverage Status
Change from base Build 9330313458: 1.1%
Covered Lines: 2214
Relevant Lines: 2583

💛 - Coveralls