Skip to content

Location PUT/DELETE operations are commented out #398

@wilke

Description

@wilke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions