Merge pull request #1149 from wazuh/3.8-minor-fixes

Add rule details for list. Removed unknown as valid node name
This commit is contained in:
Jesús Ángel 2019-01-16 15:31:41 +01:00 committed by GitHub
commit 54123b3b9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 5 deletions

View File

@ -36,7 +36,8 @@ All notable changes to the Wazuh app project will be documented in this file.
- Refreshing index pattern known fields on health check controller ([#1119](https://github.com/wazuh/wazuh-kibana-app/pull/1119)).
- Less strict memory check ([786c764](https://github.com/wazuh/wazuh-kibana-app/commit/786c7642cd88083f9a77c57ed204488ecf5b710a)).
- Checking message origin in error handler ([dfec368](https://github.com/wazuh/wazuh-kibana-app/commit/dfec368d22a148b2e4437db92d71294900241961)).
- Dev tools is now showing the response as it is, like `curl` does ([#1137](https://github.com/wazuh/wazuh-kibana-app/pull/1137))
- Dev tools is now showing the response as it is, like `curl` does ([#1137](https://github.com/wazuh/wazuh-kibana-app/pull/1137)).
- Removed `unknown` as valid node name ([#1149](https://github.com/wazuh/wazuh-kibana-app/pull/1149)).
### Fixed
@ -50,6 +51,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Fixed Management > Monitoring tab frustration adding back buttons ([#1102](https://github.com/wazuh/wazuh-kibana-app/pull/1102)).
- Fix template checking when using more than one pattern ([#1104](https://github.com/wazuh/wazuh-kibana-app/pull/1104)).
- Fix infinite loop for Wazuh monitoring when the Wazuh API is not being able to give us all the agents ([5a26916](https://github.com/wazuh/wazuh-kibana-app/commit/5a2691642b40a34783d2eafb6ee24ae78b9af21a)), ([85005a1](https://github.com/wazuh/wazuh-kibana-app/commit/85005a184d4f1c3d339b7c895b5d2469f3b45171)).
- Fix rule details for `list` and `info` parameters ([#1149](https://github.com/wazuh/wazuh-kibana-app/pull/1149)).
## Wazuh v3.7.1 / v3.7.2 - Kibana v6.5.1 / v6.5.2 / v6.5.3 / v6.5.4 - Revision 415

View File

@ -2,7 +2,7 @@
"name": "wazuh",
"version": "3.8.0",
"revision": "0416",
"code": "0416-9",
"code": "0416-10",
"kibana": {
"version": "6.5.4"
},

View File

@ -23,6 +23,9 @@ export function RulesController(
$location,
apiReq
) {
$scope.isObject = item => typeof item === 'object';
$scope.appliedFilters = [];
/**
* This performs a search with a given term

View File

@ -56,10 +56,13 @@
<md-card-content>
<span class="wz-headline-title"><i class="fa fa-fw fa-info" aria-hidden="true"></i> Details</span>
<md-divider class="wz-margin-top-10"></md-divider>
<div layout="row" layout-wrap class="wz-padding-top-10" ng-repeat="(key, value) in currentRule.details"
<div layout="row" class="wz-padding-top-10" ng-repeat="(key, value) in currentRule.details"
ng-if='!isArray(value)'>
<span flex="20">{{key}}</span>
<span class="wz-text-right color-grey">{{value}}</span>
<span ng-if="!isObject(value)" class="wz-text-right color-grey">{{value}}</span>
<span ng-if="isObject(value)" class="color-grey">
<span ng-repeat="(key, value) in value">{{key}}: {{value}} <span ng-if="!$last">|</span> </span>
</span>
</div>
</md-card-content>
</md-card>

View File

@ -907,7 +907,7 @@ export class WazuhApiCtrl {
if (nodes && nodes.items) {
result.nodes = nodes.items
.filter(item => !!item.node_name)
.filter(item => !!item.node_name && item.node_name !== 'unknown')
.map(item => item.node_name);
}