trace-server-protocol
trace-server-protocol copied to clipboard
PUT to update for experiments should not use actions in payload
PUT for experiments command should not use actions in payload (see below). To add or remove traces provide a list of traces UUIDs in the payload and the server needs to validate whether traces need to be added or removed from the experiment by comparing the lists of traces on the server and in the command

related discussion: https://github.com/theia-ide/theia-trace-extension/issues/608
Way forward is defined in this ADR: https://github.com/eclipse-cdt-cloud/theia-trace-extension/pull/688
#96 proposes a different way to provide actions to the TSP. Adding/removing traces or renaming should be done in a similar way. These actions changing the resource in a way that a new resource is created:
POST /tsp/api/experiments/{expUUID}:add POST /tsp/api/experiments/{expUUID}:remove POST /tsp/api/experiments/{expUUID}:rename
Note that ADR https://github.com/eclipse-cdt-cloud/theia-trace-extension/pull/688 needs to be updated for that.