Summary
The PUT and DELETE operations for node locations are commented out in the codebase, making it impossible to modify or remove locations via the API.
Location
shock-server/location/location.go:145-181 - commented out code block
Commented Code
// if locationID != "" { // /node/{nid}/locations/{loc}
// err = n.DeleteLocation(locationID)
// ...
// }
Impact
- Cannot remove a location from a node via API
- Cannot update location properties via API
- Only adding locations works (POST)
Current Workaround
Direct MongoDB updates required to modify/delete locations.
Questions
- Why were these operations disabled?
- Are there data integrity concerns that need to be addressed?
Priority
Medium - API functionality gap
Summary
The PUT and DELETE operations for node locations are commented out in the codebase, making it impossible to modify or remove locations via the API.
Location
shock-server/location/location.go:145-181- commented out code blockCommented Code
Impact
Current Workaround
Direct MongoDB updates required to modify/delete locations.
Questions
Priority
Medium - API functionality gap