Persist project device synchronization
This commit is contained in:
@@ -277,12 +277,16 @@ endpoints above.
|
||||
- returns all linked circuit device rows with distribution-board/circuit context and field differences
|
||||
- `POST /project-devices/projects/:projectId/:projectDeviceId/synchronize`
|
||||
- applies only explicitly selected fields to explicitly selected linked rows
|
||||
- `POST /project-devices/projects/:projectId/:projectDeviceId/restore`
|
||||
- restores the captured pre-sync values for session-local undo
|
||||
- request: selected `rowIds`, selected `fields` and `expectedRevision`
|
||||
- response: updated preview, revision and project history state
|
||||
- `POST /project-devices/projects/:projectId/:projectDeviceId/disconnect`
|
||||
- disconnects explicitly selected rows without changing their local values
|
||||
- `POST /project-devices/projects/:projectId/:projectDeviceId/reconnect`
|
||||
- restores a disconnected link if the row has not been linked elsewhere meanwhile
|
||||
- request: selected `rowIds` and `expectedRevision`
|
||||
- response: updated preview, revision and project history state
|
||||
|
||||
Both writes execute `project-device.sync-rows`. Undo uses the project-wide
|
||||
`POST /projects/:projectId/history/undo` endpoint; reconnect is the validated
|
||||
inverse command. The former direct restore/reconnect endpoints are removed.
|
||||
|
||||
`displayName` is included in the comparison but is not selected by default in the UI. Updating a
|
||||
project device never triggers synchronization implicitly.
|
||||
|
||||
Reference in New Issue
Block a user