StreetCode
StreetCode copied to clipboard
[API][Admin/StreetCode page/Tags] An admin can create an identical tag through the creation or updating of a streetcode
trafficstars
Environment: All Reproducible: Always Build found: 79fb490
Steps to reproduce
- Add all necessary data to the body.
- Add an object with an existing tag with id 0 (e.g.:
"tags": [
{ "id": 0, "title": "Інтелектуали", "isVisible": true, "index": 0, "streetcodeId": 1385, "modelState": 2 } ], ). - Click the 'Send' button.
- Open the list of tags on the admin side.
Actual result
- The 200 OK status in the response.
- The tag becomes duplicated in the list of tags.
https://github.com/ita-social-projects/StreetCode/assets/135108144/003ed4ec-cb8e-440b-bc03-514a135025e2
Expected result The 400 status in the response.
User story and test case links User story #20
Fixed in https://github.com/ita-social-projects/StreetCode/issues/308