fix: network map remove + auto-layout 404 fix (release 1.0.9) #13
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/network-map-drag"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Removing a service from the map and running auto-layout both 404 because they call PATCH /network-node-positions (no :id) which does not exist.
Fix
Changed removeFromMap.js and autoLayout.js to use api.put (hits PUT /network-node-positions upsert-by-stableKey).
Tests
151 server tests pass. Client build clean.
removeFromMap.js and autoLayout.js called api.patch('/network-node-positions', {...}) but the server has no PATCH /network-node-positions route (only PATCH /:id). Changed to api.put which hits the PUT upsert-by-stableKey route. This caused 404 when removing services from the map or running auto-layout.