Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Control/lib/services/Environment.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ class EnvironmentService {
throw grpcErrorToNativeError(error);
}
try {
if (!environments || environments.length === 0) {
this._broadcastService.broadcast(ENVIRONMENTS_OVERVIEW, []);
return [];
}
const activeEnvironmentList = [];
for (const { id } of environments) {
let environment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,17 @@ class EnvironmentCacheService {
if (!cachedEnvironment.rootRole) {
cachedEnvironment.rootRole = environmentEvent.workflowTemplateInfoName;
}
this._environments.set(id, cachedEnvironment);

this.addOrUpdateEnvironment(cachedEnvironment, false);

if (
transition?.name === EnvironmentTransitionType.DESTROY &&
state === EnvironmentState.DONE &&
message === ECS_DESTROY_TRANSITION_DONE_MESSAGE
message === ECS_DESTROY_TRANSITION_DONE_MESSAGE &&
!cachedEnvironment.deploymentError
) {
// That is, if the environment successfully ended the DESTROY transition
// while not having a deployment error
this.removeEnvironmentById(id);
}

Expand Down
4 changes: 2 additions & 2 deletions Control/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Control/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aliceo2/control",
"version": "2.0.0",
"version": "2.0.1",
"description": "ALICE O2 Control GUI",
"author": "George Raduta",
"contributors": [
Expand Down