Skip to content

Commit 50c9bd4

Browse files
committed
update api version/extend retry checkqueue
1 parent fd42628 commit 50c9bd4

6 files changed

Lines changed: 19 additions & 8 deletions

File tree

OpenFlow/src/DatabaseConnection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export class DatabaseConnection {
349349
}
350350
for (var i: number = 0; i < arr.length; i++) { arr[i] = this.decryptentity(arr[i]); }
351351
DatabaseConnection.traversejsondecode(arr);
352-
this._logger.debug("[" + user.username + "][" + collectionname + "] query gave " + arr.length + " results " + JSON.stringify(query));
352+
this._logger.debug("[" + user.username + "][" + collectionname + "] query gave " + arr.length + " results ");
353353
return arr;
354354
}
355355
/**

OpenFlow/src/amqpwrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ export class amqpwrapper {
456456
}
457457
return hasConsumers;
458458
}, {
459-
retries: 5,
459+
retries: 10,
460460
minTimeout: 500,
461461
maxTimeout: 500,
462462
onRetry: function (error: Error, count: number): void {

OpenFlow/src/public/Controllers.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,11 +1535,22 @@ export class EntitiesCtrl extends entitiesCtrl<Base> {
15351535
this.orderby = this.userdata.data.EntitiesCtrl.orderby;
15361536
this.searchstring = this.userdata.data.EntitiesCtrl.searchstring;
15371537
this.basequeryas = this.userdata.data.EntitiesCtrl.basequeryas;
1538+
} else {
1539+
if (NoderedUtil.IsNullEmpty(this.collection)) {
1540+
this.$location.path("/Entities/entities");
1541+
if (!this.$scope.$$phase) { this.$scope.$apply(); }
1542+
return;
1543+
}
15381544
}
1545+
console.log("path: " + this.$location.path());
15391546
if (NoderedUtil.IsNullEmpty(this.collection)) {
15401547
this.$location.path("/Entities/entities");
1541-
} else {
1548+
if (!this.$scope.$$phase) { this.$scope.$apply(); }
1549+
return;
1550+
} else if (this.$location.path() != "/Entities/" + this.collection) {
15421551
this.$location.path("/Entities/" + this.collection);
1552+
if (!this.$scope.$$phase) { this.$scope.$apply(); }
1553+
return;
15431554
}
15441555
if (!this.$scope.$$phase) { this.$scope.$apply(); }
15451556
WebSocketClientService.onSignedin(async (user: TokenUser) => {

OpenFlowNodeRED/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openflow-nodered",
3-
"version": "1.0.45",
3+
"version": "1.0.46",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {
@@ -38,7 +38,7 @@
3838
"node-gyp": "^7.0.0",
3939
"node-red": "^1.1.0",
4040
"node-red-node-email": "^1.7.8",
41-
"openflow-api": "^1.0.5",
41+
"openflow-api": "^1.0.7",
4242
"os-service": "^2.2.0",
4343
"passport-saml": "^1.3.3",
4444
"passport-saml-metadata": "^2.3.0",

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.45
1+
1.0.46

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openiap",
3-
"version": "1.0.45",
3+
"version": "1.0.46",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {
@@ -58,7 +58,7 @@
5858
"morgan": "^1.10.0",
5959
"multer": "^1.4.2",
6060
"multer-gridfs-storage": "^4.2.0",
61-
"openflow-api": "^1.0.5",
61+
"openflow-api": "^1.0.7",
6262
"os-service": "^2.2.0",
6363
"passport": "^0.4.1",
6464
"passport-google-oauth20": "^2.0.0",

0 commit comments

Comments
 (0)