sopra-fs24-group-01 / sopra-fs24-plantparent-server

This is the Spring-based back end for the PlantParent website.
Apache License 2.0
0 stars 1 forks source link

Bug: Adding plant to space does not add it to caretakers already assigned to space #189

Closed NorDar closed 4 months ago

NorDar commented 4 months ago

Adding plant to space does not add it to caretakers already assigned to space

Might be the reason for:

NorDar commented 4 months ago

Test via Postman, locally Before: Space 12: Owner: 2, CTs:[5], Plants[9] User 4: owner of plant 8

POST localhost:8080/spaces/12/members/4

Add User 4 to space 12 -> user 4 now caretaker of plant 9

NorDar commented 4 months ago

Online test: Before: Space 42: owner 22, CTs [], plants [45] user 46: owner of [50, 48]

POST /spaces/42/members/46 --> 200 OK

Add user 46 to space 42 -> user 46 now ct of plant 45, user 46 now member of space 42

NorDar commented 4 months ago

This was probably my error while testing and looking at the db directly via DataGrip. It seems to work as intended from the backend side.