You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever a part of the dialog aggregate is changed, causing a new revision to made, the new revision should be made available to callers
Description
In order for a client to keep track of revisions, whenever a POST is performed for a new dialog, a PUT/PATCH is performed on an existing dialog, or a POST is performed to add a transmission or activity, the updated revision id should be made available in a HTTP response header.
Implementation
As this is a custom reponse header, it should be prefixed with x-, such as x-dialog-new-revision-id
The content you are editing has changed. Please copy your edits and refresh the page.
GIVEN a client performs a POST request to create a new dialog, WHEN the dialog is successfully created, THEN the response includes an x-dialog-new-revision-id header containing the new revision ID.
Case 2: Existing Dialog Updated
GIVEN a client performs a PUT or PATCH request to update an existing dialog, WHEN the update is successful and a new revision is created, THEN the response includes an x-dialog-new-revision-id header containing the updated revision ID.
Case 3: Transmission or Activity Added
GIVEN a client performs a POST request to add a transmission or activity to a dialog, WHEN the addition is successful and a new revision is created, THEN the response includes an x-dialog-new-revision-id header containing the new revision ID.
Negative Case: No Revision Created
GIVEN a client performs any of the above requests, WHEN the operation fails or does not result in a new revision being created, THEN the response does not include the x-dialog-new-revision-id header.
The text was updated successfully, but these errors were encountered:
Introduction
Whenever a part of the dialog aggregate is changed, causing a new revision to made, the new revision should be made available to callers
Description
In order for a client to keep track of revisions, whenever a POST is performed for a new dialog, a PUT/PATCH is performed on an existing dialog, or a POST is performed to add a transmission or activity, the updated revision id should be made available in a HTTP response header.
Implementation
As this is a custom reponse header, it should be prefixed with
x-
, such asx-dialog-new-revision-id
Tasks
Threat modelling
Acceptance criteria
Case 1: New Dialog Created
GIVEN a client performs a POST request to create a new dialog,
WHEN the dialog is successfully created,
THEN the response includes an
x-dialog-new-revision-id
header containing the new revision ID.Case 2: Existing Dialog Updated
GIVEN a client performs a PUT or PATCH request to update an existing dialog,
WHEN the update is successful and a new revision is created,
THEN the response includes an
x-dialog-new-revision-id
header containing the updated revision ID.Case 3: Transmission or Activity Added
GIVEN a client performs a POST request to add a transmission or activity to a dialog,
WHEN the addition is successful and a new revision is created,
THEN the response includes an
x-dialog-new-revision-id
header containing the new revision ID.Negative Case: No Revision Created
GIVEN a client performs any of the above requests,
WHEN the operation fails or does not result in a new revision being created,
THEN the response does not include the
x-dialog-new-revision-id
header.The text was updated successfully, but these errors were encountered: