Skip to content

Commit

Permalink
Merge pull request #202 from Ontotext-AD/gdb-4402
Browse files Browse the repository at this point in the history
GDB-4402: Error when disconnecting cluster node in WB
  • Loading branch information
desislava-hristova-ontotext authored Mar 31, 2020
2 parents d233e3b + 18f5ae2 commit b39584c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphdb-workbench",
"version": "1.3.0-RC5",
"version": "1.3.0-RC6",
"description": "The web application for GraphDB APIs",
"scripts": {
"build": "webpack --config=webpack.config.prod.js",
Expand Down
8 changes: 4 additions & 4 deletions src/js/angular/clustermanagement/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function ClusterManagementCtrl($scope, $http, $q, toastr, $repositories, $modal,
});
};

function disconnectWorker(master, worker, onSuccess) {
function disconnectWorker(d, master, worker, onSuccess) {
ClusterRestService.disconnectWorker($scope.getLabel(master.location), $.param({
workerURL: worker.location,
masterLocation: getLocation(master)
Expand All @@ -233,7 +233,7 @@ function ClusterManagementCtrl($scope, $http, $q, toastr, $repositories, $modal,
});
}

function disconnectNodes(master, worker, onSuccess) {
function disconnectNodes(d, master, worker, onSuccess) {
ClusterRestService.disconnectNodes($scope.getLabel(master.location), $.param({
masterLocation: getLocation(master),
masterNodeID: master.nodeID,
Expand Down Expand Up @@ -284,10 +284,10 @@ function ClusterManagementCtrl($scope, $http, $q, toastr, $repositories, $modal,
$scope.setLoader(true, 'Disconnecting nodes...');

if (worker.repositoryType === 'worker') {
disconnectWorker(master, worker, onSuccess);
disconnectWorker(d, master, worker, onSuccess);
} else {
// Both are masters, despite the var name worker
disconnectNodes(master, worker, onSuccess);
disconnectNodes(d, master, worker, onSuccess);
}
};

Expand Down
2 changes: 1 addition & 1 deletion test-cypress/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 test-cypress/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphdb-workbench-tests",
"version": "1.3.0-RC5",
"version": "1.3.0-RC6",
"description": "Cypress tests for GraphDB workbench",
"scripts": {
"start": "cypress open",
Expand Down

0 comments on commit b39584c

Please sign in to comment.