Skip to content

Commit 3e3ca33

Browse files
authored
fix: Remove event buffer inspection event (#1540)
1 parent e2353f9 commit 3e3ca33

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

src/features/utils/event-store-manager.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55
import { DEFAULT_KEY, MAX_PAYLOAD_SIZE } from '../../common/constants/agent-constants'
6-
import { dispatchGlobalEvent } from '../../common/dispatch/global-event'
7-
import { activatedFeatures } from '../../common/util/feature-flags'
86
import { isContainerAgentTarget } from '../../common/util/target'
97
/**
108
* This layer allows multiple browser entity apps, or "target", to each have their own segregated storage instance.
@@ -70,14 +68,6 @@ export class EventStoreManager {
7068
* @returns {boolean} True if the event was successfully added
7169
*/
7270
add (event, targetEntityGuid) {
73-
dispatchGlobalEvent({
74-
agentIdentifier: this.agentRef.agentIdentifier,
75-
drained: !!activatedFeatures?.[this.agentRef.agentIdentifier],
76-
type: 'data',
77-
name: 'buffer',
78-
feature: this.featureAgg.featureName,
79-
data: event
80-
})
8171
return this.#getEventStore(targetEntityGuid).add(event)
8272
}
8373

tests/assets/inspection-events.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
window.inspectionEvents = {
1212
initialize: false,
1313
load: false,
14-
buffer: false,
1514
harvest: false,
1615
api: false,
1716
}
@@ -39,16 +38,6 @@
3938
window.inspectionEvents.load = true
4039
}
4140

42-
if (
43-
name === 'buffer' &&
44-
drained === true &&
45-
type === 'data' &&
46-
feature &&
47-
data
48-
) {
49-
window.inspectionEvents.buffer = true
50-
}
51-
5241
if (
5342
name === 'harvest' &&
5443
drained === true &&

tests/specs/inspection-events.e2e.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ describe('inspection events', () => {
66
.then(() => browser.waitForAgentLoad())
77
.then(() => browser.waitUntil(
88
() => browser.execute(function () {
9-
return window?.inspectionEvents?.buffer &&
10-
window.inspectionEvents.harvest &&
9+
return window.inspectionEvents.harvest &&
1110
window.inspectionEvents.api &&
1211
window.inspectionEvents.navigate
1312
}),
@@ -24,7 +23,6 @@ describe('inspection events', () => {
2423

2524
expect(inspectionEvents.initialize).toBe(true)
2625
expect(inspectionEvents.load).toBe(true)
27-
expect(inspectionEvents.buffer).toBe(true)
2826
expect(inspectionEvents.harvest).toBe(true)
2927
expect(inspectionEvents.api).toBe(true)
3028
expect(inspectionEvents.drain).toBe(true)

0 commit comments

Comments
 (0)