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

[Habit-Assign GET/habit/assign/more] unable to get custom Shopping List Items in the response body #39

Open
Oleksandra-Kobets opened this issue Sep 24, 2023 · 0 comments

Comments

@Oleksandra-Kobets
Copy link
Collaborator

Environment:
Windows 11 Home 22H2
Google Chrome Version 117.0.5938.89 (64-bit)
GreenCityDocker-3
Postman 10.17.7

Reproducible: always.

Preconditions:
GreenCityDocker-3 is built and running
User is authorized
At least one habit is created by user with a custom's list

Steps to reproduce:

  1. Select section “habit-assign-controller”.
  2. Select the GET/habit/assign/more
  3. Set the habitAsssignId of the created habit as the value of the id parameter
  4. Send the request.
  5. Compare the returned response with the actual one.

Actual result:
Response code 200 and "customShoppingListItems" is null

Expected result:
Response code 200 and response body is sent :

"customShoppingListItemDto": [
{
"id": number,
"text": "name of item",
"status": "ACTIVE"
}
]

Attachments
In habitAssignId I put 6 from the database. This is assign for user 7, for habit with id 34.
13

In a habit with id 34 we have a custom item list with such two items.

16

But in the response body we got “null” instead of information from the database.

17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant