Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BACKEND] Rating Filter within Subcategory #361

Open
asliayk opened this issue Jan 9, 2021 · 0 comments
Open

[BACKEND] Rating Filter within Subcategory #361

asliayk opened this issue Jan 9, 2021 · 0 comments
Assignees
Labels
bug Something isn't working priority: medium Solving this issue is a mediocre contribution to the project. type: back-end Issues related to back-end
Milestone

Comments

@asliayk
Copy link
Collaborator

asliayk commented Jan 9, 2021

This is a bug issue, but I'm actually not sure whether this is a bug or I'm writing something incorrectly, so I wanted to ask this issue to anyone from the backend team.

Description of the bug:

When the user filters the products by a minimum rating within a subcategory, the products which have more rating than the rating limit doesn't return from /search/products endpoint.

Steps to reproduce the behavior:

  1. On Postman, send post /search/products with this body:
{ 
   "subcategory":7
}
  1. See the two products, which have 4.24 and 3.5 ratings.
  2. Resend post /search/products with this body:
{ 
   "subcategory": 7,
    "min_rating": 3.8
}
  1. See the empty product list result.

Expected behavior:

Seeing the product with 4.24 rating

Actual behavior:

Seeing an empty list

@asliayk asliayk added bug Something isn't working priority: medium Solving this issue is a mediocre contribution to the project. type: back-end Issues related to back-end labels Jan 9, 2021
@asliayk asliayk added this to the Milestone 3 milestone Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: medium Solving this issue is a mediocre contribution to the project. type: back-end Issues related to back-end
Projects
None yet
Development

No branches or pull requests

4 participants