Skip to content

Commit 3ff27da

Browse files
authored
fix: identify user before sending warehouse test event (#8356)
1 parent 0102a0c commit 3ff27da

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

frontend/web/components/pages/environment-settings/tabs/warehouse-tab/__tests__/sendWarehouseTestEvent.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('sendWarehouseTestEvent', () => {
2828
defaultFlags: {},
2929
enableEvents: true,
3030
environmentID: 'env-key-123',
31+
identity: 'test_warehouse_user',
3132
preventFetch: true,
3233
}),
3334
)

frontend/web/components/pages/environment-settings/tabs/warehouse-tab/sendWarehouseTestEvent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const sendWarehouseTestEvent = async (environmentId: string): Promise<void> => {
2020
enableEvents: true,
2121
environmentID: environmentId,
2222
fetch: globalThis.fetch.bind(globalThis),
23+
identity: 'test_warehouse_user',
2324
preventFetch: true,
2425
...(Project.flagsmithClientEventsAPI && {
2526
eventProcessorConfig: {

0 commit comments

Comments
 (0)