ita-social-projects / GreenCity

The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
65 stars 80 forks source link

[Pick-up City. UBS Order. API Client Controller] The amount of order with partial payment after GET request 'getAll-users-orders' doesn't match order amount in User's account #7140

Closed dijulya closed 5 months ago

dijulya commented 6 months ago

Environment: Windows 11 Pro, Chrome 122.0.6261.131 Reproducible: always Build found: 13 May 2024 (prod)

Preconditions

  1. Login as User https://www.pick-up.city/#/ubs
  2. The order with partial payment created by the User is displayed in the User's profile

Steps to reproduce

  1. Create a request with method GET to URL https://greencity-ubs.pick-up.city/ubs/client/getAll-users-orders
  2. Send the request

Actual result Status 200 OK is received in the response. The order 'amount' value in the response doesn't match the order amount value in the User's profile

Actual result Postman

Actual result User's profile

Expected result Status 200 OK is received in the response. The order 'amount' value in the response match the order amount value in the User's profile

User story and test case links Swagger

HelenSotnik commented 5 months ago

Endpoint indeed calculated wrong amount for user to pay, and as it is not used, it was decided to delete it from project. The other endpoint from 'Your orders' page shows correct amount left to pay and initial payment sum.

SvitlanaRadkevych commented 4 months ago

[> Commit with deleted getAll-users-orders endpoint ita-social-projects/GreenCityUBS#1361

Merged Deleted getAll-users-orders endpoint as not used ita-social-projects/GreenCityUBS#1362](https://github.com/ita-social-projects/GreenCityUBS/pull/1361)

The endpoint has deleted