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
66
stars
80
forks
source link
API [Edit event] When you delete a TitleImage, the image file is deleted from the cloud, but references to it remain stored in the TitleImage #7215
Environment:
Windows 11 Pro,
Google Chrome (126.0.6478.56),
Postman
Reproducible: always.
Build found: 13.06.2024
Preconditions
The user is logged in at https://www.greencity.social/;
The user has one created event
Postman is opened and the token is gotten.
Steps to reproduce:
Environment: Windows 11 Pro, Google Chrome (126.0.6478.56), Postman Reproducible: always. Build found: 13.06.2024
Preconditions The user is logged in at https://www.greencity.social/; The user has one created event Postman is opened and the token is gotten. Steps to reproduce:
Create a PUT request to https://greencity.greencity.social/events/update Body: { "id": "2", "title": "Some title", "description": "
Some description. A very long description of the event.
", "open": true, "tags": [ "Economic" ], "datesLocations": [ { "startDate": "2024-06-25T10:30:00.000Z", "finishDate": "2024-06-25T13:00:00.000Z", "onlineLink": "https://github.com/ita-social-projects/GreenCity/projects/3" } ], "imagesToDelete": [ "https://csb10032000a548f571.blob.core.windows.net/allfiles/7f2fac3f-d097-400e-b94e-852929269b34kit.jpg" ], "additionalImages": [ "https://csb10032000a548f571.blob.core.windows.net/allfiles/79f7918f-1669-4495-934c-613a85334938illustration-money.png" ], "titleImage": "https://csb10032000a548f571.blob.core.windows.net/allfiles/7f2fac3f-d097-400e-b94e-852929269b34kit.jpg" }Click on 'Send' button
Go to the event and refresh the page Actual result Status: 200OK In the body of the returned and saved object: ... "titleImage": "https://csb10032000a548f571.blob.core.windows.net/allfiles/7f2fac3f-d097-400e-b94e-852929269b34kit.jpg", "additionalImages": [ "https://csb10032000a548f571.blob.core.windows.net/allfiles/79f7918f-1669-4495-934c-613a85334938illustration-money.png" ] ...
Expected result Status: 200OK In the body of the returned and saved object: ... "titleImage": "https://csb10032000a548f571.blob.core.windows.net/allfiles/79f7918f-1669-4495-934c-613a85334938illustration-money.png", "additionalImages": [] ...