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
A flag is added that disables the generation of events when creating, updating or deleting dialogs
Description
When creating dialogs as part of the migration process (or synth test data generation), it is not desirable to generate dialog created/updated events. This applies to all commands that cause any of the dialog event types to be produced (dialog created/updated/deleted, activity created).
This should require the admin-scope to be present.
Implementation
This should be a query flag, ?disableAltinnEvents=true, that if set to true, disables any event generation.
The content you are editing has changed. Please copy your edits and refresh the page.
GIVEN a client performs a request to create, update, or delete a dialog, WHEN the ?disableAltinnEvents flag is provided and set to true AND the admin scope (digdir:dialogporten.serviceprovider.admin) is not provided THEN the request should fail with a 403 Forbidden
Case 2: Flag Not Provided
GIVEN a client performs a request to create, update, or delete a dialog, WHEN the ?disableAltinnEvents flag is not provided or is set to false, THEN dialog events (created, updated, deleted) are generated as usual.
Case 3: Flag Set to False
GIVEN a client performs a request to create, update, or delete a dialog, WHEN the ?disableAltinnEvents flag is provided and set to true, THEN no dialog events (created, updated, deleted) are generated, AND the operation is processed normally without event side effects.
Case 4: Activity Creation with Flag Set to True
GIVEN a client performs a request to add an activity to a dialog, WHEN the ?disableAltinnEvents flag is provided and set to true, THEN no activity created events are generated, AND the operation completes as expected.
Negative Case: Invalid Flag Value
GIVEN a client performs a request with an invalid value for the ?disableAltinnEvents flag (e.g., ?disableAltinnEvents=invalid), WHEN the request is processed, THEN the system defaults to generating dialog events as if the flag was set to false, AND no errors are returned to the client.
The text was updated successfully, but these errors were encountered:
Introduction
A flag is added that disables the generation of events when creating, updating or deleting dialogs
Description
When creating dialogs as part of the migration process (or synth test data generation), it is not desirable to generate dialog created/updated events. This applies to all commands that cause any of the dialog event types to be produced (dialog created/updated/deleted, activity created).
This should require the admin-scope to be present.
Implementation
This should be a query flag,
?disableAltinnEvents=true
, that if set to true, disables any event generation.Tasks
Threat modelling
Acceptance criteria
Case 1: Admin scope Not Provided
GIVEN a client performs a request to create, update, or delete a dialog,
WHEN the
?disableAltinnEvents
flag is provided and set to trueAND the admin scope (digdir:dialogporten.serviceprovider.admin) is not provided
THEN the request should fail with a 403 Forbidden
Case 2: Flag Not Provided
GIVEN a client performs a request to create, update, or delete a dialog,
WHEN the
?disableAltinnEvents
flag is not provided or is set tofalse
,THEN dialog events (created, updated, deleted) are generated as usual.
Case 3: Flag Set to False
GIVEN a client performs a request to create, update, or delete a dialog,
WHEN the
?disableAltinnEvents
flag is provided and set totrue
,THEN no dialog events (created, updated, deleted) are generated,
AND the operation is processed normally without event side effects.
Case 4: Activity Creation with Flag Set to True
GIVEN a client performs a request to add an activity to a dialog,
WHEN the
?disableAltinnEvents
flag is provided and set totrue
,THEN no activity created events are generated,
AND the operation completes as expected.
Negative Case: Invalid Flag Value
GIVEN a client performs a request with an invalid value for the
?disableAltinnEvents
flag (e.g.,?disableAltinnEvents=invalid
),WHEN the request is processed,
THEN the system defaults to generating dialog events as if the flag was set to
false
,AND no errors are returned to the client.
The text was updated successfully, but these errors were encountered: