@geode/opengeodeweb-front 10.0.2-rc.2 → 10.0.2-rc.4

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.
@@ -3,6 +3,10 @@ name: Deploy
3
3
  on:
4
4
  workflow_dispatch:
5
5
 
6
+ permissions:
7
+ contents: write
8
+ id-token: write
9
+
6
10
  jobs:
7
11
  deploy:
8
12
  uses: Geode-solutions/actions/.github/workflows/js-deploy.yml@master
@@ -4,6 +4,7 @@ import { appMode, getAppMode } from "@ogw_front/utils/app_mode.js"
4
4
  export const useInfraStore = defineStore("infra", {
5
5
  state: () => ({
6
6
  app_mode: getAppMode(),
7
+ ID: "",
7
8
  is_captcha_validated: false,
8
9
  status: Status.NOT_CREATED,
9
10
  microservices: [],
@@ -65,7 +66,7 @@ export const useInfraStore = defineStore("infra", {
65
66
  } else if (this.app_mode == appMode.CLOUD) {
66
67
  console.log("[INFRA] CLOUD mode - Launching lambda...")
67
68
  const lambdaStore = useLambdaStore()
68
- await lambdaStore.launch()
69
+ this.ID = await lambdaStore.launch()
69
70
  console.log("[INFRA] Lambda launched successfully")
70
71
  }
71
72
 
@@ -41,7 +41,7 @@ export const useLambdaStore = defineStore("lambda", {
41
41
  if (error.value || !data.value) {
42
42
  this.status = Status.NOT_CONNECTED
43
43
  feedbackStore.server_error = true
44
- console.error("[LAMBDA] Failed to launch lambda backend")
44
+ console.error("[LAMBDA] Failed to launch lambda backend", error.value)
45
45
  throw new Error("Failed to launch lambda backend")
46
46
  }
47
47
 
package/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
41
41
  "type": "module",
42
- "version": "10.0.2-rc.2",
42
+ "version": "10.0.2-rc.4",
43
43
  "main": "./nuxt.config.js",
44
44
  "dependencies": {
45
45
  "@geode/opengeodeweb-back": "next",
@@ -5,4 +5,4 @@
5
5
  # pip-compile --output-file=tests/integration/microservices/back/requirements.txt tests/integration/microservices/back/requirements.in
6
6
  #
7
7
 
8
- opengeodeweb-back==5.*,>=5.14.0
8
+ opengeodeweb-back==5.*,>=5.14.1rc1
@@ -5,4 +5,4 @@
5
5
  # pip-compile --output-file=tests/integration/microservices/viewer/requirements.txt tests/integration/microservices/viewer/requirements.in
6
6
  #
7
7
 
8
- opengeodeweb-viewer==1.*,>=1.13.1rc1
8
+ opengeodeweb-viewer==1.*,>=1.13.2rc21
@@ -283,22 +283,26 @@ describe("Infra Store", () => {
283
283
  await infra_store.create_backend()
284
284
  expect(infra_store.status).toBe(Status.CREATED)
285
285
  })
286
- // test("test with end-point", async () => {
287
- // const infra_store = useInfraStore()
288
- // const geodeStore = useGeodeStore()
289
- // const viewerStore = useViewerStore()
290
- // const feedback_store = useFeedbackStore()
291
-
292
- // registerEndpoint(infra_store.lambda_url, {
293
- // method: "POST",
294
- // handler: () => ({ ID: "123456" }),
295
- // })
296
- // await infra_store.create_backend()
297
- // expect(infra_store.status).toBe(Status.CREATED)
298
- // expect(geodeStore.status).toBe(Status.NOT_CONNECTED)
299
- // expect(viewerStore.status).toBe(Status.NOT_CONNECTED)
300
- // expect(feedback_store.server_error).toBe(true)
301
- // })
286
+ test("test with end-point", async () => {
287
+ const infra_store = useInfraStore()
288
+ const geodeStore = useGeodeStore()
289
+ const viewerStore = useViewerStore()
290
+ const feedback_store = useFeedbackStore()
291
+ const lambdaStore = useLambdaStore()
292
+
293
+ infra_store.app_mode = appMode.CLOUD
294
+ const ID = "123456"
295
+ registerEndpoint(lambdaStore.base_url, {
296
+ method: "POST",
297
+ handler: () => ({ ID }),
298
+ })
299
+ await infra_store.create_backend()
300
+ expect(infra_store.status).toBe(Status.CREATED)
301
+ expect(infra_store.ID).toBe(ID)
302
+
303
+ expect(geodeStore.status).toBe(Status.NOT_CONNECTED)
304
+ expect(viewerStore.status).toBe(Status.NOT_CONNECTED)
305
+ })
302
306
  })
303
307
  })
304
308
  })