refactor: cleanup debug code
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 10 Mar 2024 16:15:39 +0000 (17:15 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 10 Mar 2024 16:15:39 +0000 (17:15 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/types/UIProtocol.ts
src/utils/Utils.ts
ui/web/src/composables/UIClient.ts

index 00d939317c5e93fbacb20c01487b116da27bb9e6..b5cf30fff02cbca47089e577d75a0a8a8e7f0bd2 100644 (file)
@@ -79,10 +79,3 @@ export interface ResponsePayload extends JsonObject {
   hashIdsFailed?: string[]
   responsesFailed?: BroadcastChannelResponsePayload[]
 }
-
-export interface TemplateStatistics extends JsonObject {
-  configured: number
-  added: number
-  started: number
-  indexes: number[]
-}
index fd3f4e2b27a744033097f73b294c0d0351534e01..32bac44d3a9123d9d250cbf5d839d7d32e68ee8e 100644 (file)
@@ -300,7 +300,11 @@ export const secureRandom = (): number => {
 }
 
 export const JSONStringify = <
-  T extends JsonType | Array<Record<string, unknown>> | Map<string, Record<string, unknown>>
+  T extends
+  | JsonType
+  | Array<Record<string, unknown>>
+  | Set<Record<string, unknown>>
+  | Map<string, Record<string, unknown>>
 >(
     object: T,
     space?: string | number,
index fcbf191f3c9d2dabfc6fa6354359d703eb67e28b..c2b9d60cc84c9c41f482168f6da43ca44add44cf 100644 (file)
@@ -253,8 +253,6 @@ export class UIClient {
 
     const [uuid, responsePayload] = response
 
-    console.log('responsePayload', responsePayload.state?.templateStatistics)
-
     if (this.responseHandlers.has(uuid)) {
       const { procedureName, resolve, reject } = this.responseHandlers.get(uuid)!
       switch (responsePayload.status) {