Once a valid Websocket connection has been established, the client should be able to provide person properties which will update the Person.data field.
Current Behaviour
A client can call the identify action on the socket with person data and this will return the state of all flows for the person identified.
Goal*
This work item will extend #66 allowing a client to specify whether or not they want the flow state to be retrieved.
This will improve response times since the server does not need to query flow states but only update the Person record.
Implementation Details*
List any technical requirements or constraints. Please list them as a task list or bullets.
Use code snippets where applicable.
Modify the response to allow for an extra flag, indicating the type of response that the server needs to provide.
Background & Context*
Once a valid Websocket connection has been established, the client should be able to provide person properties which will update the
Person.data
field.Current Behaviour
A client can call the
identify
action on the socket with person data and this will return the state of all flows for the person identified.Goal*
Person
record.Implementation Details*
Modify the response to allow for an extra flag, indicating the type of response that the server needs to provide.
Acceptance Criteria*
Test cases that
include_flows
flag is included and set toTrue
then the response should be as outlined in the example above.include_flows
flag is included and set toFalse
then the response should be as outlined in the example above.include_flows
flag is omitted then the response should be as outlined in the example above.*required field.