Skip to content

Commit

Permalink
Adapt to 7.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanchez91 committed Dec 20, 2019
1 parent 1eedbb2 commit 71f0ef2
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"revision": "0555",
"code": "0555-0",
"kibana": {
"version": "7.5.0"
"version": "7.5.1"
},
"description": "Wazuh app",
"main": "index.js",
Expand Down Expand Up @@ -52,7 +52,7 @@
"winston": "3.0.0"
},
"devDependencies": {
"@elastic/plugin-helpers": "^7.1.8",
"@kbn/plugin-helpers": "link:../../packages/kbn-plugin-helpers",
"babel-eslint": "^8.2.6",
"chai": "^4.1.2",
"eslint": "^5.10.0",
Expand Down
4 changes: 2 additions & 2 deletions public/factories/tab-visualizations.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class TabVisualizations {
pm: 4,
vuls: 10,
oscap: 13,
ciscat: 11,
ciscat: 3,
audit: 9,
gdpr: 6,
pci: 6,
Expand All @@ -41,7 +41,7 @@ export class TabVisualizations {
pm: 5,
vuls: 10,
oscap: 11,
ciscat: 11,
ciscat: 3,
audit: 6,
pci: 5,
gdpr: 5,
Expand Down
2 changes: 1 addition & 1 deletion public/factories/vis-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ export class VisHandlers {
removeAll() {
this.list = [];
}
}
}
2 changes: 1 addition & 1 deletion public/kibana-integrations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
import './kibana-visualization';
import './kibana-discover';
import './saved-visualizations';
import './wz-top-nav';
import './wz-top-nav';
15 changes: 8 additions & 7 deletions public/kibana-integrations/kibana-discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ function discoverController(
queryFilter.getFilters()
);
$scope.filters = queryFilter.getFilters();
$rootScope.$broadcast('updateVis');
$rootScope.$broadcast('fetch');
$rootScope.$broadcast('updateVis');
if ($location.search().tab != 'configuration') {
loadedVisualizations.removeAll();
$rootScope.rendered = false;
Expand Down Expand Up @@ -691,16 +691,16 @@ function discoverController(
// Update query from search bar
discoverPendingUpdates.removeAll();
discoverPendingUpdates.addItem($state.query, queryFilter.getFilters());

//Kibana 7.5.0
queryFilter.setFilters(queryFilter.getFilters());
/////
$rootScope.$broadcast('updateVis');
timefilter.setTime(dateRange);
if (query && typeof query === 'object') $state.query = query;

$scope.fetch();
$rootScope.$broadcast('updateVis');
};

function onResults(resp) {

logInspectorResponse(resp);

if ($scope.opts.timefield) {
Expand Down Expand Up @@ -735,6 +735,7 @@ function discoverController(

$scope.fetchStatus = fetchStatuses.COMPLETE;
$scope.activeNoImplicitsFilters();
$rootScope.$broadcast('updateVis');
}

let inspectorRequest;
Expand Down Expand Up @@ -1099,7 +1100,7 @@ function discoverController(
$rootScope.$watch('rendered', () => {
if (!$rootScope.rendered) {
$scope.hideCloseButtons();
}else{
} else {
$scope.activeNoImplicitsFilters();
}
});
Expand Down Expand Up @@ -1169,4 +1170,4 @@ function discoverController(
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
init();
}
}
5 changes: 2 additions & 3 deletions public/kibana-integrations/kibana-visualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ app.directive('kbnVis', function () {
});
}
setSearchSource(discoverList);
$rootScope.rendered = true;
}
}
} catch (error) {
Expand Down Expand Up @@ -252,7 +251,7 @@ app.directive('kbnVis', function () {
loadedVisualizations.addItem(true);

const currentLoaded = loadedVisualizations.getList().length;
const deadVis = tabVisualizations.getDeadVis();
const deadVis = tab === 'ciscat' ? 0 : tabVisualizations.getDeadVis();
const totalTabVis = tabVisualizations.getItem(tab) - deadVis;

if (totalTabVis < 1) {
Expand Down Expand Up @@ -284,4 +283,4 @@ app.directive('kbnVis', function () {
let loader = null;
}
};
});
});
2 changes: 1 addition & 1 deletion public/kibana-integrations/saved-object-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,4 @@ export class SavedObjectLoader {
};
});
}
}
}
2 changes: 1 addition & 1 deletion public/kibana-integrations/wz-top-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ module.directive('wzTopNavHelper', (reactDirective) => {
'showAutoRefreshOnly',
],
);
});
});

0 comments on commit 71f0ef2

Please sign in to comment.