Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable event generation #1612

Open
1 of 5 tasks
Tracked by #1138
elsand opened this issue Dec 16, 2024 · 0 comments
Open
1 of 5 tasks
Tracked by #1138

Add option to disable event generation #1612

elsand opened this issue Dec 16, 2024 · 0 comments
Assignees

Comments

@elsand
Copy link
Collaborator

elsand commented Dec 16, 2024

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).

Implementation

This should be a query flag, ?produceDialogEvents=false, that if set to false, disables any event generation.

Tasks

Preview Give feedback

Threat modelling

Preview Give feedback

Acceptance criteria

Case 1: Flag Not Provided

GIVEN a client performs a request to create, update, or delete a dialog,
WHEN the ?produceDialogEvents flag is not provided or is set to true,
THEN dialog events (created, updated, deleted) are generated as usual.

Case 2: Flag Set to False

GIVEN a client performs a request to create, update, or delete a dialog,
WHEN the ?produceDialogEvents flag is provided and set to false,
THEN no dialog events (created, updated, deleted) are generated,
AND the operation is processed normally without event side effects.

Case 3: Activity Creation with Flag Set to False

GIVEN a client performs a request to add an activity to a dialog,
WHEN the ?produceDialogEvents flag is provided and set to false,
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 ?produceDialogEvents flag (e.g., ?produceDialogEvents=invalid),
WHEN the request is processed,
THEN the system defaults to generating dialog events as if the flag was set to true,
AND no errors are returned to the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Doing
Development

No branches or pull requests

2 participants