ita-social-projects / Home

Home - is an all-in-one social service that will cover all aspects of your communication with your home and neighbors.
http://www.home-project-engineering.tech/api/0/apidocs/index.html
MIT License
26 stars 30 forks source link

[Bug report] Creation date is not editable in Update cooperation poll #497

Open NataliiaMaistruk opened 2 years ago

NataliiaMaistruk commented 2 years ago

Environment: Postman for Web, Version 9.31.1-220906-1538, Chrome 105 / Windows 10 Reproducible: always

Preconditions Postman is opened. Poll with id "507" and status "Draft" is created.

Steps to reproduce

  1. Send request. Choose PUT method. URL https://home-project-academy.herokuapp.com/api/0/cooperations/1/polls/507
  2. Write json to the Body: { "header": "poll updated", "description": "A description for the poll", "creation_date": "2022-09-20T06:00:00Z", "status": "draft", "included_houses": [ 3552 ] }

Actual result image.png

Expected result Creation date is edited "creation_date": "2022-09-20T06:00:00"

User story and test case links User story #(https://home-project-engineering.atlassian.net/browse/HP-42)

Labels to be added "Bug", Priority ("pri: normal "), Severity ("severity: major"), Type (" "Functional"), "API" (for back-end bugs).

NataliiaMaistruk commented 2 years ago

Incorrect completion date in Update cooperation poll. image.png Expected result: The completion date must be 15 days from the creation date. "completion_date": "2022-10-25T06:00:00"