diff --git a/Control/lib/common/kvStore/runtime.enum.js b/Control/lib/common/kvStore/runtime.enum.js index 20bc2e909..4c966a4e9 100644 --- a/Control/lib/common/kvStore/runtime.enum.js +++ b/Control/lib/common/kvStore/runtime.enum.js @@ -21,7 +21,7 @@ const RUNTIME_COMPONENT = Object.freeze({ PDP_VERSION: 'aliecs/defaults', COG: 'COG', - COG_V1: 'COG_V1', + COG_V1: 'COG-v1', }); /** diff --git a/Control/lib/kafka/enums/consumerGroups.enum.js b/Control/lib/kafka/enums/consumerGroups.enum.js index 18ca02b30..91dbf6f2a 100644 --- a/Control/lib/kafka/enums/consumerGroups.enum.js +++ b/Control/lib/kafka/enums/consumerGroups.enum.js @@ -19,7 +19,7 @@ exports.ConsumerGroups = Object.freeze({ ENVIRONMENT: 'cog-environment', INTEGRATED_SERVICE: { DCS: 'cog-dcs-integrated-service', - ODC: 'cog-odc-integrated-service' + ODC: 'cog-odc-integrated-service', }, RUN: 'cog-run', TASK: 'cog-task', diff --git a/Control/package-lock.json b/Control/package-lock.json index 6893e9e7d..f64c3798c 100644 --- a/Control/package-lock.json +++ b/Control/package-lock.json @@ -1,12 +1,12 @@ { "name": "@aliceo2/control", - "version": "1.80.0", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@aliceo2/control", - "version": "1.80.0", + "version": "2.0.0", "bundleDependencies": [ "@aliceo2/web-ui", "@grpc/grpc-js", diff --git a/Control/package.json b/Control/package.json index 92ffd90ed..51e0d2a10 100644 --- a/Control/package.json +++ b/Control/package.json @@ -1,6 +1,6 @@ { "name": "@aliceo2/control", - "version": "1.80.0", + "version": "2.0.0", "description": "ALICE O2 Control GUI", "author": "George Raduta", "contributors": [ diff --git a/Control/public/environment/Environment.js b/Control/public/environment/Environment.js index 01c5a7a87..bc04f719e 100644 --- a/Control/public/environment/Environment.js +++ b/Control/public/environment/Environment.js @@ -130,9 +130,10 @@ export default class Environment extends Observable { this.itemNew = RemoteData.failure(result.message); this.notify(); } else { - const { id } = result; this.itemNew = RemoteData.notAsked(); - this.model.router.go(`?page=environment&id=${id}`); + // Users cannot be redirected to specific environment as it does not exist in + // ECS until it becomes active, thus users would get a NotFound reply from ECS + this.model.router.go(`?page=environments`); } } diff --git a/Control/test/public/page-new-environment-mocha.js b/Control/test/public/page-new-environment-mocha.js index 6b2d2f5b2..42105d1f0 100644 --- a/Control/test/public/page-new-environment-mocha.js +++ b/Control/test/public/page-new-environment-mocha.js @@ -440,7 +440,7 @@ describe('`pageNewEnvironment` test-suite', async () => { waitUntil: 'networkidle0', }); const location = await page.evaluate(() => window.location); - assert.strictEqual(location.search, '?page=environment&id=6f6d6387-6577-11e8-993a-f07959157220&panel=general'); + assert.strictEqual(location.search, '?page=environments'); assert.ok(calls['newEnvironmentAsync']); });