atlp-rwanda / knights-ecomm-be

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

Implement buyer able to leave feedback on products #107

Closed UwicyezaG closed 6 months ago

UwicyezaG commented 6 months ago

Description

This feature will allow buyers to leave feedback on products they have purchased, which will help future buyers to make informed decisions. This feedback will be visible to all users who access the product page, including buyers, vendors, and admins. Buyers will have the capability to create, update, and delete their feedback. Admins will have the ability to view and delete any feedback, while vendors will only be able to view the feedback.

Functionalities

Acceptance Criteria

Definition of Done

coveralls commented 6 months ago

Pull Request Test Coverage Report for Build 9320607714

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/controllers/feedbackController.ts 11 12 91.67%
src/services/feedbackServices/deleteFeedback.ts 11 13 84.62%
src/services/feedbackServices/updateFeedback.ts 13 15 86.67%
src/services/feedbackServices/createFeedback.ts 23 27 85.19%
src/services/feedbackServices/adminDeleteFeedback.ts 4 13 30.77%
<!-- Total: 103 121 85.12% -->
Files with Coverage Reduction New Missed Lines %
src/services/orderServices/getOrderTransactionHistory.ts 1 81.82%
src/utils/response.utils.ts 1 90.91%
src/services/orderServices/createOrder.ts 1 89.72%
src/services/orderServices/updateOrderService.ts 2 56.76%
<!-- Total: 5 -->
Totals Coverage Status
Change from base Build 9320101775: 3.1%
Covered Lines: 1986
Relevant Lines: 2343

đź’› - Coveralls