diff --git a/backend/pkg/messages/messages.go b/backend/pkg/messages/messages.go index 232f116c0..20410182a 100644 --- a/backend/pkg/messages/messages.go +++ b/backend/pkg/messages/messages.go @@ -79,7 +79,7 @@ const ( MsgInputChange = 112 MsgSelectionChange = 113 MsgMouseThrashing = 114 - MsgRemovedNodesCount = 115 + MsgUnbindNodes = 115 MsgIssueEvent = 125 MsgSessionEnd = 126 MsgSessionSearch = 127 @@ -2102,24 +2102,24 @@ func (msg *MouseThrashing) TypeID() int { return 114 } -type RemovedNodesCount struct { +type UnbindNodes struct { message - NodesCount uint64 + TotalRemovedPercent uint64 } -func (msg *RemovedNodesCount) Encode() []byte { +func (msg *UnbindNodes) Encode() []byte { buf := make([]byte, 11) buf[0] = 115 p := 1 - p = WriteUint(msg.NodesCount, buf, p) + p = WriteUint(msg.TotalRemovedPercent, buf, p) return buf[:p] } -func (msg *RemovedNodesCount) Decode() Message { +func (msg *UnbindNodes) Decode() Message { return msg } -func (msg *RemovedNodesCount) TypeID() int { +func (msg *UnbindNodes) TypeID() int { return 115 } diff --git a/backend/pkg/messages/read-message.go b/backend/pkg/messages/read-message.go index 715f81d98..f3bc525a9 100644 --- a/backend/pkg/messages/read-message.go +++ b/backend/pkg/messages/read-message.go @@ -1269,10 +1269,10 @@ func DecodeMouseThrashing(reader BytesReader) (Message, error) { return msg, err } -func DecodeRemovedNodesCount(reader BytesReader) (Message, error) { +func DecodeUnbindNodes(reader BytesReader) (Message, error) { var err error = nil - msg := &RemovedNodesCount{} - if msg.NodesCount, err = reader.ReadUint(); err != nil { + msg := &UnbindNodes{} + if msg.TotalRemovedPercent, err = reader.ReadUint(); err != nil { return nil, err } return msg, err @@ -1888,7 +1888,7 @@ func ReadMessage(t uint64, reader BytesReader) (Message, error) { case 114: return DecodeMouseThrashing(reader) case 115: - return DecodeRemovedNodesCount(reader) + return DecodeUnbindNodes(reader) case 125: return DecodeIssueEvent(reader) case 126: diff --git a/ee/connectors/msgcodec/messages.py b/ee/connectors/msgcodec/messages.py index 75cc5309f..7c2638ec6 100644 --- a/ee/connectors/msgcodec/messages.py +++ b/ee/connectors/msgcodec/messages.py @@ -736,11 +736,11 @@ class MouseThrashing(Message): self.timestamp = timestamp -class RemovedNodesCount(Message): +class UnbindNodes(Message): __id__ = 115 - def __init__(self, nodes_count): - self.nodes_count = nodes_count + def __init__(self, total_removed_percent): + self.total_removed_percent = total_removed_percent class IssueEvent(Message): diff --git a/frontend/app/player/web/messages/tracker.gen.ts b/frontend/app/player/web/messages/tracker.gen.ts index fbfe3c6c2..f012084ec 100644 --- a/frontend/app/player/web/messages/tracker.gen.ts +++ b/frontend/app/player/web/messages/tracker.gen.ts @@ -451,13 +451,13 @@ type TrMouseThrashing = [ timestamp: number, ] -type TrRemovedNodesCount = [ +type TrUnbindNodes = [ type: 115, - nodesCount: number, + totalRemovedPercent: number, ] -export type TrackerMessage = TrTimestamp | TrSetPageLocation | TrSetViewportSize | TrSetViewportScroll | TrCreateDocument | TrCreateElementNode | TrCreateTextNode | TrMoveNode | TrRemoveNode | TrSetNodeAttribute | TrRemoveNodeAttribute | TrSetNodeData | TrSetNodeScroll | TrSetInputTarget | TrSetInputValue | TrSetInputChecked | TrMouseMove | TrNetworkRequest | TrConsoleLog | TrPageLoadTiming | TrPageRenderTiming | TrCustomEvent | TrUserID | TrUserAnonymousID | TrMetadata | TrCSSInsertRule | TrCSSDeleteRule | TrFetch | TrProfiler | TrOTable | TrStateAction | TrRedux | TrVuex | TrMobX | TrNgRx | TrGraphQL | TrPerformanceTrack | TrStringDict | TrSetNodeAttributeDict | TrResourceTiming | TrConnectionInformation | TrSetPageVisibility | TrLoadFontFace | TrSetNodeFocus | TrLongTask | TrSetNodeAttributeURLBased | TrSetCSSDataURLBased | TrTechnicalInfo | TrCustomIssue | TrCSSInsertRuleURLBased | TrMouseClick | TrCreateIFrameDocument | TrAdoptedSSReplaceURLBased | TrAdoptedSSInsertRuleURLBased | TrAdoptedSSDeleteRule | TrAdoptedSSAddOwner | TrAdoptedSSRemoveOwner | TrJSException | TrZustand | TrBatchMetadata | TrPartitionedMessage | TrInputChange | TrSelectionChange | TrMouseThrashing | TrRemovedNodesCount +export type TrackerMessage = TrTimestamp | TrSetPageLocation | TrSetViewportSize | TrSetViewportScroll | TrCreateDocument | TrCreateElementNode | TrCreateTextNode | TrMoveNode | TrRemoveNode | TrSetNodeAttribute | TrRemoveNodeAttribute | TrSetNodeData | TrSetNodeScroll | TrSetInputTarget | TrSetInputValue | TrSetInputChecked | TrMouseMove | TrNetworkRequest | TrConsoleLog | TrPageLoadTiming | TrPageRenderTiming | TrCustomEvent | TrUserID | TrUserAnonymousID | TrMetadata | TrCSSInsertRule | TrCSSDeleteRule | TrFetch | TrProfiler | TrOTable | TrStateAction | TrRedux | TrVuex | TrMobX | TrNgRx | TrGraphQL | TrPerformanceTrack | TrStringDict | TrSetNodeAttributeDict | TrResourceTiming | TrConnectionInformation | TrSetPageVisibility | TrLoadFontFace | TrSetNodeFocus | TrLongTask | TrSetNodeAttributeURLBased | TrSetCSSDataURLBased | TrTechnicalInfo | TrCustomIssue | TrCSSInsertRuleURLBased | TrMouseClick | TrCreateIFrameDocument | TrAdoptedSSReplaceURLBased | TrAdoptedSSInsertRuleURLBased | TrAdoptedSSDeleteRule | TrAdoptedSSAddOwner | TrAdoptedSSRemoveOwner | TrJSException | TrZustand | TrBatchMetadata | TrPartitionedMessage | TrInputChange | TrSelectionChange | TrMouseThrashing | TrUnbindNodes export default function translate(tMsg: TrackerMessage): RawMessage | null { switch(tMsg[0]) { diff --git a/tracker/tracker/src/common/messages.gen.ts b/tracker/tracker/src/common/messages.gen.ts index 2578c00a3..6b4f5b1c3 100644 --- a/tracker/tracker/src/common/messages.gen.ts +++ b/tracker/tracker/src/common/messages.gen.ts @@ -66,7 +66,7 @@ export declare const enum Type { InputChange = 112, SelectionChange = 113, MouseThrashing = 114, - RemovedNodesCount = 115, + UnbindNodes = 115, } @@ -516,11 +516,11 @@ export type MouseThrashing = [ /*timestamp:*/ number, ] -export type RemovedNodesCount = [ - /*type:*/ Type.RemovedNodesCount, - /*nodesCount:*/ number, +export type UnbindNodes = [ + /*type:*/ Type.UnbindNodes, + /*totalRemovedPercent:*/ number, ] -type Message = Timestamp | SetPageLocation | SetViewportSize | SetViewportScroll | CreateDocument | CreateElementNode | CreateTextNode | MoveNode | RemoveNode | SetNodeAttribute | RemoveNodeAttribute | SetNodeData | SetNodeScroll | SetInputTarget | SetInputValue | SetInputChecked | MouseMove | NetworkRequest | ConsoleLog | PageLoadTiming | PageRenderTiming | CustomEvent | UserID | UserAnonymousID | Metadata | CSSInsertRule | CSSDeleteRule | Fetch | Profiler | OTable | StateAction | Redux | Vuex | MobX | NgRx | GraphQL | PerformanceTrack | StringDict | SetNodeAttributeDict | ResourceTiming | ConnectionInformation | SetPageVisibility | LoadFontFace | SetNodeFocus | LongTask | SetNodeAttributeURLBased | SetCSSDataURLBased | TechnicalInfo | CustomIssue | CSSInsertRuleURLBased | MouseClick | CreateIFrameDocument | AdoptedSSReplaceURLBased | AdoptedSSInsertRuleURLBased | AdoptedSSDeleteRule | AdoptedSSAddOwner | AdoptedSSRemoveOwner | JSException | Zustand | BatchMetadata | PartitionedMessage | InputChange | SelectionChange | MouseThrashing | RemovedNodesCount +type Message = Timestamp | SetPageLocation | SetViewportSize | SetViewportScroll | CreateDocument | CreateElementNode | CreateTextNode | MoveNode | RemoveNode | SetNodeAttribute | RemoveNodeAttribute | SetNodeData | SetNodeScroll | SetInputTarget | SetInputValue | SetInputChecked | MouseMove | NetworkRequest | ConsoleLog | PageLoadTiming | PageRenderTiming | CustomEvent | UserID | UserAnonymousID | Metadata | CSSInsertRule | CSSDeleteRule | Fetch | Profiler | OTable | StateAction | Redux | Vuex | MobX | NgRx | GraphQL | PerformanceTrack | StringDict | SetNodeAttributeDict | ResourceTiming | ConnectionInformation | SetPageVisibility | LoadFontFace | SetNodeFocus | LongTask | SetNodeAttributeURLBased | SetCSSDataURLBased | TechnicalInfo | CustomIssue | CSSInsertRuleURLBased | MouseClick | CreateIFrameDocument | AdoptedSSReplaceURLBased | AdoptedSSInsertRuleURLBased | AdoptedSSDeleteRule | AdoptedSSAddOwner | AdoptedSSRemoveOwner | JSException | Zustand | BatchMetadata | PartitionedMessage | InputChange | SelectionChange | MouseThrashing | UnbindNodes export default Message diff --git a/tracker/tracker/src/main/app/messages.gen.ts b/tracker/tracker/src/main/app/messages.gen.ts index 589442c2e..c522d719f 100644 --- a/tracker/tracker/src/main/app/messages.gen.ts +++ b/tracker/tracker/src/main/app/messages.gen.ts @@ -833,12 +833,12 @@ export function MouseThrashing( ] } -export function RemovedNodesCount( - nodesCount: number, -): Messages.RemovedNodesCount { +export function UnbindNodes( + totalRemovedPercent: number, +): Messages.UnbindNodes { return [ - Messages.Type.RemovedNodesCount, - nodesCount, + Messages.Type.UnbindNodes, + totalRemovedPercent, ] } diff --git a/tracker/tracker/src/webworker/MessageEncoder.gen.ts b/tracker/tracker/src/webworker/MessageEncoder.gen.ts index 97fca51e0..d49f18610 100644 --- a/tracker/tracker/src/webworker/MessageEncoder.gen.ts +++ b/tracker/tracker/src/webworker/MessageEncoder.gen.ts @@ -266,7 +266,7 @@ export default class MessageEncoder extends PrimitiveEncoder { return this.uint(msg[1]) break - case Messages.Type.RemovedNodesCount: + case Messages.Type.UnbindNodes: return this.uint(msg[1]) break