gidsi / eva-backend

Do What The F*ck You Want To Public License
2 stars 0 forks source link

SpaceData should be scoped to SpaceURL to avoid space duplication #1

Open ofeldt opened 7 years ago

ofeldt commented 7 years ago

Given a proper Space API JSON object When I change the "space" field of my Space API JSON object Then I expect the backend to change my SpaceData name accordingly But I see my space getting duplicated in the backend API result set.

Stean commented 4 years ago

I would like to push this issue, since we still have several occurences of this problem at https://spaceapi.ccc.de .

Examples:

example1 example2

There is the code line at which the space data to be overriden is being selected: https://github.com/gidsi/eva-backend/blob/2aeea3138d62f8840d2292754d76c09af3eb8df4/database.go#L20