@geode/opengeodeweb-front 10.28.1-rc.1 → 10.28.1-rc.3

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.
@@ -76,7 +76,7 @@ export const useDataStore = defineStore("data", () => {
76
76
  async function registerObject(id, name) {
77
77
  const schema = viewer_generic_schemas.register;
78
78
  const params = { id, name };
79
- return await viewerStore.request({ schema, params });
79
+ return await viewerStore.request({ schema, params, timeout: 0 });
80
80
  }
81
81
 
82
82
  async function deregisterObject(id) {
@@ -67,7 +67,7 @@ export function api_fetch(
67
67
  });
68
68
  }
69
69
 
70
- if (timeout !== undefined && timeout > 0) {
70
+ if (timeout > 0) {
71
71
  return pTimeout(performCall(), {
72
72
  milliseconds: timeout,
73
73
  message: `${schema.$id}: Timed out after ${timeout}ms`,
@@ -49,7 +49,7 @@ export function viewer_call(
49
49
  }
50
50
  }
51
51
 
52
- if (timeout !== undefined && timeout > 0) {
52
+ if (timeout > 0) {
53
53
  return pTimeout(performCall(), {
54
54
  milliseconds: timeout,
55
55
  message: `${schema.$id}: Timed out after ${timeout}ms`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geode/opengeodeweb-front",
3
- "version": "10.28.1-rc.1",
3
+ "version": "10.28.1-rc.3",
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": {
@@ -15,6 +15,7 @@ export default defineEventHandler(async (event) => {
15
15
  const credentials = JSON.parse(process.env.GOOGLE_CLOUD_KEY);
16
16
  const location = "europe-west9";
17
17
  const projectId = process.env.GOOGLE_CLOUD_PROJECT;
18
+ const projectName = process.env.PROJECT;
18
19
  const parent = `projects/${projectId}/locations/${location}`;
19
20
  console.log({ parent });
20
21
  const auth = new GoogleAuth({
@@ -23,7 +24,7 @@ export default defineEventHandler(async (event) => {
23
24
  });
24
25
  const authClient = await auth.getClient();
25
26
  const [routerImage, backImage, viewerImage] = await artifactImages(parent, authClient);
26
- const request = requestConfig(parent, routerImage, backImage, viewerImage, email, projectId);
27
+ const request = requestConfig(parent, routerImage, backImage, viewerImage, email, projectName);
27
28
  console.log({ request });
28
29
  const runClient = new ServicesClient({ authClient });
29
30
  const [operation] = await runClient.createService(request);
@@ -45,7 +45,7 @@ function sanitizeLabelValue(label) {
45
45
  }
46
46
 
47
47
  // oxlint-disable-next-line max-lines-per-function
48
- function requestConfig(parent, routerImage, backImage, viewerImage, email, projectId) {
48
+ function requestConfig(parent, routerImage, backImage, viewerImage, email, projectName) {
49
49
  const resources = {
50
50
  limits: {
51
51
  cpu: "1000m",
@@ -63,7 +63,7 @@ function requestConfig(parent, routerImage, backImage, viewerImage, email, proje
63
63
  invokerIamDisabled: true,
64
64
  labels: {
65
65
  user: sanitizeLabelValue(email),
66
- project: sanitizeLabelValue(projectId),
66
+ project: sanitizeLabelValue(projectName),
67
67
  },
68
68
  scaling: {
69
69
  scalingMode: "MANUAL",