@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.
package/app/stores/data.js
CHANGED
|
@@ -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) {
|
package/package.json
CHANGED
|
@@ -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,
|
|
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);
|
package/server/utils/cloud.js
CHANGED
|
@@ -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,
|
|
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(
|
|
66
|
+
project: sanitizeLabelValue(projectName),
|
|
67
67
|
},
|
|
68
68
|
scaling: {
|
|
69
69
|
scalingMode: "MANUAL",
|