@geode/opengeodeweb-front 12.1.0-rc.7 → 12.2.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ import { watchMicroserviceConnections } from "@ogw_front/utils/activity_connections";
2
+
3
+ export default defineNuxtPlugin({
4
+ name: "activity-connections",
5
+ dependsOn: ["pinia"],
6
+ setup() {
7
+ watchMicroserviceConnections();
8
+ },
9
+ });
@@ -0,0 +1,130 @@
1
+ import { summarizeParams } from "@ogw_front/utils/activity_params";
2
+
3
+ // Read-only journal of what the app is doing: microservice requests, server events, connection changes
4
+ const MAX_ENTRIES = 500;
5
+
6
+ type ActivityEntryKind = "http" | "ws" | "upload" | "event" | "connection";
7
+ type ActivityEntryStatus = "running" | "success" | "error" | "timeout" | "info";
8
+ type ActivityOutcome = { status: "success" } | { status: "error" | "timeout"; error: string };
9
+
10
+ interface ActivityEntry {
11
+ id: number;
12
+ source: string;
13
+ kind: ActivityEntryKind;
14
+ route: string;
15
+ status: ActivityEntryStatus;
16
+ started_at: number;
17
+ label?: string;
18
+ params?: string;
19
+ duration_ms?: number;
20
+ error?: string;
21
+ }
22
+
23
+ interface ActivityEntryInput {
24
+ source: string;
25
+ kind: ActivityEntryKind;
26
+ route: string;
27
+ label?: string;
28
+ params?: unknown;
29
+ }
30
+
31
+ interface ActivityLogInput extends ActivityEntryInput {
32
+ status: ActivityEntryStatus;
33
+ started_at?: number;
34
+ duration_ms?: number;
35
+ error?: string;
36
+ }
37
+
38
+ // An error or a timeout: what the activity panel counts and shows in red
39
+ function isFailure(status: ActivityEntryStatus): boolean {
40
+ return status === "error" || status === "timeout";
41
+ }
42
+
43
+ function createEntry(id: number, input: ActivityLogInput): ActivityEntry {
44
+ const { params, started_at, ...fields } = input;
45
+ const summary = summarizeParams(params);
46
+ return {
47
+ ...fields,
48
+ id,
49
+ started_at: started_at ?? Date.now(),
50
+ ...(summary !== undefined && { params: summary }),
51
+ };
52
+ }
53
+
54
+ // The errors not seen yet, counted in one place whether logged at once or failed later
55
+ function useUnseenErrors(): {
56
+ unseen_errors: Ref<number>;
57
+ countFailure: (status: ActivityEntryStatus) => void;
58
+ mark_errors_seen: () => void;
59
+ } {
60
+ const unseen_errors = ref(0);
61
+ function countFailure(status: ActivityEntryStatus): void {
62
+ if (isFailure(status)) {
63
+ unseen_errors.value += 1;
64
+ }
65
+ }
66
+ function mark_errors_seen(): void {
67
+ unseen_errors.value = 0;
68
+ }
69
+ return { unseen_errors, countFailure, mark_errors_seen };
70
+ }
71
+
72
+ const useActivityStore = defineStore("activity", () => {
73
+ const entries = ref<ActivityEntry[]>([]);
74
+ const { unseen_errors, countFailure, mark_errors_seen } = useUnseenErrors();
75
+ let next_id = 0;
76
+
77
+ const running = computed(() => entries.value.filter((entry) => entry.status === "running"));
78
+ const error_count = computed(
79
+ () => entries.value.filter((entry) => isFailure(entry.status)).length,
80
+ );
81
+
82
+ function log(input: ActivityLogInput): ActivityEntry {
83
+ next_id += 1;
84
+ const entry = createEntry(next_id, input);
85
+ entries.value.push(entry);
86
+ if (entries.value.length > MAX_ENTRIES) {
87
+ entries.value.splice(0, entries.value.length - MAX_ENTRIES);
88
+ }
89
+ countFailure(entry.status);
90
+ return entry;
91
+ }
92
+
93
+ function start_request(input: ActivityEntryInput): number {
94
+ return log({ ...input, status: "running" }).id;
95
+ }
96
+
97
+ function finish_request(entryId: number, outcome: ActivityOutcome): void {
98
+ const entry = entries.value.find((candidate) => candidate.id === entryId);
99
+ if (entry === undefined) {
100
+ return;
101
+ }
102
+ entry.duration_ms = Date.now() - entry.started_at;
103
+ entry.status = outcome.status;
104
+ if (outcome.status !== "success") {
105
+ entry.error = outcome.error;
106
+ }
107
+ countFailure(outcome.status);
108
+ }
109
+
110
+ // Empties the view only: running requests stay, they will still finish
111
+ function clear(): void {
112
+ entries.value = entries.value.filter((entry) => entry.status === "running");
113
+ mark_errors_seen();
114
+ }
115
+
116
+ return {
117
+ entries,
118
+ unseen_errors,
119
+ running,
120
+ error_count,
121
+ start_request,
122
+ finish_request,
123
+ log,
124
+ clear,
125
+ mark_errors_seen,
126
+ };
127
+ });
128
+
129
+ export { MAX_ENTRIES, isFailure, useActivityStore };
130
+ export type { ActivityEntry, ActivityEntryKind, ActivityEntryStatus, ActivityOutcome };
@@ -63,7 +63,7 @@ export const useBackStore = defineStore("back", {
63
63
  const feedbackStore = useFeedbackStore();
64
64
  const schema = back_schemas.opengeodeweb_back.ping;
65
65
  const result = await this.request(
66
- { schema },
66
+ { schema, log_success: false },
67
67
  {
68
68
  request_error_function: () => {
69
69
  feedbackStore.$patch({ server_error: true });
@@ -108,7 +108,11 @@ export const useBackStore = defineStore("back", {
108
108
  await Promise.resolve();
109
109
  },
110
110
  async request<Schema extends JsonRpcSchema>(
111
- { schema, params }: { schema: Schema; params?: ParamsOf<Schema> },
111
+ {
112
+ schema,
113
+ params,
114
+ log_success,
115
+ }: { schema: Schema; params?: ParamsOf<Schema>; log_success?: boolean },
112
116
  callbacks: RequestHandlers<ResponseOf<Schema>> = {},
113
117
  ): Promise<ResponseOf<Schema>> {
114
118
  const rpc_schema: JsonRpcSchema = schema;
@@ -122,6 +126,7 @@ export const useBackStore = defineStore("back", {
122
126
  schema: rpc_schema as JsonRpcSchema & { methods: string[] },
123
127
  params: params ?? {},
124
128
  headers: {},
129
+ ...(log_success !== undefined && { log_success }),
125
130
  },
126
131
  {
127
132
  ...callbacks,
@@ -74,7 +74,7 @@ export const useCloudStore = defineStore("cloud", {
74
74
  backStore.stop_request();
75
75
  },
76
76
  },
77
- { schema: back_schemas.opengeodeweb_back.ping },
77
+ { schema: back_schemas.opengeodeweb_back.ping, log_success: false },
78
78
  );
79
79
  } catch (error) {
80
80
  useFeedbackStore().$patch({ server_error: true });
@@ -0,0 +1,36 @@
1
+ import { Status } from "@ogw_front/utils/status";
2
+ import { useActivityStore } from "@ogw_front/stores/activity";
3
+ import { useInfraStore } from "@ogw_front/stores/infra";
4
+
5
+ // Writes each microservice connection and disconnection to the activity panel
6
+ function watchMicroserviceConnections(): void {
7
+ const infraStore = useInfraStore();
8
+ const activityStore = useActivityStore();
9
+ const known = new Map<string, string | undefined>();
10
+
11
+ watch(
12
+ () => infraStore.microservices.map((store) => [store.$id, store.status] as const),
13
+ (statuses) => {
14
+ for (const [source, status] of statuses) {
15
+ const previous = known.get(source);
16
+ known.set(source, status);
17
+ if (status === previous) {
18
+ continue;
19
+ }
20
+ if (status === Status.CONNECTED) {
21
+ activityStore.log({ source, kind: "connection", route: "Connected", status: "info" });
22
+ } else if (previous === Status.CONNECTED) {
23
+ activityStore.log({
24
+ source,
25
+ kind: "connection",
26
+ route: "Connection lost",
27
+ status: "error",
28
+ });
29
+ }
30
+ }
31
+ },
32
+ { immediate: true },
33
+ );
34
+ }
35
+
36
+ export { watchMicroserviceConnections };
@@ -0,0 +1,40 @@
1
+ // Request params shown in the activity panel: a short JSON, never the whole payload (id lists, styles, files...)
2
+ const MAX_ARRAY_ITEMS = 10;
3
+ const MAX_STRING_LENGTH = 120;
4
+ const MAX_SUMMARY_LENGTH = 400;
5
+ const ELLIPSIS = "…";
6
+
7
+ function truncate(text: string, maxLength: number): string {
8
+ return text.length > maxLength ? `${text.slice(0, maxLength)}${ELLIPSIS}` : text;
9
+ }
10
+
11
+ function shorten(_key: string, value: unknown): unknown {
12
+ if (typeof value === "string") {
13
+ return truncate(value, MAX_STRING_LENGTH);
14
+ }
15
+ if (Array.isArray(value) && value.length > MAX_ARRAY_ITEMS) {
16
+ const items: unknown[] = value.slice(0, MAX_ARRAY_ITEMS);
17
+ return [...items, `${ELLIPSIS} +${value.length - MAX_ARRAY_ITEMS}`];
18
+ }
19
+ if (typeof Blob !== "undefined" && value instanceof Blob) {
20
+ return `<${value.size} bytes>`;
21
+ }
22
+ return value;
23
+ }
24
+
25
+ function summarizeParams(params: unknown): string | undefined {
26
+ if (params === undefined || params === null) {
27
+ return undefined;
28
+ }
29
+ if (typeof params === "object" && Object.keys(params).length === 0) {
30
+ return undefined;
31
+ }
32
+ try {
33
+ const json = JSON.stringify(params, shorten);
34
+ return truncate(json, MAX_SUMMARY_LENGTH);
35
+ } catch {
36
+ return "<unserializable params>";
37
+ }
38
+ }
39
+
40
+ export { summarizeParams };
package/app/utils/log.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import type { JsonRpcSchema } from "@ogw_shared/utils/types.js";
2
2
  import { consola } from "consola";
3
3
 
4
+ const MILLISECONDS_IN_SECOND = 1000;
5
+
4
6
  interface Loggable {
5
7
  $id: string;
6
8
  }
@@ -21,7 +23,8 @@ function endRequestLog(
21
23
  `[${microservice.$id}] Request completed:`,
22
24
  schema.$id,
23
25
  "in",
24
- requestEndingTime.getSeconds() - requestStartingTime.getSeconds(),
26
+ // Seconds of the whole duration, not the difference of the clock's seconds field (wrong across a minute)
27
+ (requestEndingTime.getTime() - requestStartingTime.getTime()) / MILLISECONDS_IN_SECOND,
25
28
  "s",
26
29
  );
27
30
  }
@@ -3,6 +3,7 @@ import { endRequestLog, startRequestLog } from "@ogw_front/utils/log";
3
3
  import { reportError, reportTimeout } from "./error_feedback.js";
4
4
  import { consola } from "consola";
5
5
  import { fetchSchema } from "@ogw_shared/utils/fetch_schema";
6
+ import { trackRequest } from "./track_request.js";
6
7
  import { useFeedbackStore } from "@ogw_front/stores/feedback";
7
8
 
8
9
  // The microservice-backed Pinia stores (back/app/...) all expose this shape; only the slice actually used here needs to be declared.
@@ -18,12 +19,14 @@ interface ApiFetchParams {
18
19
  schema: JsonRpcSchema & { methods: string[] };
19
20
  params?: object;
20
21
  headers?: Record<string, string>;
22
+ // False for the requests repeated in the background (pings): the activity panel only shows their failures
23
+ log_success?: boolean;
21
24
  }
22
25
 
23
26
  // oxlint-disable-next-line max-lines-per-function
24
27
  async function api_fetch(
25
28
  microservice: Microservice,
26
- { schema, params = {}, headers = {} }: ApiFetchParams,
29
+ { schema, params = {}, headers = {}, log_success = true }: ApiFetchParams,
27
30
  {
28
31
  request_error_function,
29
32
  response_function,
@@ -37,7 +40,14 @@ async function api_fetch(
37
40
  microservice.start_request();
38
41
 
39
42
  const requestStartingTime = startRequestLog(microservice, schema);
40
- const request = fetchSchema(
43
+ const followRequest = trackRequest({
44
+ source: microservice.$id,
45
+ kind: "http",
46
+ route: schema.$id,
47
+ params,
48
+ log_success,
49
+ });
50
+ const pending = fetchSchema(
41
51
  {
42
52
  schema,
43
53
  params,
@@ -77,6 +87,7 @@ async function api_fetch(
77
87
  },
78
88
  },
79
89
  );
90
+ const request = followRequest(pending);
80
91
  if (skip_feedback_error === true) {
81
92
  return request;
82
93
  }
@@ -0,0 +1,74 @@
1
+ import {
2
+ type ActivityEntryKind,
3
+ type ActivityOutcome,
4
+ useActivityStore,
5
+ } from "@ogw_front/stores/activity";
6
+ import { TimeoutError } from "p-timeout";
7
+ import { toErrorFeedback } from "./error_feedback.js";
8
+
9
+ interface TrackedRequest {
10
+ source: string;
11
+ kind: ActivityEntryKind;
12
+ route: string;
13
+ label?: string;
14
+ params?: unknown;
15
+ // False for the requests repeated in the background (pings): only their failures are logged
16
+ log_success?: boolean;
17
+ }
18
+
19
+ const GENERIC_ERROR_NAME = "Error";
20
+
21
+ // An ofetch FetchError keeps the microservice ErrorResponse in its response: read it as the snackbar does
22
+ function failedResponse(error: unknown): unknown {
23
+ if (typeof error === "object" && error !== null && "response" in error) {
24
+ const { response } = error;
25
+ if (typeof response === "object" && response !== null) {
26
+ return response;
27
+ }
28
+ }
29
+ return error;
30
+ }
31
+
32
+ function failureOf(error: unknown): ActivityOutcome {
33
+ const { name, description } = toErrorFeedback(failedResponse(error));
34
+ const message =
35
+ name === GENERIC_ERROR_NAME || description === name ? description : `${name}: ${description}`;
36
+ return { status: error instanceof TimeoutError ? "timeout" : "error", error: message };
37
+ }
38
+
39
+ type FollowRequest = <Result>(pending: Promise<Result>) => Promise<Result>;
40
+
41
+ // Opens the activity entry of a microservice request: call it before sending, then follow the request until it settles
42
+ function trackRequest({ log_success = true, ...request }: TrackedRequest): FollowRequest {
43
+ const activityStore = useActivityStore();
44
+ const started_at = Date.now();
45
+ let entryId: number | undefined = undefined;
46
+ if (log_success) {
47
+ entryId = activityStore.start_request(request);
48
+ }
49
+
50
+ return async <Result>(pending: Promise<Result>): Promise<Result> => {
51
+ try {
52
+ const result = await pending;
53
+ if (entryId !== undefined) {
54
+ activityStore.finish_request(entryId, { status: "success" });
55
+ }
56
+ return result;
57
+ } catch (error) {
58
+ const outcome = failureOf(error);
59
+ if (entryId === undefined) {
60
+ activityStore.log({
61
+ ...request,
62
+ ...outcome,
63
+ started_at,
64
+ duration_ms: Date.now() - started_at,
65
+ });
66
+ } else {
67
+ activityStore.finish_request(entryId, outcome);
68
+ }
69
+ throw error;
70
+ }
71
+ };
72
+ }
73
+
74
+ export { trackRequest };
@@ -4,6 +4,7 @@ import type { Microservice } from "./api_fetch.js";
4
4
  import { consola } from "consola";
5
5
  import { fetchRaw } from "@ogw_shared/utils/fetch_raw.js";
6
6
  import { reportError } from "./error_feedback.js";
7
+ import { trackRequest } from "./track_request.js";
7
8
  import { uploadPath } from "@ogw_front/utils/upload_path";
8
9
 
9
10
  interface UploadFileParams {
@@ -14,40 +15,44 @@ interface UploadFileParams {
14
15
  params?: Record<string, string>;
15
16
  }
16
17
 
17
- async function upload_file(
18
- microservice: Microservice,
19
- { schema, file, params = {} }: UploadFileParams,
20
- { request_error_function, response_function, response_error_function }: RequestHandlers = {},
21
- ): Promise<unknown> {
22
- consola.debug("[UPLOAD_FILE] Uploading file", { schema, file });
23
-
24
- if (!(file instanceof File)) {
25
- throw new TypeError("file must be an instance of File");
26
- }
27
-
28
- const route = schema.$id;
29
- const method = schema.methods.find((candidate) => candidate !== "OPTIONS");
30
- const totalChunks = Math.max(1, Math.ceil(file.size / CHUNK_SIZE_BYTES));
31
-
32
- function onRequestError(error: unknown): void {
33
- microservice.stop_request();
34
- reportError(route, error);
35
- if (request_error_function) {
36
- void request_error_function(error);
37
- }
38
- }
39
-
40
- function onResponseError(response: unknown): void {
41
- microservice.stop_request();
42
- reportError(route, response);
43
- if (response_error_function) {
44
- void response_error_function(response);
45
- }
46
- }
18
+ interface ChunkUpload {
19
+ microservice: Microservice;
20
+ route: string;
21
+ method: string | undefined;
22
+ file: File;
23
+ params: Record<string, string>;
24
+ totalChunks: number;
25
+ }
47
26
 
48
- microservice.start_request();
27
+ // A failed chunk stops the request and is reported before the caller's own handler runs
28
+ function chunkErrorHandlers(
29
+ microservice: Microservice,
30
+ route: string,
31
+ { request_error_function, response_error_function }: RequestHandlers,
32
+ ): RequestHandlers {
33
+ return {
34
+ request_error_function(error: unknown): void {
35
+ microservice.stop_request();
36
+ reportError(route, error);
37
+ if (request_error_function) {
38
+ void request_error_function(error);
39
+ }
40
+ },
41
+ response_error_function(response: unknown): void {
42
+ microservice.stop_request();
43
+ reportError(route, response);
44
+ if (response_error_function) {
45
+ void response_error_function(response);
46
+ }
47
+ },
48
+ };
49
+ }
49
50
 
50
- let result: unknown = undefined;
51
+ async function sendChunks(
52
+ { microservice, route, method, file, params, totalChunks }: ChunkUpload,
53
+ handlers: RequestHandlers,
54
+ ): Promise<unknown> {
55
+ let lastResponse: unknown = undefined;
51
56
  for (let chunkIndex = 0; chunkIndex < totalChunks; chunkIndex += 1) {
52
57
  const start = chunkIndex * CHUNK_SIZE_BYTES;
53
58
  const chunk = file.slice(start, start + CHUNK_SIZE_BYTES);
@@ -59,23 +64,52 @@ async function upload_file(
59
64
  });
60
65
 
61
66
  // oxlint-disable-next-line no-await-in-loop -- chunks must be sent in order; the server appends each one to the file as it arrives.
62
- result = await fetchRaw(
67
+ lastResponse = await fetchRaw(
63
68
  {
64
69
  route: `${route}?${query.toString()}`,
65
70
  method,
66
71
  params: chunk,
67
72
  baseURL: microservice.base_url,
68
73
  },
69
- {
70
- request_error_function: onRequestError,
71
- response_error_function: onResponseError,
72
- },
74
+ handlers,
73
75
  );
74
76
  }
77
+ return lastResponse;
78
+ }
79
+
80
+ async function upload_file(
81
+ microservice: Microservice,
82
+ { schema, file, params = {} }: UploadFileParams,
83
+ handlers: RequestHandlers = {},
84
+ ): Promise<unknown> {
85
+ consola.debug("[UPLOAD_FILE] Uploading file", { schema, file });
86
+
87
+ if (!(file instanceof File)) {
88
+ throw new TypeError("file must be an instance of File");
89
+ }
90
+
91
+ const route = schema.$id;
92
+ const method = schema.methods.find((candidate) => candidate !== "OPTIONS");
93
+ const totalChunks = Math.max(1, Math.ceil(file.size / CHUNK_SIZE_BYTES));
94
+
95
+ microservice.start_request();
96
+ const followRequest = trackRequest({
97
+ source: microservice.$id,
98
+ kind: "upload",
99
+ route,
100
+ label: file.name,
101
+ params: { filename: uploadPath(file), size: file.size, chunks: totalChunks },
102
+ });
103
+ const result = await followRequest(
104
+ sendChunks(
105
+ { microservice, route, method, file, params, totalChunks },
106
+ chunkErrorHandlers(microservice, route, handlers),
107
+ ),
108
+ );
75
109
 
76
110
  microservice.stop_request();
77
- if (response_function) {
78
- response_function(result);
111
+ if (handlers.response_function) {
112
+ handlers.response_function(result);
79
113
  }
80
114
  return result;
81
115
  }
@@ -4,6 +4,7 @@ import { reportError, reportTimeout } from "./error_feedback.js";
4
4
  import type { Microservice } from "./api_fetch.js";
5
5
  import type { RpcClient } from "@ogw_shared/utils/call_raw.js";
6
6
  import { callSchema } from "@ogw_shared/utils/call_schema";
7
+ import { trackRequest } from "./track_request.js";
7
8
  import { useFeedbackStore } from "@ogw_front/stores/feedback";
8
9
 
9
10
  interface ViewerMicroservice extends Microservice {
@@ -16,55 +17,64 @@ interface ViewerCallParams {
16
17
  timeout?: number;
17
18
  }
18
19
 
19
- async function viewer_call(
20
+ // Stops the request and reports its errors once, around the caller's own handlers
21
+ function viewerCallHandlers(
20
22
  microservice: ViewerMicroservice,
21
- { schema, params = {}, timeout }: ViewerCallParams,
23
+ schema: JsonRpcSchema,
24
+ requestStartingTime: Date,
22
25
  {
23
26
  request_error_function,
24
27
  response_function,
25
28
  response_error_function,
26
- }: RequestHandlersWithValidation = {},
29
+ }: RequestHandlersWithValidation,
30
+ ): RequestHandlersWithValidation {
31
+ return {
32
+ // CallRaw runs both error handlers on the same rejection: stop the request and report it once, in the response one.
33
+ async request_error_function(error: unknown): Promise<void> {
34
+ if (request_error_function) {
35
+ await request_error_function(error);
36
+ }
37
+ },
38
+ async response_function(data: unknown): Promise<void> {
39
+ endRequestLog(microservice, schema, requestStartingTime);
40
+ microservice.stop_request();
41
+ if (response_function) {
42
+ await response_function(data);
43
+ }
44
+ },
45
+ async response_error_function(response: unknown): Promise<void> {
46
+ microservice.stop_request();
47
+ reportError(schema.$id, response);
48
+ if (response_error_function) {
49
+ await response_error_function(response);
50
+ }
51
+ },
52
+ validation_error_function({ code, name, error }): void {
53
+ microservice.stop_request();
54
+ useFeedbackStore().add_error(code, schema.$id, name, error ?? "");
55
+ },
56
+ };
57
+ }
58
+
59
+ async function viewer_call(
60
+ microservice: ViewerMicroservice,
61
+ { schema, params = {}, timeout }: ViewerCallParams,
62
+ handlers: RequestHandlersWithValidation = {},
27
63
  ): Promise<unknown> {
28
- const feedbackStore = useFeedbackStore();
29
- const { client } = microservice;
30
64
  microservice.start_request();
31
65
 
32
66
  const requestStartingTime = startRequestLog(microservice, schema);
33
- const request = callSchema(
34
- {
35
- schema,
36
- params,
37
- client,
38
- timeout,
39
- },
40
- {
41
- // CallRaw runs both error handlers on the same rejection: stop the request and report it once, in the response one.
42
- async request_error_function(error: unknown) {
43
- if (request_error_function) {
44
- await request_error_function(error);
45
- }
46
- },
47
- async response_function(data: unknown) {
48
- endRequestLog(microservice, schema, requestStartingTime);
49
- microservice.stop_request();
50
- if (response_function) {
51
- await response_function(data);
52
- }
53
- },
54
- async response_error_function(response: unknown) {
55
- microservice.stop_request();
56
- reportError(schema.$id, response);
57
- if (response_error_function) {
58
- await response_error_function(response);
59
- }
60
- },
61
- validation_error_function({ code, name, error }) {
62
- microservice.stop_request();
63
- feedbackStore.add_error(code, schema.$id, name, error ?? "");
64
- },
65
- },
67
+ const followRequest = trackRequest({
68
+ source: microservice.$id,
69
+ kind: "ws",
70
+ route: schema.$id,
71
+ params,
72
+ });
73
+ const pending = callSchema(
74
+ { schema, params, client: microservice.client, timeout },
75
+ viewerCallHandlers(microservice, schema, requestStartingTime, handlers),
66
76
  );
67
- const result = await reportTimeout(schema.$id, request);
77
+ const result = await reportTimeout(schema.$id, followRequest(pending));
68
78
  return result;
69
79
  }
70
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "12.1.0-rc.7",
3
+ "version": "12.2.0-rc.1",
4
4
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
5
5
  "homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
6
6
  "bugs": {